crossgcc 3.2 compile failed

wyb wyb@ccert.com.cn
Sun Sep 15 23:50:00 GMT 2002


I downloaded binutils-2.13, and gcc-3.2 and wanted to complile them to arm-linux.

cd bintuils
./configure --prefix=/hdb3/usr/local --target=arm-unknown-linux-gnu
make 
make install

cd gcc
./configure --prefix/hdb3/usr/local --target=arm-unknown-linux-gnu --disable-threads 
            --with-newlib
make

I got error message: "arm-unknown-linux-gnu/bin/ld: cannot open crti.o: No such file
or directory".

Entered directory gcc-3.2/gcc/config/arm, and typied:
arm-unknown-linux-gnu/bin/ld crti.asm -o crti.o
mv crti.o ../..
make

now the ld success, but I got another error message in libgcc.mk :
"gcc-3.2/gcc/xgcc -B/hdb3/gcc-3.2/gcc -B ...unwind-sjlj.o -lc && ...": ld cannot find -lc.

downloaded glibc-2.2.5 and compiled it for arm-linux and install. after that,
I changed the libgcc.mk and added -L/hdb3/usr/local/lib line, compiled again, now the
error message changed to: /hdb3/usr/local/lib/libc.so.6:could not read symbols: Invalid operation.
(if I changed -L/hdb3/usr/local/lib to -L/usr/lib, I got same error message).

can anyone help me.






More information about the crossgcc mailing list