设置 autoconf 的包含搜索路径
我正在尝试交叉编译适用于 ARM 的 OpenOCD,但无法通过 autoconf 阶段。这是我得到的错误。
configure:13765: checking for environ in unistd.h and stdlib.h
configure:13776: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/home/neil/overo-oe/tmp-2011.03-maintenance/sysroots/armv7a-angstrom-linux-gnueabi -std=gnu99 -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -I/usr/include conftest.c >&5
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: in add_path, at c-incpath.c:425
源代码在每个 src 目录中包含configure.in 和makefile.am。如何更改标头搜索路径?
I'm trying to cross compile OpenOCD for ARM but can't get past the autoconf stage. Here is the error I get.
configure:13765: checking for environ in unistd.h and stdlib.h
configure:13776: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/home/neil/overo-oe/tmp-2011.03-maintenance/sysroots/armv7a-angstrom-linux-gnueabi -std=gnu99 -c -fexpensive-optimizations -frename-registers -fomit-frame-pointer -O2 -ggdb2 -I/usr/include conftest.c >&5
CROSS COMPILE Badness: /usr/include in INCLUDEPATH: /usr/include
cc1: internal compiler error: in add_path, at c-incpath.c:425
The source includes configure.in and a makefile.am in each src directory. How do I change the header search path?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定我是否理解您的问题,但包含路径是在 Makefile.am 文件中设置的。在宏 [名称]_CPPFLAGS 中
I'm not sure I'm understanding your question, but the include path is setted up in the Makefile.am file. in the macro [name]_CPPFLAGS