Before I say anything, I want to say I had an error with binutils 2.15... (the version expected in LFS book), the standard undefined references in arlex.l error; however, installing bison & flex did not fix the problem, so I just decided to compile binutils 2.16 and that worked fine.
Anyway, I encounter a problem @: make BOOT_LDFLAGS="-static" bootstrap
It goes through its compiling stages (3 stages, first build, build with gcc ,build again w/ gcc.), during its second stage it encounters this error (error is @ bottom, i started from where it entered /gcc:
Quote:
make[2]: Entering directory `/LFS/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototype
s -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I.././gcc-3.4.1/gcc -I.././gcc-3.4.1/gcc/. -I.././gcc-3.4.1/gcc/../include .././gcc-3.4.1/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I.././gcc-3.4.1/gcc -I.././gcc-3.4.1/gcc/. -I.././gcc-3.4.1/gcc/../include .././gcc-3.4.1/gcc/errors.c -o errors.o
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/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/LFS/gcc-build/gcc'
make: *** [bootstrap] Error 2
|
Not quite sure what -lc even is..
The reason I stated my binutils problem is I am thinking binutils is the cause of this error. the ld executable was created during the binutils build.
Any ideas? If I am correct about the error being caused by binutils, how the heck do I get my binutils 2.15 build to work, because no matter what, it did not want to.
Thanks to anyone who can answer this question.