LinuxSir.cn,穿越时空的Linuxsir!

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

【求助】第一遍编译 gcc 出错

[复制链接]
发表于 2010-10-16 00:35:21 | 显示全部楼层 |阅读模式
大家好~~~哥哥是个Linux盲,晚上心血来潮不自量力地在玩lfs,结果卡在前期,求助~~~


我是按照 6.2手册来的,宿主系统为Arch(2010.05,所有已安装的软件都是最新地,gcc 4.5.1),桌面环境gnome,除了浏览器、文本编辑器、输入法等,基本没有安装其他软件。宿主硬件环境是VMWare。

所有软件我都是从 lfslivecd-x86-6.2-3.iso上复制过来的。自认为是完全按照手册操作的。卡在“5.4. GCC-4.0.3 - 第一遍”中的make bootstrap步骤,重复操作了3遍,结果一样。

最后几行编译输出:

make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
Building runtime libraries
make[1]: Entering directory `/mnt/lfs/sources/gcc-build'
Configuring in fixincludes
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-fixincludes] 错误 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [bootstrap] 错误 2

conifg.log内容如下:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (gcc  ) works
configure:1937: gcc -o conftest    conftest.c  1>&5
configure:1963: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1968: checking whether we are using GNU C
configure:1977: gcc -E conftest.c
configure:1996: checking whether gcc accepts -g
configure:2063: checking for gnatbind
configure:2128: checking whether compiler driver understands Ada
configure:2160: checking how to compare bootstrapped objects
configure:2258: checking for correct version of gmp.h
configure:2271: gcc -c -g -O2   conftest.c 1>&5
configure:2284: checking for MPFR
configure:2297: gcc -o conftest -g -O2    conftest.c  -lmpfr -lgmp 1>&5
configure:2793: checking for bison
configure:2828: checking for bison
configure:2863: checking for gm4
configure:2863: checking for gnum4
configure:2863: checking for m4
configure:2898: checking for flex
configure:2933: checking for flex
configure:2968: checking for makeinfo
configure:3615: checking for i686-pc-linux-gnu-ar
configure:3648: checking for ar
configure:3687: checking for i686-pc-linux-gnu-as
configure:3720: checking for as
configure:3759: checking for i686-pc-linux-gnu-dlltool
configure:3792: checking for dlltool
configure:3831: checking for i686-pc-linux-gnu-ld
configure:3864: checking for ld
configure:3903: checking for i686-pc-linux-gnu-nm
configure:3936: checking for nm
configure:3975: checking for i686-pc-linux-gnu-ranlib
configure:4008: checking for ranlib
configure:4047: checking for i686-pc-linux-gnu-windres
configure:4080: checking for windres
configure:4119: checking for i686-pc-linux-gnu-objcopy
configure:4152: checking for objcopy
configure:4191: checking for i686-pc-linux-gnu-objdump
configure:4224: checking for objdump
configure:4270: checking for i686-pc-linux-gnu-ar
configure:4303: checking for ar
configure:4342: checking for i686-pc-linux-gnu-as
configure:4375: checking for as
configure:4414: checking for i686-pc-linux-gnu-dlltool
configure:4447: checking for dlltool
configure:4486: checking for i686-pc-linux-gnu-ld
configure:4519: checking for ld
configure:4558: checking for i686-pc-linux-gnu-nm
configure:4591: checking for nm
configure:4630: checking for i686-pc-linux-gnu-ranlib
configure:4663: checking for ranlib
configure:4702: checking for i686-pc-linux-gnu-windres
configure:4735: checking for windres
configure:4820: checking whether to enable maintainer-specific portions of Makefiles
configure:4867: checking if symbolic links between directories work

请问各位大大,大概是什么原因造成的?
发表于 2010-10-16 15:32:05 | 显示全部楼层
换个新点的lfs版本吧。6.2太老了,相对于你那么新的宿主系统。
新的gcc已经不需要make bootstrap这个步骤了,大概是这个原因
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-17 02:24:04 | 显示全部楼层
呃,好吧~~~已经换6.7了,进行到第五章结束了,明天继续~
回复 支持 反对

使用道具 举报

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

本版积分规则

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