error: C preprocessor fails sanity check

问题

bash 复制代码
./configure --prefix=/opt/mips_lib/libev --host=mipsel-openwrt-linux CC=mipsel-openwrt-linux-gcc

运行后提示

bash 复制代码
checking how to run the C preprocessor... mipsel-openwrt-linux-gcc --sysroot=/opt/mt7628/toolchain-mipsel_24kc_gcc-8.4.0_musl -I/opt/mt7628/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include
configure: error: in `/opt/mips_lib/libev-4.19':
configure: error: C preprocessor "mipsel-openwrt-linux-gcc --sysroot=/opt/mt7628/toolchain-mipsel_24kc_gcc-8.4.0_musl -I/opt/mt7628/toolchain-mipsel_24kc_gcc-8.4.0_musl/usr/include" fails sanity check
See `config.log' for more details

解决

bash 复制代码
./configure --prefix=/opt/mips_lib/libev --host=mipsel-openwrt-linux CC=mipsel-openwrt-linux-gcc CPP='mipsel-openwrt-linux-g++ -E'

参考

配置:错误:C预处理器无法进行健全性检查

相关推荐
刃神太酷啦21 小时前
力扣校招算法通关:双指针技巧全场景拆解 —— 从数组操作到环检测的高效解题范式
java·c语言·数据结构·c++·算法·leetcode·职场和发展
71-31 天前
牛客上的练习题——打印X形图案(有说明scanf返回值)
c语言·笔记·学习
落羽的落羽1 天前
【Linux系统】C/C++的调试器gdb/cgdb,从入门到精通
linux·服务器·c语言·c++·人工智能·学习·机器学习
朱嘉鼎1 天前
KeilIDE背后的命令
c语言·嵌入式硬件·keilmdk
仟濹1 天前
「经典数字题」集合 | C/C++
c语言·开发语言·c++
SunnyKriSmile1 天前
函数递归求最大值
c语言·算法·函数递归
degen_1 天前
DXE流程
c语言·笔记·bios
七夜zippoe1 天前
仓颉FFI实战:C/C++互操作与性能优化
c语言·c++·性能优化
十五学长1 天前
程序设计C语言
c语言·开发语言·笔记·学习·考研
GilgameshJSS1 天前
STM32H743-ARM例程33-TOUCH
c语言·arm开发·stm32·单片机·嵌入式硬件