-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bolt can be installed starting with LLVM 15 - README potentially needs an update #31
Comments
Thanks for letting me know! I will check it out, modify the README, and check if LLVM autodetection in |
Hmm, while the package can be installed, when I actually try to use BOLT, it fails with this error:
Does it work for you? |
It seems to be provided by
/.
/usr
/usr/lib
/usr/lib/llvm-15
/usr/lib/llvm-15/lib
/usr/lib/llvm-15/lib/libbolt_rt_hugify.a
/usr/lib/llvm-15/lib/libbolt_rt_instr.a
/usr/share
/usr/share/doc
/usr/share/doc/libbolt-15-dev
/usr/share/doc/libbolt-15-dev/NEWS.Debian.gz
/usr/share/doc/libbolt-15-dev/changelog.Debian.gz
/usr/share/doc/libbolt-15-dev/copyright This is the hack that I had to do(after trying with linker flags), which I am not particularly happy or proud about: sudo ln -sf /usr/lib/llvm-15/lib/libbolt_rt_instr.a /usr/lib/libbolt_rt_instr.a It found it and then |
I see 😅 Well, I think that I will wait a bit until modifying the readme, as this installation option still seems to be quite unstable. It would be best if BOLT would be built on the LLVM GitHub releases page, I pinged the LLVM maintainers about this, but it hasn't been implemented yet. |
The self-built version of LLVM 15 is also crashing on |
Even ignoring the crash, I think that it might not be production ready if you have to link library files manually :D But I can at least add a link to this issue to README: https://github.com/Kobzol/cargo-pgo/blob/main/README.md#bolt-installation. |
The
README.md
mentions the need to buildbolt
yourself - this is not required any more, at least on Debian-based distros. It is available in the LLVM repositories( https://apt.llvm.org/ ) starting with LLVM 15(maybe even LLVM 14, have not checked).Example install on Ubuntu(matching the version used by rustc), starting with
rustc 1.65
:dpkg -L bolt-15
:This might also need an update:
cargo-pgo/src/bolt/mod.rs
Line 12 in 2e28cf4
The text was updated successfully, but these errors were encountered: