Problem with Gcc (LFS Chapter 5)

Ken Moffat ken at kenmoffat.uklinux.net
Wed Mar 17 10:32:31 PST 2004


On Wed, 17 Mar 2004, Bernd wrote:

> When I execute the command make "BOOT_LDFLAGS="-static" bootstrap" I get
> the following Error:
>
> 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/gcc-build/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc'
> make: *** [bootstrap] Error 2
>
> Can somebody help me plz?
>
>

 Looks like you need to install the static libc package for your host
distro.  It's probably called something like glibc-static and/or
glibc-devel.  You might want to also check that the programs in
/tools/bin from binutils  (e.g. `ld') are statically linked.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce




More information about the lfs-support mailing list