libbpf-bootstrap
libbpf-bootstrap copied to clipboard
xmake build minimal fail stddef.h:11:2: error: expected identifier false = 0,
I try build minimal by xmake. I git clone the last source code THen I delete other target except minimal in xmake.lua and run
xmake f --require-bpftool=y
xmake
My system is Linux lin 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linux The error message is
[ 88%]: cache compiling.release minimal.c
error: /usr/src/linux-headers-5.19.0-45-generic/include/linux/stddef.h:11:2: error: expected identifier
false = 0,
^
/usr/lib/llvm-14/lib/clang/14.0.0/include/stdbool.h:17:15: note: expanded from macro 'false'
#define false 0
^
In file included from minimal.c:6:
In file included from build/bpf/libbpf.h:18:
In file included from ../../libbpf/include/uapi/linux/bpf.h:11:
In file included from /usr/src/linux-headers-5.19.0-45-generic/include/linux/types.h:6:
In file included from /usr/src/linux-headers-5.19.0-45-generic/include/uapi/linux/types.h:14:
In file included from /usr/include/linux/posix_types.h:5:
/usr/src/linux-headers-5.19.0-45-generic/include/linux/stddef.h:12:2: error: expected identifier
true = 1
^
/usr/lib/llvm-14/lib/clang/14.0.0/include/stdbool.h:16:14: note: expanded from macro 'true'
#define true 1
> in minimal.c
there were recent changes to xmake setup, can you please try again on the latest version of libbpf-bootstrap?