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?
