-
Notifications
You must be signed in to change notification settings - Fork 380
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
build: use upstream clang instead of forked version for BPF programs #146
Conversation
1ddc072
to
605901c
Compare
cb3a78c
to
a32fd65
Compare
d630ecb
to
3954fcb
Compare
3954fcb
to
7ea8dd5
Compare
7ea8dd5
to
52b8f81
Compare
We were defining a0, a1, a2, a3, and a4 in every tail call program, even though we really only needed one per program. Remove the extras to fix the unused variable error when compiling on latest clang. Signed-off-by: William Findlay <[email protected]>
We have a nop binary now but it wasn't being ignored in VCS. Let's fix that so we don't check it in by accident. Signed-off-by: William Findlay <[email protected]>
Use apt-get instead of apt to silence warnings. Remove CLANG_INSTALL_DIR from the tools-install target because it no longer exists. Signed-off-by: William Findlay <[email protected]>
Introduce a new Docker image that provides a suitable clang version for compiling our BPF programs. Signed-off-by: William Findlay <[email protected]>
52b8f81
to
14a5870
Compare
Note, I cancelled the clang build job since I already ran this on a previous revision of this PR and the Dockerfile has not changed. So we can ignore the "failure" here. |
I wouldn't block this for this, but why not clang14? |
@jrfastab honestly no reason, I'll bump it and see if anything breaks. |
Hitting over 1M instructions on execve programs under clang-14. I'll create an issue for now and we can ship this with clang-13. Edit: issue is here #164 |
Use an upstreamed version of clang (clang-13) instead of our forked version. We provide a Docker image for convenience, but any distribution's clang should work provided it is >= clang-13. See individual commits.
Fixes #142