Comment # 16 on bug 1216121 from Aaron Puchert
I don't remember the exact details of this issue, but the build error was in
Rust, which was building its own version of LLD against the llvm-devel. (So as
not to rebuild the entirety of LLVM I assume.) Something went wrong there,
presumably the CMake files shipped in llvm-devel indicated a link to libzstd
would be necessary, but it selected the static library instead of the shared
library. Whether ZSTD is used is indicated in
%{_libdir}/cmake/llvm/LLVMConfig.cmake:

set(LLVM_ENABLE_ZSTD 0)
if(LLVM_ENABLE_ZSTD)
  find_package(zstd)
endif()

This would then change to 1, which results in invoking
%{_libdir}/cmake/llvm/Findzstd.cmake. I don't know what happened there and
whether that's still an issue.

In any case, to verify that this works now, you should also branch some Rust
version into that repository and check whether it builds. You should also try
setting up a simple CMake project with CMakeLists.txt simply containing

find_package(LLVM REQUIRED)

This should configure fine.


You are receiving this mail because: