Problem when compiling gcc for rtems-4.6 toolchain

Dominik Brader dbrader at
Tue Feb 28 20:45:55 UTC 2006


I have a problem when compiling the gcc for the RTEMS-4.6. toolchain.
I am using binutils-, gcc-3.2.3 with gcc-3.2.3-rtems-20040420.diff 
patch and newlib-1.11.0 with newlib-1.11.0-rtems-20030605.diff patch. 

My configuration for the gcc is: 
../gcc-3.2.3/configure --target=sparc-rtems --enable-languages="c,c++" 
--prefix=$PREFIX --with-newlib 

The Error message is attached below.
The native compiler on the system is gcc-3.2.3, but I also tried gcc-3.3.2 
with the same result. 
The strange thing about it is that it works fine if I just configure without 
c++ support. But then I can't compile RTEMS, is that right?

Can anybody help me with this? 


gcc -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long  -DHAVE_CONFIG_H  gcov.o intl.o 
version.o   ../libiberty/libiberty.a -o gcov
/opt/TWWfsw/gcc332/i686-pc-linux-gnu/bin/ld: cannot open crt0.o: No such file 
or directory
collect2: ld returned 1 exit status
make[1]: *** [gcov] Error 1
make[1]: Leaving directory 
make: *** [install-gcc] Error 2

More information about the users mailing list