GCC compile failed

Ronald Hummelink maillist at hummelink.xs4all.nl
Sat Jun 26 08:44:22 PDT 2004


Patrick Bos wrote:

> Hi,
>
> I'm kinda new to all this, so if I should go search somewhere else 
> first, please tell me where. Anyway, my problem is that while making 
> LFS 5.1.1, I come to chapter 5, compiling GNU 3.3.3 Pass 1, but after 
> compiling with:
> make BOOT_LDFLAGS="-static" bootstrap
> it gives some errors. These appear at the end (when the program stops):
>
> stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/   -g -O2 
> -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
> -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o gengenrtl \
> gengenrtl.o ../libiberty/libiberty.a
> /tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make[2]: *** [gengenrtl] Error 1
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make: *** [bootstrap] Error 2
>

Please use the FAQ:

http://linuxfromscratch.rave.org/lfs/faq.html#cannot-find-lc

Ronald



More information about the lfs-dev mailing list