GCC compile failed

Uli Fahrenberg uli at math.auc.dk
Sat Jun 26 08:44:36 PDT 2004


Patrick Bos, Jun 26, 17:29 +0200:

> 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

1. Wrong list: Try lfs-support

2. This is a FAQ:

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

3. Welcome to the happy world of Do-It-Yourself-Linux :-)

uli


-- 
Uli Fahrenberg -- http://www.math.auc.dk/~uli
GETCO 2004 -- http://www.math.auc.dk/~uli/getco04



More information about the lfs-dev mailing list