You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dave@DaveA-MBP14-5 Swifty-LLVM % ~/Downloads/llvm-17.0.6-arm64-apple-darwin23.3.0-Debug/bin/llvm-config
~/Downloads/llvm-17.0.6-arm64-apple-darwin23.3.0-Debug/bin/llvm-config
dyld[27721]: Library not loaded: /opt/local/lib/libzstd.1.dylib
Referenced from: <80280D10-861C-3C78-A1C8-3E5E93E9E2B9> /Users/dave/Downloads/llvm-17.0.6-arm64-apple-darwin23.3.0-Debug/bin/llvm-config
Reason: tried: '/opt/local/lib/libzstd.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libzstd.1.dylib' (no such file), '/opt/local/lib/libzstd.1.dylib' (no such file), '/usr/local/lib/libzstd.1.dylib' (no such file), '/usr/lib/libzstd.1.dylib' (no such file, not in dyld cache)
zsh: abort ~/Downloads/llvm-17.0.6-arm64-apple-darwin23.3.0-Debug/bin/llvm-config
Work around hylo-lang/llvm-build#8
This finds libzstd using `pkg-config` instead of relying on the `RUNPATH` embedded in `llvm-config`, if `llvm-config` doesn't run without help.
I think part of the deal is that homebrew installs its libraries in a nonstandard location on Apple Silicon (/opt/homebrew/lib)—but not on Intel. It's not in the default search path for libraries, so anything that is built without brew specifically in mind will fail to find dynamic libs installed by brew. It might not be the most principled approach, but I'm thinking of taking suggestion #1, if there's a way to get CMAKE to inject /opt/homebrew/lib at the end of all RUNPATHs it creates.
Workaround for me is:
but you have to embed it in the script invoking llvm-config because of this security feature.
The text was updated successfully, but these errors were encountered: