LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1125|回复: 4

lfs 6.4 gcc4.3.2-pass 1 编译出错 请指点一下菜鸟

[复制链接]
发表于 2010-10-10 16:45:06 | 显示全部楼层 |阅读模式
菜鸟刚接触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

以上情况能不能请哪位帮忙分析一下,谢了
发表于 2010-10-12 10:42:17 | 显示全部楼层
按照手册,重新编译一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-13 00:54:43 | 显示全部楼层
感谢Speedx兄的建议,我已反复多次清理宿主系统,重新编译,但始终有问题。这两天听一位朋友的建议,尝试着在同一宿主系统下进行LFS6.6,可以一路顺利的进行到gcc的第二次编译,而且也没问题。所以我猜测问题出在宿主系统的例如Texinfo,Makeinfo之类的版本问题上,可能跟LFS6.4不匹配,我打算从这方面着手继续尝试解决问题。当然,我是个新手,可能想的方向完全就是错误的,如果哪位高人或者Speedx兄知道正确的方向的话,还望不吝赐教,感谢先!
回复 支持 反对

使用道具 举报

发表于 2010-10-13 18:40:25 | 显示全部楼层
蒽,建议编译最新的 lfs-6.7 吧。
回复 支持 反对

使用道具 举报

发表于 2010-11-28 03:02:03 | 显示全部楼层
正好我也遇到此问题,不知可否解决?
alexsunchen.chen $ gmail.com
$--->@
3Q
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表