ld: cannot find -lc while compiling gcc

cheemano1 cheemano1 at indiatimes.com
Thu Dec 23 18:11:35 PST 2004


I'm trying LFS for the first time on mandrake 10.1 official. While building gcc during pass 1 i get the following error:
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc

A more complete error message is the following:

stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory `/lfs/sources/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

My binutils compiled without any problem. Any ideas?

Amitoj
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now!




More information about the lfs-support mailing list