尝试使用 Buildroot 为 LPC3250 ARM 编译 Linux 映像。库存设置,它编译得很好。当我尝试添加 alsa-lib 和 alsa-utils 时出现此错误:
configure: error: in `/home/user/projects/buildroot/output/build/alsa-lib-1.0.26 ':
configure: error: C preprocessor "/home/user/projects/buildroot/output/host/usr/ bin/arm-buildroot-linux-uclibcgnueabi-cpp" fails sanity check
See `config.log' for more details
alsa-lib 的 config.log 的摘录。这有点糟糕,因为一半的错误消息由于某种原因被切断了:
/home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/features.h:219:5: error: #error It appears you have defined _FILE_OF$
In file included from /home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdio.h:72,
from conftest.c:12:
/home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/bits/uClibc_stdio.h:61:2: error: #error Sorry... uClibc was built wi$
In file included from conftest.c:12:
/home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdio.h:83: error: expected '=', ',', ';', 'asm' or '__attribute__' $
In file included from conftest.c:12:
/home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdio.h:721: error: expected declaration specifiers or '...' before $
/home/user/projects/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdio.h:723: error: expected ';', ',' or ')' before '*' token
类似的问题在这里说明了一些关于“取消设置”CPP 和 CPPFlags 的信息。不确定我会在哪里执行此操作或在 Buildroot 环境中检查它。我不确定这是否是同一个问题。我猜它不相关,因为在另一个问题中它正在谈论编译 GCC,而我没有这样做。
我现在的 #1 预感是我必须编辑 lib-alsa 的配置文件。我只是不确定要进行哪些编辑。
编辑:做了一些积极的谷歌搜索,并想出了我认为是我的一个错误的完整版本:...features.h:329:2: #error It appears you have defined _FILE_OFFSET_BITS=64. Unfortunately, uClibc was built without large file support enabled.
检查了我的 uClibc 配置文件并且UCLIBC_HAS_LFS=y
存在。???