LinuxSir.cn,穿越时空的Linuxsir!

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

大家帮忙看一下这是什么问题

[复制链接]
发表于 2006-8-14 10:20:07 | 显示全部楼层 |阅读模式
{lfs:/mnt/lfs/sources/gcc-build$ $LFS/sources/gcc-3.4.3/configure --prefix=/tools \
>
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so: file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc/i386-redhat-linux/4.1.0/../../../libc.so:5: syntax error
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler}
以上是 我 在作gcc pass1时候得到的 问题 ,高手请看一下是怎么回事
发表于 2006-8-14 22:27:58 | 显示全部楼层
估计你glibc没有做对。你要检查一下glibc安装。
回复 支持 反对

使用道具 举报

发表于 2006-8-14 23:21:16 | 显示全部楼层
你的¯境ØÏ有î˜,åâ一下看看gcc在哪里
回复 支持 反对

使用道具 举报

发表于 2006-8-14 23:35:18 | 显示全部楼层
觉得是和主系统有关,,,试试 LiveCD?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-15 10:24:19 | 显示全部楼层
我又试了一次,命令完全是从网上复制下来的,还是 同样的 错误,谁能给我解释一下到底是怎么回事。
回复 支持 反对

使用道具 举报

发表于 2006-8-16 04:39:08 | 显示全部楼层
binutils 的版本是?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-16 10:00:42 | 显示全部楼层
我用的是6.1.1。binutils-2.15.94.0.2.2
回复 支持 反对

使用道具 举报

发表于 2006-8-16 12:20:33 | 显示全部楼层
换成 2.16.1 试试吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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