君正buildroot2020在Ubuntu22编译报错
- 君正buildroot2020在Ubuntu22编译报错
- 报错
- 解决办法
君正buildroot2020在Ubuntu22编译报错
报错
fakeroot
libfakeroot.c: In function ‘chown’:libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
m4
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
make[7]: ***[Makefile:1910:c-stack.o] Error 1
解决办法
克隆buildroot2021.02.x的代码,复制相应补丁过去即可。
git clone https://gitlab.com/buildroot.org/buildroot.git#浅拷贝git clone --branch buildroot2021.02.x --depth 1 https://gitlab.com/buildroot.org/buildroot.git
补丁都在 package/包名 里面