Project scenario:
Error when compiling builderoot:
Problem description:
Error when compiling builderoot:
PATH="/home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/host/bin:/home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/opt/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin" PKG_CONFIG="/home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/host/lib/pkgconfig:/home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/host/share/pkgconfig" /usr/bin/make -j2 -C /home/dlxy/sambashare/LicheepiNano/buildroot-2018.02.5/output/build/host-m4-1.4.18/
/usr/bin/make all-recursive
Making all in .
make[4]: Nothing to be done for 'all-am'.
Making all in examples
make[4]: Nothing to be done for 'all'.
Making all in lib
/usr/bin/make all-am
CC c-stack.o
CC clean-temp.o
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[5]: *** [Makefile:1915: c-stack.o] Error 1
Solution:
Locate c-stack.c file in the builderoot folder
line 55:
comment out the following contents, and the results are as follows: