Closed bcstinch closed 3 years ago
Thanks for the report, this seems to be an issue with bpftool
specifically:
[...]
#12 699.9 ./bpftool-bootstrap btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h
#12 699.9 Error: failed to load BTF from /sys/kernel/btf/vmlinux: Invalid argument
#12 699.9 make: *** [Makefile:140: vmlinux.h] Error 22
#12 699.9 * ERROR: dev-util/bpftool-5.9::host failed (compile phase):
#12 699.9 * emake failed
#12 699.9 *
[...]
If you are not building the vmlinux
target, removing *dev-util/bpftool
from repos/host/profiles/default/packages
ought to resolve the issue for you.
The underlying issue seems to be the fact that no /sys/kernel/btf/vmlinux
exists or it cannot be accessed on Fedora. Can you check with zcat /proc/config.gz | grep BTF
?
@bcstinch The issue should now be fixed. I also use Fedora 34.
I pulled the latest and tried and I still saw the same error. @robimarko
@jpetrina
I tried commenting out *dev-util/bpftool
in repos/host/profiles/default/packages
and that worked. Here is the output of zcat /proc/config.gz | grep BTF
[bcs@xunlai ~]$ zcat /proc/config.gz | grep BTF
gzip: /proc/config.gz: No such file or directory
@bcstinch after pulling Robert's changes, have you updated repository submodules with git submodule update --init --recursive
? I feel this might have been the issue here.
The idea with /proc/config.gz
was to check BPF Type Format support in the kernel. It seems Fedora 34 already supports this with CONFIG_DEBUG_INFO_BTF=y
which should expose /sys/kernel/btf/vmlinux
.
Regardless, @robimarko has updated bpftool; the underlying issue seems to be an old bpftool version not being compatible with new kernel BTF. This should now be fixed so please try building from clean slate.
Confirmed, I am just a git noob. Everything seems to be working now! Feel free to close.
Distribution: Fedora 34 RAM: 256GB Filesystem: ext4 Docker daemon logs:
Additional logs: https://pastebin.com/XeWni5Nj
Issue description: I am having issues building at all on Fedora 34. All logs are above and versions are below. Any help would be appreciated as this failure occurs after ~1400 seconds of compiling.