Cross-compiling issue with GCC 4.3.1

forumer@smartmobili.com forumer@smartmobili.com
Sat Jun 14 12:30:00 GMT 2008


Hi,

I am trying to cross-compile GCC 4.3.1 for an ARM target(wince exactly) but
I get the following error :

arm-mingw32ce-gcc -Wl,--base-file=mingwthrd.base -B./ -mdll
-Wl,--image-base,0x6FBC0000 mthr.o mthr_init.o -Lmingwex \ -o
mingwthrd_dummy.exe
/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.3.1/../../../../arm-mingw32ce/bin/ld:
cannot find -lgcc collect2: ld returned 1 exit status make: ***
[mingwthrd.def] Error 1

I have checked and it seems libgcc has not been built.
>From one post(http://gcc.gnu.org/ml/gcc-help/2008-05/msg00078.html) I saw
that gcc-4.3.0 don't build libgcc with all-gcc target
and I tried to do what were suggested but it doesn't work either because
now I have :


checking for 
/home/Vincent/cegcc/src/build-mingw32ce/gcc-bootstrap/./gcc/xgcc
-B/home/Vincent/cegcc/src/build-mingw32ce/gcc-bootstrap/./gcc/
-L/home/Vincent/cegcc/src/build-mingw32ce/gcc-bootstrap/arm-mingw32ce/winsup/mingw
-L/home/Vincent/cegcc/src/build-mingw32ce/gcc-bootstrap/arm-mingw32ce/winsup/w32api/lib
-isystem /home/Vincent/cegcc/src/gcc/winsup/mingw/include -isystem
/home/Vincent/cegcc/src/gcc/winsup/w32api/include
-B/opt/mingw32ce/arm-mingw32ce/bin/ -B/opt/mingw32ce/arm-mingw32ce/lib/
-isystem /opt/mingw32ce/arm-mingw32ce/include -isystem
/opt/mingw32ce/arm-mingw32ce/sys-include option to accept ANSI C... none
needed
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-libgcc] Error 1




More information about the Gcc-help mailing list