LinuxSir.cn,穿越时空的Linuxsir!

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

求助,youbest 的CLFS.编译工具链的Binutils时出错

[复制链接]
发表于 2009-10-18 04:00:41 | 显示全部楼层 |阅读模式
进行到../binutils-2.19.1/configure --prefix=/tools \
--with-lib-path=/tools/lib --disable-nls \
--enable-shared --enable-64-bit-bfd --disable-multilib
时,提示:
checking for C compiler default output file name... configure: error: in `/64_system/build/binutils-build':
configure: error: C compiler cannot create executables
See `config.log' for more details.


config.log文件中的提示是:
configure:1549: checking build system type
configure:1567: result: x86_64-unknown-linux-gnu
configure:1602: checking host system type
configure:1616: result: x86_64-unknown-linux-gnu
configure:1624: checking target system type
configure:1638: result: x86_64-unknown-linux-gnu
configure:1682: checking for a BSD-compatible install
configure:1748: result: /usr/bin/install -c
configure:1759: checking whether ln works
configure:1781: result: yes
configure:1785: checking whether ln -s works
configure:1789: result: yes
configure:2983: checking for gcc
configure:2999: found /tools/bin/gcc
configure:3009: result: gcc
configure:3255: checking for C compiler version
configure:3258: gcc --version </dev/null >&5
gcc (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3261: $? = 0
configure:3263: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.4.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --disable-shared --without-headers --with-newlib --disable-decimal-float --disable-threads --enable-languages=c --disable-multilib --disable-bootstrap
Thread model: single
gcc version 4.4.1 (GCC)
configure:3266: $? = 0
configure:3268: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:3271: $? = 1
configure:3294: checking for C compiler default output file name
configure:3297: gcc    conftest.c  >&5
gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:3300: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3338: error: in `/64_system/build/binutils-build':
configure:3341: error: C compiler cannot create executables
See `config.log' for more details.



请问各位高手该如何解决?
发表于 2009-10-18 07:47:43 | 显示全部楼层
这是哪本手册?

第几章?第几节?

缩主系统是啥?
回复 支持 反对

使用道具 举报

发表于 2009-10-22 10:28:59 | 显示全部楼层
gcc: Internal error: Segmentation fault ??

你先确定你的机器是否是64位的,另外你的内核是否是64位的,内核的查看可以使用
uname -a
回复 支持 反对

使用道具 举报

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

本版积分规则

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