LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]configure: error: cannot run C compiled programs.

[复制链接]
发表于 2009-5-4 23:28:10 | 显示全部楼层 |阅读模式
在虚拟机中,本来是在命令行下做,由于不放心敲打那么长的命令,在进行到5.7. 调整工具链,执行完:
GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include &&
find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &&
rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &&
unset GCC_INCLUDEDIR
后,准备起来X后重新从头做,结果在2.3. 在新分区上创建文件系统时候,准备重新编译 E2fsprogs 包,然后用这个重新编译过的工具来创建文件系统,configure时候出错了:
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
看了看config.log,有那么点有用的信息:
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.1)
configure:1800: $? = 0
configure:1802: cc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1805: $? = 1
configure:1828: checking for C compiler default output file name
configure:1831: cc conftest.c >&5
configure:1834: $? = 0
configure:1880: result: a.out
configure:1885: checking whether the C compiler works
configure:1891: ./a.out
../configure: line 1892: ./a.out: No such file or directory
configure:1894: $? = 127
configure:1903: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.

不知道咋回事
 楼主| 发表于 2009-5-4 23:28:51 | 显示全部楼层
补充下,是按照金步国的翻译6.2版本做的
回复 支持 反对

使用道具 举报

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

本版积分规则

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