|
菜鸟刚接触LFS,宿主系统时Fadora13,在第一次编译GCC时就出错了,麻烦哪位指点以下。
命令严格按照book来的:
tar xvf lfs-sources/gcc-4.3.2.tar.bz2
cd gcc-4.3.2
tar xvf ../lfs-sources/mpfr-2.3.2.tar.bz2
mv mpfr-2.3.2 mpfr
tar xvf ../lfs-sources/gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp
mkdir -v ../gcc-build
cd ../gcc-build
CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp \
--enable-languages=c
make
以下是错误信息:
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/add.c to mpn/add.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/add_1.c to mpn/add_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/add_n.c to mpn/add_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sub.c to mpn/sub.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sub_1.c to mpn/sub_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sub_n.c to mpn/sub_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mul_1.c to mpn/mul_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/addmul_1.c to mpn/addmul_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/submul_1.c to mpn/submul_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/lshift.c to mpn/lshift.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/rshift.c to mpn/rshift.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/dive_1.c to mpn/dive_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/diveby3.c to mpn/diveby3.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/divis.c to mpn/divis.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/divrem.c to mpn/divrem.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/divrem_1.c to mpn/divrem_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/divrem_2.c to mpn/divrem_2.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/fib2_ui.c to mpn/fib2_ui.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mod_1.c to mpn/mod_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mod_34lsub1.c to mpn/mod_34lsub1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mode1o.c to mpn/mode1o.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/pre_divrem_1.c to mpn/pre_divrem_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/pre_mod_1.c to mpn/pre_mod_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/dump.c to mpn/dump.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mul.c to mpn/mul.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mul_fft.c to mpn/mul_fft.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mul_n.c to mpn/mul_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mul_basecase.c to mpn/mul_basecase.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sqr_basecase.c to mpn/sqr_basecase.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/random.c to mpn/random.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/random2.c to mpn/random2.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/pow_1.c to mpn/pow_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/rootrem.c to mpn/rootrem.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sqrtrem.c to mpn/sqrtrem.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/get_str.c to mpn/get_str.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/set_str.c to mpn/set_str.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/scan0.c to mpn/scan0.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/scan1.c to mpn/scan1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/popham.c to mpn/popcount.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/popham.c to mpn/hamdist.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/cmp.c to mpn/cmp.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/perfsqr.c to mpn/perfsqr.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/bdivmod.c to mpn/bdivmod.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/***_1.c to mpn/***_1.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/***.c to mpn/***.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/***ext.c to mpn/***ext.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/tdiv_qr.c to mpn/tdiv_qr.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/dc_divrem_n.c to mpn/dc_divrem_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/sb_divrem_mn.c to mpn/sb_divrem_mn.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/jacbase.c to mpn/jacbase.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/get_d.c to mpn/get_d.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mullow_n.c to mpn/mullow_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/mullow_basecase.c to mpn/mullow_basecase.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/addsub_n.c to mpn/addsub_n.c
config.status: linking ../../gcc-4.3.2/gmp/mpn/generic/gmp-mparam.h to gmp-mparam.h
make[3]: Entering directory `/mnt/lfs/sources/gcc-build/gmp'
/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ `test -f 'gen-fac_ui.c' || echo '../../gcc-4.3.2/gmp/'`gen-fac_ui.c -o gen-fac_ui
./gen-fac_ui 32 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1)
/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc -B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ `test -f 'gen-fib.c' || echo '../../gcc-4.3.2/gmp/'`gen-fib.c -o gen-fib
./gen-fib header 32 0 >fib_table.h || (rm -f fib_table.h; exit 1)
/bin/sh: line 1: 2038 Segmentation fault (core dumped) ./gen-fib header 32 0 > fib_table.h
make[3]: *** [fib_table.h] Error 1
make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/gmp'
make[2]: *** [all-stage2-gmp] Error 2
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
以上情况能不能请哪位帮忙分析一下,谢了 |
|