error during compile GCC-3.3.1 Pass 1

Jeremy Utley jeremy at jutley.org
Fri Mar 26 00:46:52 PST 2004


On Fri, 2004-03-26 at 00:38, Sebastien Deligny wrote:
> Hello, I'm trying to build a LFS system 5.0
> 
> When I try to compile gcc-3.3.1 pass 1 at the end of "make 
> BOOT_LDFLAGS="-static" bootstrap" I have this error message:
> 
> make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
> stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c   -g -O2 
> -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
> -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   
> -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc-3.3.1/gcc 
> -I../../gcc-3.3.1/gcc/. -I../../gcc-3.3.1/gcc/config 
> -I../../gcc-3.3.1/gcc/../include ../../gcc-3.3.1/gcc/gengenrtl.c 
> -o gengenrtl.o
> 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
> [lfs at localhost gcc-build]$
> 
> I tried to reinstall binutils with fresh download sources but that 
> the same probleme! Any idea?
> 
> Seb

Let me guess - building from a mandrake host distro?

Try installing glibc-static-devel rpm from your 3rd CD of mandrake.

-J-




More information about the lfs-support mailing list