install failed because of libbpf
Opened this issue · 0 comments
fntlnz commented
I can't build traffico-cni because of a compilation issue with libbpf, opening it here to track.
+ /usr/bin/xmake -y -b traffico-cni
checking for platform ... linux
checking for architecture ... x86_64
updating repositories .. ok
=> download https://github.com/bats-core/bats-core/archive/refs/tags/v1.7.0.tar.gz .. ok
Installed Bats to /tmp/.xmake/packages/b/bats/v1.7.0/ccbbe97a924a460eb1cc8066487eb7d3/bin/bats
=> install bats v1.7.0 .. ok
=> download https://github.com/xmake-mirror/libelf/releases/download/0.8.13/libelf-0.8.13.tar.gz .. ok
=> download https://acme.com/software/mini_httpd/mini_httpd-1.30.tar.gz .. ok
mini_httpd/1.30 26Oct2018
=> install mini_httpd 1.30 .. ok
=> install libelf 0.8.13 .. ok
=> download https://github.com/libbpf/libbpf/archive/v0.8.0.tar.gz .. ok
=> install libbpf v0.8.0 .. failed
[ 4%]: cache compiling.release src/btf.c
[ 4%]: cache compiling.release src/libbpf.c
[ 4%]: cache compiling.release src/ringbuf.c
[ 4%]: cache compiling.release src/linker.c
[ 4%]: cache compiling.release src/nlattr.c
[ 4%]: cache compiling.release src/netlink.c
[ 4%]: cache compiling.release src/relo_core.c
[ 4%]: cache compiling.release src/libbpf_probes.c
[ 4%]: cache compiling.release src/usdt.c
[ 4%]: cache compiling.release src/xsk.c
[ 4%]: cache compiling.release src/str_error.c
[ 4%]: cache compiling.release src/libbpf_errno.c
[ 4%]: cache compiling.release src/gen_loader.c
[ 4%]: cache compiling.release src/hashmap.c
[ 4%]: cache compiling.release src/bpf_prog_linfo.c
[ 4%]: cache compiling.release src/bpf.c
[ 4%]: cache compiling.release src/strset.c
if you want to get more verbose errors, please see:
-> /tmp/.xmake/cache/packages/2312/l/libbpf/v0.8.0/installdir.failed/logs/install.txt
=> download https://mirror.bjtu.edu.cn/kernel/linux/kernel/v5.x/linux-5.16.9.tar.xz .. failed
=> download https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.16.9.tar.xz .. ok
=> install linux-headers 5.16.9 .. ok
error: install failed!
make: *** [Makefile:148: _output/cni-plugins/traffico] Error 255