-
Notifications
You must be signed in to change notification settings - Fork 169
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
modern BPF driver build fails: BPF stack limit of 512 bytes is exceeded in sendmmsg.bpf.c:113:14 #2248
Comments
This seems to work around this problem:
Any higher value such as 2 triggers the original build failure. |
Reverting commit 8362ae9 resolves the issue. |
Hi! Thanks for opening this issue! |
/milestone 0.21.0 |
The issue is probably with the clang version, which clang are you using to compile the probe? |
|
It appears to build fine with Clang 14; confirmed! |
Yep, the issue is that we should really come up with an architecture that provides us a way to runtime "probe" the system for bpf features; in your case, using |
Describe the bug
When building from source, I get the build error:
How to reproduce it
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=$PWD/install "-DBUILD_DRIVER=OFF" "-DENABLE_DKMS=OFF" "-DBUILD_LIBSCAP_MODERN_BPF=ON" ..
make -j$(nproc)
Expected behaviour
Build should succeed.
Environment
The text was updated successfully, but these errors were encountered: