|
第一遍编译GCC的出现 错误/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc,我猜是libc.so 找不到,我在/lib,/usr/lib 都没有找到,后来在 /usr/lib/i386-linux-gnu/下找到,于是小弟做里一个过激的操作cp -v /usr/lib/i386-linux-gnu/* /lib
cp -v /lib/i386-linux-gnu/* /lib ,再次 make bootstrap 出现
mv *.o s-* xgcc cpp cc1 cc1*-dummy crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtfastmath.o gcc-cross protoize unprotoize specs collect2 gcov-iov gcov gcov-dump *.[0-9][0-9].* *.[si] *-checksum.c libbackend.a libgcc.mk stage1
mv: cannot stat `crtbegin.o': No such file or directory
mv: cannot stat `crtbeginS.o': No such file or directory
mv: cannot stat `crtbeginT.o': No such file or directory
mv: cannot stat `crtend.o': No such file or directory
mv: cannot stat `crtendS.o': No such file or directory
mv: cannot stat `crtfastmath.o': No such file or directory
mv: cannot stat `gcc-cross': No such file or directory
mv: cannot stat `protoize': No such file or directory
mv: cannot stat `unprotoize': No such file or directory
mv: cannot stat `specs': No such file or directory
mv: cannot stat `gcov-iov': No such file or directory
mv: cannot stat `gcov': No such file or directory
mv: cannot stat `gcov-dump': No such file or directory
mv: cannot stat `*.[0-9][0-9].*': No such file or directory
mv: cannot stat `*.[si]': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
mv build/* stage1/build
cp -p insn-flags.h insn-config.h insn-codes.h insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c insn-attr.h insn-attrtab.c insn-opinit.c insn-preds.c insn-constants.h tm-preds.h tree-check.h insn-conditions.c min-insn-modes.c insn-modes.c insn-modes.h genrtl.c genrtl.h gt-*.h gtype-*.h gtype-desc.c gtyp-gen.h stage1
if [ -f as ] ; then (cd stage1 && ln -s ../as .) ; else true ; fi
if [ -f ld ] ; then (cd stage1 && ln -s ../ld .) ; else true ; fi
if [ -f collect-ld ] ; then (cd stage1 && ln -s ../collect-ld .) ; else true ; fi
cp libgcc.a stage1
ranlib stage1/libgcc.a
cp libgcov.a stage1
ranlib stage1/libgcov.a
if [ -f libgcc_eh.a ] ; then cp libgcc_eh.a stage1; \
ranlib stage1/libgcc_eh.a; \
fi
cp libgcc_s*.so stage1
cp libunwind.a libunwind*.so stage1
cp: cannot stat `libunwind.a': No such file or directory
cp: cannot stat `libunwind*.so': No such file or directory
make[2]: [stage1-start] Error 1 (ignored)
for f in .. ; do if [ x${f} != x.. ]; then \
cp stage1/${f} . ; \
else true; \
fi; done
for dir in . build ; \
do \
rm -f $dir/*.{***a,gcno} ; \
done
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
echo timestamp > stage1_copy
echo stage2_build > stage_last
make CC=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" \
STAGE_PREFIX=stage1/ \
ADAFLAGS="" CFLAGS="-O2 -g -fomit-frame-pointer" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " libdir=/tools/lib LANGUAGES="c gcov gcov-dump " MAKEINFO="/mnt/lfs/sources/gcc-4.1.2/missing makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \
CFLAGS="-O2 -g -fomit-frame-pointer" WERROR=""
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
mawk -f ../../gcc-4.1.2/gcc/opt-gather.awk ../../gcc-4.1.2/gcc/c.opt ../../gcc-4.1.2/gcc/common.opt ../../gcc-4.1.2/gcc/config/i386/i386.opt > tmp-optionlist
/bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-optionlist optionlist
optionlist is unchanged
echo timestamp > s-options
mawk -f ../../gcc-4.1.2/gcc/opt-functions.awk -f ../../gcc-4.1.2/gcc/opth-gen.awk \
< optionlist > tmp-options.h
/bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-options.h options.h
options.h is unchanged
echo timestamp > s-options-h
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/build -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -o build/genmodes.o ../../gcc-4.1.2/gcc/genmodes.c
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/build -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -o build/errors.o ../../gcc-4.1.2/gcc/errors.c
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -O2 -g -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \
build/genmodes.o build/errors.o ../build-i686-pc-linux-gnu/libiberty/libiberty.a
build/genmodes -h > tmp-modes.h
Segmentation fault
make[2]: *** [s-modes] Error 139
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
请问各位高手这个问题怎么解决 ,这才走了2步就栽里 |
|