Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887453 - dev-util/bpftool-5.19.12: fails to build on kernel >=6.0
Summary: dev-util/bpftool-5.19.12: fails to build on kernel >=6.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 14:24 UTC by Holger Hoffstätte
Modified: 2022-12-22 13:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2022-12-20 14:24:04 UTC
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.
Comment 1 Larry the Git Cow gentoo-dev 2022-12-22 13:29:31 UTC
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(+)