-
Notifications
You must be signed in to change notification settings - Fork 225
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
FC37: cannot load module: failed to find valid kernel BTF (compiled make build-binary binary does not work) #245
Comments
What version are you running? Is this packaged by you or somebody else? Could you run the latest with The There should also be a message like this:
There aren't any devel packages needed at runtime for v2. |
ebpf_exporter latest master source compiled by me. Kernel is whatever Fedora ships. Debug log here:
|
This seem to be the issue: What |
We provide pre-built statically binaries built with a tested version of Does it work if you try that? Testing it would remove the |
Dammit. Yes, that binary works correctly. Perhaps it's the CFLAGS I'm using when building the modules or the binary? |
I have tried unsetting CFLAGS during the RPM build. Nothing. Same error. |
Actually, even a simple The problem is definitely the binary, as my locally built modules work with the static binary you furnished. |
Gah. I can't build statically on Fedora anyway because they dropped libelf static years ago: https://www.spinics.net/lists/fedora-devel/msg275554.html
Duh, that file was needed by software developers. |
Looks like FC37 comes with
If you really want to build it yourself, you can either use the docker image from this repo or build in FC38. |
I opened #247 to make this sort of failure scenario obvious. |
With kernel 6.4.7-100.fc37.x86_64 and relevant devel packages installed, I cannot load
biolatency
:As you can see, the BTF file does exist in /sys/kernel:
This is a regression from 1.x which worked flawlessly.
The text was updated successfully, but these errors were encountered: