Bug#1033933: llvm-16-dev: cmake findpackage(LLVM) fails due to missing /usr/lib/llvm-16/lib/libomptarget.so.16
Andreas Beckmann
anbe at debian.org
Tue Apr 4 10:10:37 BST 2023
Package: llvm-16-dev
Version: 1:16.0.0-1~exp5
Severity: serious
cmake llvm detection is broken due to missing dependencies:
The following minimal CMakeLists.txt
project(foo)
find_package(LLVM 16 REQUIRED)
fails with
CMake Error at /usr/lib/llvm-16/lib/cmake/llvm/LLVMExports.cmake:1809 (message):
The imported target "omptarget" references the file
"/usr/lib/llvm-16/lib/libomptarget.so.16"
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/lib/llvm-16/lib/cmake/llvm/LLVMExports.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib/llvm-16/cmake/LLVMConfig.cmake:359 (include)
CMakeLists.txt:2 (find_package)
-- Configuring incomplete, errors occurred!
This blocks the packaging of spirv-llvm-translator-16.
Andreas
More information about the Pkg-llvm-team
mailing list