-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Ubuntu 22.04 Exception: Failed to compile BPF module <text> #3993
Comments
Same issue found on Canonical Launchpad - https://bugs.launchpad.net/ubuntu/+source/bpfcc/+bug/1969626 |
If it is of interest, I worked around this re-defining the couple of things causing trouble (Yelp/pidtree-bcc#82). It's likely not the most solid of approaches, but at least gets things compiling and working for the time being. |
I compiled version 0.24 using source code on ubuntu22.04 version and it works fine. The 0.18 version installed using apt install bpfcc-tools has the above compile error. |
Thanks guys! Finally it works, I've build from 0.25-release. |
Just a little cheatsheet for ubuntu.
|
cmake error,what should i do? |
|
I had that problem too, with different clang, llvm, libclang versions. To fix it i've removed all of them and installed the latest ones. |
For anyone who struggled like me despite running
repeat the rm and cmake steps until it works. Full Updated list of commands:
Also just found out the cause of my error: it was because of running |
Hi guys!
I'm trying to install BCC on my Kubuntu 22.04. Tried both ways, packages and source, having the same issue, please help.
From repo(apt install bpfcc-tools):
And from source:
Running my build:
So basically both installations break the same way, probably for the same reason.
My software versions:
Thanks in advance!
The text was updated successfully, but these errors were encountered: