Compiling GCC 4.0 for arm-rtems

Camilo Alejandro Arboleda camilo.arboleda at spymac.com
Wed Oct 12 22:42:56 UTC 2005


Hello,

I'm trying (just trying, not success yet) to compile gcc 4.0 (from 
ftp.rtems.com) in a windows 2000 box with cygwin, with the following 
command:

../../source/gcc-4.0.0/configure --target=arm-rtems --with-gnu-as 
--with-gnu-ld --with-newlib --enable-threads 
--prefix=/cygdrive/c/cygwin/usr/rtems-4.6/arm-rtems/ 
--enable-languages=c,c++

but it fails to compile with an error about cpp (I only copy last lines):

configure: loading cache ./config.cache
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** [configure-target-libstdc++-v3] Error 1

Looking at config.log, the last lines say:

configure:4544: checking for arm-rtems-nm
configure:4616: checking for arm-rtems-ranlib
configure:4688: checking for arm-rtems-windres
configure:4806: checking whether to enable maintainer-specific portions 
of Makefiles
configure:4853: checking if symbolic links between directories work

It's my first time with ARM processor, and I don't know what I'm doing 
wrong. Does anybody has experienced this problem?

Thanks for your help,

Camilo Alejandro Arboleda





More information about the users mailing list