https://bugzilla.redhat.com/show_bug.cgi?id=1869907
Robert-André Mauchin 🐧 zebob.m@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@gmail.com
--- Comment #1 from Robert-André Mauchin 🐧 zebob.m@gmail.com --- - In order to avoid unannounced soname bump, we recommend not globbing the major soname version:
%{_libdir}/libLLVMSPIRVLib.so.*
- Build fails:
CMake Error at CMakeLists.txt:34 (find_package): Could not find a configuration file for package "LLVM" that is compatible with requested version "10.0.0". The following configuration files were considered but not accepted: /usr/lib64/cmake/llvm/LLVMConfig.cmake, version: 11.0.0 /lib64/cmake/llvm/LLVMConfig.cmake, version: 11.0.0
BuildRequires: llvm-devel
→
BuildRequires: llvm10-devel
and
%build %cmake -GNinja \ -DLLVM_BUILD_TOOLS=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_RPATH:BOOL=";" \ -DCMAKE_PREFIX_PATH=%{_libdir}/llvm10
But then it fails with:
CMake Error at /usr/lib64/llvm10/lib/cmake/llvm/LLVMStaticExports.cmake:1122 (message): The imported target "LLVMDemangle" references the file "/usr/lib64/llvm10/lib/libLLVMDemangle.a" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib64/llvm10/lib/cmake/llvm/LLVMStaticExports.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib64/llvm10/lib/cmake/llvm/LLVMConfig.cmake:260 (include) CMakeLists.txt:34 (find_package) -- Configuring incomplete, errors occurred!