FS#76365 - [llvm] Consider enabling BOLT
Attached to Project:
Arch Linux
Opened by Laurențiu Nicola (lnicola) - Tuesday, 01 November 2022, 06:55 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:25 GMT
Opened by Laurențiu Nicola (lnicola) - Tuesday, 01 November 2022, 06:55 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:25 GMT
|
Details
Description:
As far as I can tell, BOLT should be available in LLVM 14, but I don't think it's compiled in on Arch (`llvm-bolt` and `merge-fdata` are missing). Could you enable them? See https://github.com/llvm/llvm-project/tree/main/bolt#manual-build. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:25 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/llvm/issues/1
Saturday, 25 November 2023, 20:25 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/llvm/issues/1
[1] https://aur.archlinux.org/packages/makepkg-optimize-mold
Here the open bug report this:
https://github.com/llvm/llvm-project/issues/57551
I have not tested if llvm 15 works, im waiting currently until arch will upgrade to 15 to test this.
This commit does maybe fix that, but will still not link with libLLVM.so:
https://github.com/llvm/llvm-project/commit/61cff9079c083fdcfb9fa324e50b9e480165037e
The above linked package, is just a little helper for the usage of makepkg.
It worked so far, I needed to use some patches from fedora to make it proper compiling, because of the above mentioned DYLIB issue.
Besides that llvm would require to build from source, since llvm-bolt has no release which could be included into the source array.
BOLT will have a own release with llvm 16 so far I followed in their discord.
If SPHINX is used, it also require this patch to have no error at the compilation:
https://reviews.llvm.org/D140156
According to the llvm-bolt discord channel it will be packaged with llvm 16.
https://github.com/ptr1337/llvm-pkgbuilds/blob/master/llvm%2Bbolt/PKGBUILD
https://reviews.llvm.org/D143809
So a recent fix for the install did also land now into the 16.x branch, it should be possible to package BOLT now proper for archlinux.
Does arch plan to ship llvm-bolt maybe in a own package?