-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Could NOT find LLD (missing: LLD_LIBRARIES) #419
Comments
You also need LLD from apt.llvm.org. I forget what the package name is but it's similarly named to the clang and llvm packages. |
You might need additionally the non-dev package for LLD. |
Apologies, I see that you have all of these things apparently installed. Here is the list of packages I install on the travis CI build which is an ubuntu that uses apt.llvm.org:
Looks like you may be missing Hope that helps. |
|
for w/e reason on Pop_Os the lld libraries were versions were referenced slightly differentl (this is from jammy)
|
Pop_OS! 22.04 w/ zig 0.11.x branch using apt.llvm.org: |
Linux Mint 21.2 (Ubuntu 22.04) requires the following packages to build zig 0.13.x: Be warned: this issue is caused by Ubuntu and how it handles the config for LLVM. In order to avoid this problem more thoroughly, you should build LLVM from source. More commentary can be found from @andrewrk on this post. |
Same issue on Ubuntu (Solved)
Seeing that this happens often there should be update to the install documentation to either point to this issue page or ask them to manually install |
Not really, this is more of an Ubuntu-specific problem. If you use Ubuntu to provide LLD rather than building from source then you're responsible for understanding how they have chosen to divide up their packages. The error message is crystal clear. There is nothing more to do or document from Zig's side of things. Also this problem will no longer exist after #16270. |
Understandable. I should have build the dragon haha |
I'm trying to build zig on Ubuntu 17.04 (zesty). I have llvm and clang installed from apt.llvm.org:
however, when trying to build zig, it's not being picked up:
here's a
--trace
of that same cmake run, extracting only the things betweenfind_package(lld )
and the error message:The text was updated successfully, but these errors were encountered: