SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Interesting. I made the switch to DYLIB (again) since -DBUILD_SHARED_LIBS=ON broke the compile for llvm16, and I could not find any way around that. Plus, I could not find anyone else still building that way, and remembered the upstream recommendation. But it's looking like DYLIB suffers the same duplicate symbol rot as SHARED_LIBS=ON (perhaps worse). How's Arch getting away with this and not running into these bugs I wonder?
In spite of the bloat it would cause, it might be best to just stop trying to build any sort of shared LLVM libraries.
Not sure what the best solution is at this point. Errors like these are why we did the "not recommended" way of building all llvm libs as shared libs before, but apparently, like volkerdi mentioned, that's no longer working either.
Interesting. I made the switch to DYLIB (again) since -DBUILD_SHARED_LIBS=ON broke the compile for llvm16, and I could not find any way around that. Plus, I could not find anyone else still building that way, and remembered the upstream recommendation. But it's looking like DYLIB suffers the same duplicate symbol rot as SHARED_LIBS=ON (perhaps worse). How's Arch getting away with this and not running into these bugs I wonder?
In spite of the bloat it would cause, it might be best to just stop trying to build any sort of shared LLVM libraries.
Probably cause stucks on llvm-15 , all know archlinux is kamikaze on updates , when stay on one version and no upgrade is cause problems detected.
When I started working on llvm16 LFS was on 16.0.0 as well. Then at some point it switched back to the earlier version... perhaps I should have taken the hint.
Oh the pain. I built chromium-110 against my own build of llvm-16.0.0rc3 a few weeks ago on Slackware 15.0, because chromium-110 seemingly required a snapshot of the prerelease (beta, untested code?) of llvm 16. I just had to spend a day and figure out more about this...
Anyway, this was not a thing that went without a hitch. I can't remember exactly all the ways that didn't work, but here is at least how I built llvm 16rc3 after some attempts and hacking away. I don't think I started with the prior slackbuild, but a sort of BLFS/Slackware hybrid put in /opt.
I might have used BLFS as the guide here, but don't remember at what exact instance it would have been either. I guess it would not have been at llvm16 in BLFS yet as llvm had not released it yet. Also, I might have been unsettled with shared linking with llvm16 on something one-off for slackware-15. Now this thread has me questioning stability of some of these projects again.
Not sure what the best solution is at this point. Errors like these are why we did the "not recommended" way of building all llvm libs as shared libs before, but apparently, like volkerdi mentioned, that's no longer working either.
gentoo & opensuse build spirv without -DBUILD_SHARED_LIBS=ON
is there any reason to have it in the slackbuild ?
Tested here
Code:
$ clinfo
Number of platforms 0
ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.3.1
ICD loader Profile OpenCL 3.0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.