FWIW, I ran into this error today as well. I did some brief bisection
to try to narrow down the source; it looks like it broke in r181378:
181736 - undefined reference to c_addr_space_name
181523 - undefined reference to c_addr_space_name
181440 - undefined reference to c_addr_space_name
181395 -
Sean D'Epagnier schrieb:
I have the latest gcc from svn, and with "configure --target=avr
--enable-languages=c":
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-pro
> In avr.c there is:
>
> ...
> #include "c-family/c-common.h"
> ...
That is the problem: avr.c should be language independent. Here you
are trying to link code calling C-family functions in a non-C language
(lto1 is just another front end for gcc, just like
cc1/cc1plus/etc...).
You should use ext
Snapshot gcc-4.7-2026 is now available on
ftp://gcc.gnu.org/pub/gcc/snapshots/4.7-2026/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 4.7 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/trunk