Hello! The undefined variable LINUX_DYNAMIC_LINKER, included in the Variable LINK_SPEC in the file gcc-4.2.1/gcc/config/arm/linux-elf.h lines 56-68 causes an error during compilation of gcc-4.2.1/gcc/gcc.c at line 740. The error was:
path/gcc-4.2.1/gcc/gcc.c:740: error: expected , or ; before LINUX_DYNAMIC_LINKER Defining this variable fixed the compilation problem. I assume, a reasonable value would be e.g. #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" #define LINUX_DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER and will solve this problem at once. I looked up, how this variable was defined in other architecture header files e.g. at gcc-4.2.1/gcc/config/alpha/linux-elf.h. There is the dynamic linker of uClibc ("/lib/ld-uClibc.so.0") used as well. Maybe it is more reasonable to use the same definition like in the alpha header file. Also, there is another bug, caused by the undefined funcion or macro LINUX_TARGET_OS_CPP_BUILTINS() in the same file (gcc-4.2.1/gcc/config/alpha/linux-elf.h) line 73, which caused a compilation error in file gcc-4.2.1/gcc/c-cppbuiltin.c line 559: The error was: c-cppbuiltin.o: In function `c_cpp_builtins': path/gcc-4.2.1/gcc/c-cppbuiltin.c:559: undefined reference to `LINUX_TARGET_OS_CPP_BUILTINS' Before I posted this bug, I had a look at the current development tree snapshot (file gcc-4.3-20070803.tar.bz2) and found the same header file. (with minor change in commentaries) The configuration was: configure --prefix=/prefix --build=i686-pc-linuc-gnu --host=i686-pc-linuc-gnu --target=arm-none-uclinux --disable-nls --disable-shared --enable-languages=c --disable-threads --disable-tls --with-sysroot=/prefix/sysroot --with-gnu-as --with-gnu-ld --without-headers If you need further information, please feel free to contact me by email: [EMAIL PROTECTED] Best regards Andreas Gajda -- Summary: LINUX_DYNAMIC_LINKER undefined in gcc- 4.2.1/gcc/config/arm/linux-elf.h Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andreas_gajda at web dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: arm-none-uclinux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33036