If you’re using LLVM on macOS with Homebrew, you may want to hold off on updating for a bit. The latest upstream release of LLVM 10.0.1 introduced some linker problems with libxml2, resulting in the build configuration as described by llvm-config
advertising limxml2.tbd
rather than libxml
.
This is a known issue, and is currently being worked on in both the Homebrew and LLVM communities. Current workarounds are:
- If you have a working LLVM installation you rely upon from Homebrew, don’t update it.
- If you need to install or update, uninstall LLVM first then install from source using
brew reinstall llvm --build-from-source
.
If you get the error Failed to detect the version of an installed copy of Xcode
, you may need to run the command sudo xcode-select -r
to reset your Xcode command line tools path.
I’ll keep my eyes on this issue and update the thread when the packaging is fixed upstream.
-Chris