产品中 configure/cross compile的一个bug
2016-04-15 12:07
127 查看
在mac机上, 为iPhone版本编译产品. 运行./configure报错如下:
configure:22793: error: cannot run test program while cross compiling
See `config.log' for more details
原因:
aclocal/xx.m4中, 有如下代码:
AC_RUN_IFELSE([AC_LANG_PROGRAM([], [
// ...
])], [var="a"],
[var="b"])
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Runtime.html
If the compiler being used does not produce executables that run on the system where configure is being run, then the test program is not run. If the optional shell commandsaction-if-cross-compiling are given, they are run instead. Otherwise, configure prints an error message and exits.
在configure中, 我们需要实际run一些代码来检查系统. 对于cross compile的情况, 我们实际上没有相应的运行环境. 所以configure会报错退出.
configure:22793: error: cannot run test program while cross compiling
See `config.log' for more details
原因:
aclocal/xx.m4中, 有如下代码:
AC_RUN_IFELSE([AC_LANG_PROGRAM([], [
// ...
])], [var="a"],
[var="b"])
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Runtime.html
If the compiler being used does not produce executables that run on the system where configure is being run, then the test program is not run. If the optional shell commandsaction-if-cross-compiling are given, they are run instead. Otherwise, configure prints an error message and exits.
在configure中, 我们需要实际run一些代码来检查系统. 对于cross compile的情况, 我们实际上没有相应的运行环境. 所以configure会报错退出.
相关文章推荐
- C语言-郝斌笔记-006排序及查找
- 【转】VO BO PO 介绍
- 学习node+express过程中的MongoDB 的安装配置
- 关于测试思维的一点思考
- javascript函数声明和函数表达式的区别
- MySQL中优化sql语句查询常用的30种方法
- C++ 学习之路
- latex中的各种距离设置
- linux静态链接库与动态链接库详解
- Java中值传递和引用传递实例
- OpenCV中对Mat里面depth,dims,channels,step,data,elemSize和数据地址计算的理解
- layabox 引擎
- 如何选择分类器?LR、SVM、Ensemble、Deep learning
- 使用 polyfills 的简易方法
- 通自动SCP登陆备份linux定制机的数据的脚本
- 【Spring实战】—— 9 AOP环绕通知
- rsync深度实战
- Open JDK 建立SSL失败的问题
- android下拉刷新精彩动画
- 15个 MySQL 基础面试题,DBA 们准备好了吗?