LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Error Compiling GCC (1st Pass) in LFS 6.0 (http://www.linuxquestions.org/questions/linux-from-scratch-13/error-compiling-gcc-1st-pass-in-lfs-6-0-a-338802/)

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
Code:

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

LFS-FAQ
... 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 10:55 PM.