C preprocessor fails sanity check
来源:互联网 发布:我的少女时代 知乎 编辑:程序博客网 时间:2024/06/09 21:44
编译某一产品固件时,遇到如下现象:
checking how to run the C preprocessor... /opt/mipsel-24kec-linux-uclibc/bin/mipsel-24kec-linux-uclibc-gccconfigure: error: in `/home/ivan/work/***/m4':configure: error: C preprocessor "/opt/mipsel-24kec-linux-uclibc/bin/mipsel-24kec-linux-uclibc-gcc" fails sanity checkSee `config.log' for more detailsmake: *** [setup] Error 1/* config.log文件 查找error位置 */configure:3345: checking how to run the C preprocessorconfigure:3415: result: /opt/mipsel-24kec-linux-uclibc/bin/mipsel-24kec-linux-uclibc-gccconfigure:3435: /opt/mipsel-24kec-linux-uclibc/bin/mipsel-24kec-linux-uclibc-gcc conftest.cconftest.c(14): error: identifier "Syntax" is undefined Syntax error ^
明明用的是交叉编译,可错误打印中的C preprocessor路径却是系统配置的gcc,而非交叉编译工具链gcc,很费解。
后面在同事的提醒下,之前在这个窗口编译过其它SDK,执行过命令"source ~/.bashrc",这会修改当前编译窗口的编译环境变量,导致编译器路径被修改。
解决方法,很简单: 关闭当前编译窗口,打开新窗口,重新编译,问题解决。
0 0
- C preprocessor fails sanity check
- C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- ubuntu C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- error: C++ preprocessor "/lib/cpp" fails sanity check错误解决方法
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- configure: error: C++ preprocessor "/lib/cpp" fails sanity check
- 三维重建学习之旅(一)
- android中handler和looper的工作原理
- 极光推送
- Word Amalgamation
- HDU2009 求数列的和
- C preprocessor fails sanity check
- qt在linux下开发注意事项
- Android中的Shape使用总结
- java实现整数选择排序
- V4L2命令之 VIDIOC_G_CTRL, VIDIOC_S_CTRL
- H264学习指南
- 加密解密原理
- 一棵树是否为另一棵树的子树
- H264规定了三种主要档次