-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Compilation of ebpf_prog fails - failed to load BTF from vmlinux: Unknown error -2 #680
Comments
This is build script "build_ebpf_prog.sh":
|
This is build log for command:
opensnitch__ebpf_prog__build.log
|
This is the kernel config file after build: config.log
Option |
Hi @Bogdan107 , Sorry to ask you for this, but please, post the errors (if any) compiling the modules as specified on the https://github.com/evilsocket/opensnitch/blob/master/ebpf_prog/README Thank you in advance :) |
Problem is: I use "Makefile.opensnitch", but must be "Makefile". When I replace name to Makefile, then compilation success. I write a ebuild to automatically buld ebpf_prog module of opensnitch in the Gentoo. Contents of the file
|
super cool @Bogdan107! 🎉 I remember that other user created a .ebuild file to build the app, maybe you could join forces to help each other. |
I think, that more stronger way to build module with ebuild - by using eclass "linux-mod". In this way, ebuild automatically use current active kernel source tree, with all gentoo patches, installed in the system, without needs to customize things, like kernel version and SRC_URI in my version. My ebuild can be used as My results of tries to build ebpf_prog as a kernel module:Success build of ebpf_prog module in portage system as kernel module is possible only if Makefile will be changed. No reson to play with ebuild, while I can't to do this:
Most desired changes in Makefile:
|
Describe the bug
I want to use ProcMonitorMethod=ebpf. For this, I need to compile ebpf_prog module.
Compilation fails with an error:
Include the following information:
To Reproduce
build script attached.
Post error logs:
Compilation of ebpf_prog fails with an error:
Additional context
The text was updated successfully, but these errors were encountered: