This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

crossgcc 3.2 compile failed


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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]