LFS 6.0 Chapter 5-GCC 3.4.1 Compilation error

Max Hegele maximilian.hegele at cs.uni-dortmund.de
Sun Jan 9 08:37:07 PST 2005


Hello,

I get the following error when compiling gcc 3.4.1 Pass1:

... 2/libgcc_s.so.1 libgcc_s_32.so
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible 
/usr/lib/../lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible 
/usr/lib/../lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible 
/usr/lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible 
/usr/lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [32/libgcc_s_32.so] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2

I think this is a strange error, because I have an amd64 with debian 
amd64 port as host system. This log looks like it is building a 32Bit 
library, or does the output filename libgcc_s_32.so mean something else?

I read the faq concerning the error "cannot find -lc", but this doesn't 
help, because I have the static version of libc!

Thanks for any help,I'm stuck now!

Max Hegele



More information about the lfs-support mailing list