-   Linux From Scratch (
-   -   Error Compiling GCC (1st Pass) in LFS 6.0 (

TGWDNGHN 06-30-2005 01:40 PM

Error Compiling GCC (1st Pass) in LFS 6.0
I followed the instructions exactly, and in order. When I finnally typed

make BOOT_LDFLAGS="-static" bootstrap
It compiles normally, until the very end where it says

genmodes.o errors.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exist status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory '/mnt/lfs/gcc-3.4.1/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory '/mnt/lfs/gcc-3.4.1/gcc'
make: *** [bootstrap] Error 2

at the very end of the compilation. Then I decided to erase the unpacked gcc directory and unpack a new, fresh one, and repeat the process using root instead. This produced the same exact results.

I would appreciate any help for getting by this problem.

Thank you.

freegianghu 06-30-2005 08:57 PM

... system does not have a static C library (/usr/lib/libc.a) which is required for the static compilation of packages...

All times are GMT -5. The time now is 05:15 PM.