-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support building with LLVM 18 #3051
Conversation
"runtime:call" in ptest gets the following FAILED: python: No such file or directory replace python with python3 in the test scripts. $export BPFTRACE_RUNTIME_TEST_EXECUTABLE=/usr/bin $cd /usr/lib/bpftrace/ptest/tests $python3 runtime/engine/main.py --filter="call.*" *** [ RUN ] call.strftime_microsecond_extension_rollover [ FAILED ] call.strftime_microsecond_extension_rollover Command: /usr/bin/bpftrace -e 'BEGIN { printf("%s - %s\n", strftime ("1%f", 1000000123000), strftime("1%f", 0)); exit(); }' | tail -n +2 | xargs -I{} python -c "print({})" Unclean exit code: 127 Output: __BPFTRACE_NOTIFY_PROBES_ATTACHED\nxargs: python: No such file or directory\n *** Signed-off-by: Wentao Zhang <[email protected]> Signed-off-by: Khem Raj <[email protected]>
getPtrTy is added in LLVM-15 and is to be used instead of getInt8PtrTy which is gone in LLVM-18 onwards llvm/llvm-project@7e0802aeb5b90 Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Daniel Xu <[email protected]>
llvm 18 has change CodeGenOpt::Level/CodeGenFileType into enum classes via llvm/llvm-project@0a1aa6c Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Daniel Xu <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that LLVM 18 is not in nixpkgs, yet, so we should just merge this and add the CI job once it is available.
Is it possible to backport this PR to release/0.20.x branch or release new version out of master? 🤔 |
Hi @kloczek , speaking for myself, I'd prefer not to yet. We don't have LLVM 18 running in CI yet. So consider llvm 18 support under development. |
Any update about LLVM 18.1.x supporting new version? 🤔 |
@kloczek almost! Nix is about to release 24.05 (NixOS/nixpkgs#303285) which contains llvm 18 package |
Quick update: nix 24.05 is out and llvm 18 is present. I'm having a bit of trouble getting the nix build to function. Currently stuck with this error:
LD_DEBUG=all is quite helpful. Seems like this is related to the recent lldb dependency addition:
I filed NixOS/nixpkgs#315214 . |
@tyroguru We're you seeing a similar issue in your VM? |
Looks like master is broken atm too: NixOS/nixpkgs#315214 (comment) |
Support building bpftrace against the recently released LLVM 18.
Checklist
man/adoc/bpftrace.adoc
CHANGELOG.md