设置 autoconf 的包含搜索路径

发布于 2024-11-13 22:56:23 字数 700 浏览 4 评论 0原文

我正在尝试交叉编译适用于 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海风掠过北极光 2024-11-20 22:56:23

我不确定我是否理解您的问题,但包含路径是在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文