-
Notifications
You must be signed in to change notification settings - Fork 919
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
failed to compile using falco-builder container + eBPF #931
Comments
@2rigor: There is not a label identifying the kind of this issue. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/triage support |
Not sure if relevant, but:
|
Apologize for the mess.. |
/kind ebpf_compilation |
Thanks for opening 2rigor ! Even if you are in a container, compiling the BPF probe is very tied to the actual host machine kernel ABI and hence it’s headers. From what I can see it looks like you are missing the kernel headers on your host machine. If your host machine is an Ubuntu (I’m inferring this from what you posted) you can achieve that by installing them and then retry the build :
|
@fntlnz thanks a lot!
BTW, I also found I need to map /lib/modules (not not just /lib/modules/ It fails (the above command didn't help) at not finding clang. |
@2rigor i didn’t understand, did it work for you or not ? If it didn’t can you please post the logs ? |
@2rigor - Good news! So the only missing problem you have is that you can't find clang right? Should we add it to the falco builder? It makes sense to me. |
After adding (mapping) clang, i had some libraries missing. After mapping them, the version of some libraries was too old, so I started to change LD_LIBRARY_PATH, but didn't succeed. Do you need logs? I will be able to post them on Sunday @fntlnz thanks a lot in advance! |
Yes those would speed up things @2rigor - maybe it’s something we already know! The builder container is very “complicated” and needs some love to update the tool chains, if we can’t sort this out we could also have one specific for the eBPF probe. |
I wanted to repeat all the steps I did from the very beginning, so I've installed Ubuntu from scratch. This time I installed 19.10 (previously it was 18.04). Then, after cloning falco and sysdig sources to /home/aa/src, I ran: Attached /etc/os-release content, cmake_bpf.txt and package_bpf.txt. Here the problem was missing clang. Then I tried to map directories relevant for clang playing with PATH and LD_LIBRARY_PATH - but it did not work.. How can I install clang and then start "package"? |
I know that @jalseth is working on this on his issue #900 - I've been able to install clang on the bpf builder using the In the meanwhile, since this issue is newer and duplicated let's keep the conversation on #900 and close this. Thanks @2rigor for all the details, feel free to continue the conversation on #900 - we will certainly need your feedback again once the docker image is updated. /triage duplicate |
@fntlnz: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hello.
I was trying to build using using falco-builder container
uname -r
/buildcmake:
docker run --user$(id -u):$ (id -g) -v /etc/passwd:/etc/passwd:ro -e MAKE_JOBS=4 -e BUILD_BPF=ON -it -v /home/user/src:/source -v /home/user/build/falco:/build -v /lib/modules/
uname -r
/build:/lib/modules/uname -r
/build falcosecurity/falco-builder cmakeuname -r
/build and randocker run --user
uname -r
/build:/lib/modules/uname -r
/build falcosecurity/falco-builder packageIt fails to build ebpf module:
Any ideas?
Thanks in advance.
P.S. If instead of opening an issue I should have done anything different - please tell me
The text was updated successfully, but these errors were encountered: