【发布时间】:2021-10-26 08:17:55
【问题描述】:
我正在尝试使用 buildroot(busybox) 为 RISCV Arch 编译 linux。我之前使用的是 18.04 和 20.04,编译时没有问题。现在,我已经将它升级到 21.10 来构建一些其他的东西。我已经移动了我的工具链,我可以使用 which 命令找到它。当我尝试编译 linux 时,我遇到了一些我在早期版本中没有遇到的错误。
>>> host-m4 1.4.18 Building
In file included from /usr/include/signal.h:328,
from ./signal.h:52,
from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| ^~~~~~~~
CC closein.o
c-stack.c:134:8: error: variably modified 'buffer' at file scope
134 | char buffer[SIGSTKSZ];
| ^~~~~~
CC closeout.o
我对不同版本如何导致此错误感到困惑。
提前致谢。
【问题讨论】:
标签: linux-kernel riscv buildroot busybox