When building the current versoin of bpftool in the tree on kernel >= 6.0, the buid fials with: Error: failed to load BTF from /sys/kernel/btf/vmlinux: Unknown error -22 I'm currently running 6.1 but this happened with stable 6.0.x as well, presumably because of a format change in the BTF info..or something. Reproducible: Always Steps to Reproduce: 1. run kernel 6.0 or higher 2. emerge bpftool-5.19.12 3. build error I bumped the ebuild for 6.1 in my overlay (removed all patches for binutils etc.) and the new version works fine, so it should be a matter of cleaning up & updating.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c9b0d3f7a21a0abacf5a3e031f9b6a5ebf00c3 commit c7c9b0d3f7a21a0abacf5a3e031f9b6a5ebf00c3 Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-12-21 13:59:30 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-12-22 13:28:40 +0000 dev-util/bpftool: add 6.0.12 Closes: https://bugs.gentoo.org/887453 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-util/bpftool/Manifest | 2 + dev-util/bpftool/bpftool-6.0.12.ebuild | 117 +++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+)