[求助]configure: error: cannot run C compiled programs.
时间:2009-05-05
来源:互联网
在虚拟机中,本来是在命令行下做,由于不放心敲打那么长的命令,在进行到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'.
不知道咋回事
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'.
不知道咋回事
作者: kissinger_1984 发布时间: 2009-05-05
补充下,是按照金步国的翻译6.2版本做的
作者: kissinger_1984 发布时间: 2009-05-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28