[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] trouble compiling latest svn
From: |
Georg-Johann Lay |
Subject: |
Re: [avr-gcc-list] trouble compiling latest svn |
Date: |
Wed, 23 Nov 2011 14:20:38 +0100 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100302) |
Sean D'Epagnier wrote:
> I got the latest gcc from svn, and with "configure --target=avr
> --enable-languages=c":
Hi Sean
Configuring in the source directory is not supported.
> When building with "make" eventually I get:
>
> gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing
> -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
> -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
> -DHAVE_CONFIG_H -o lto1 \
> lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o
> tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a
> ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib
> -lz libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a
> ../libdecnumber/libdecnumber.a
> libbackend.a(avr.o): In function `avr_pgm_check_var_decl':
> /home/sean/build/gcc-svn/build-avr-nofixed/gcc/../../gcc/config/avr/avr.c:6652:
> undefined reference to `c_addr_space_name'
> /home/sean/build/gcc-svn/build-avr-nofixed/gcc/../../gcc/config/avr/avr.c:6649:
> undefined reference to `c_addr_space_name'
> libbackend.a(avr.o): In function `avr_insert_attributes':
> /home/sean/build/gcc-svn/build-avr-nofixed/gcc/../../gcc/config/avr/avr.c:6690:
> undefined reference to `c_addr_space_name'
> libbackend.a(avr.o): In function `avr_out_lpm':
> /home/sean/build/gcc-svn/build-avr-nofixed/gcc/../../gcc/config/avr/avr.c:2352:
> undefined reference to `c_addr_space_name'
> collect2: ld returned 1 exit status
>
> Has anyone else run into this problem?
No, never seen it. There were quite some changes/rearrangements in the
compiler; did you try to completely clear the object directory before
configuring?
What SVN version?
I am around trunk 181554 and all works smooth.
AFAIR c_addr_space_name is located in and included with c-family/c-common.h
> Thanks,
> Sean