-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option for BPF support when CONFIG_DEBUG_INFO_BTF=y #129
Comments
Any issues you see with just having it always enabled instead? |
It breaks here with
[1] https://lists.debian.org/debian-kernel/2021/01/msg00110.html |
Just FYI: [1] https://lore.kernel.org/bpf/CA+icZUVuk5PVY4_HoCoY2ymd27UjuDi6kcAmFb_3=dqkvOA_Qw@mail.gmail.com/T/#u |
Do you have a quick (and dirty) fix? |
I do not. |
[1] https://lists.llvm.org/pipermail/llvm-dev/2021-January/147728.html |
Add
Logs:
|
It might be enough to add a hint to |
I ran into this same bug trying to build the Fedora kernel. The problem is that pahole segfaults at: scripts/link-vmlinux.sh:131. This looks to me like a bug in pahole. |
Which version of |
|
@dileks 1.19. This build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1644955 |
Upstream Git |
This is needed for CONFIG_DEBUG_INFO_BTF, which is becoming increasingly more common. Add it to the list of targets that are enabled by default so that it can be used without any issues. Closes: ClangBuiltLinux#129 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
This is needed for CONFIG_DEBUG_INFO_BTF, which is becoming increasingly more common. Add it to the list of targets that are enabled by default so that it can be used without any issues. Closes: ClangBuiltLinux#129 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Wow how fast, thanks! |
Why i meet this again in pahole 1.27..... |
Pahole needs to be patched currently. Should be too fixed in -git now. |
Thanks. Looks good to me. |
Debian-kernel team started to set
CONFIG_DEBUG_INFO_BTF=y
.First, this needs
pahole
binary fromdwarves
package (minimum:v1.16
).Second, your LLVM toolchain needs
BPF support
enabled.My selfmade LLVM toolchain v11.0.1 does not have this:
Debian's LLC has BPF support:
Is it possible to have an option to enable
BPF support
?Thanks.
[1] https://salsa.debian.org/kernel-team/linux/-/commit/929891281c61ce4403ddd869664c949692644a2f
[2] https://www.kernel.org/doc/html/latest/bpf/bpf_devel_QA.html?highlight=pahole#llvm
[3] https://www.kernel.org/doc/html/latest/bpf/btf.html?highlight=pahole#btf-generation
The text was updated successfully, but these errors were encountered: