Bug#1052533: llvm-17-dev: cmake config unusable due to missing files

Andreas Beckmann anbe at debian.org
Sun Sep 24 03:13:41 BST 2023


Package: llvm-17-dev
Version: 1:17.0.1-1~exp1
Severity: serious

the following minimized CMakeLists.txt

cmake_minimum_required(VERSION 3.13.4)
project(LLVM_SPIRV VERSION 17 LANGUAGES CXX C)
find_package(LLVM 17 REQUIRED)

fails with this error:

-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Could NOT find zstd (missing: zstd_LIBRARY zstd_INCLUDE_DIR)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Error at /usr/lib/llvm-17/lib/cmake/llvm/LLVMExports.cmake:1857 (message):
  The imported target "omp" references the file

     "/usr/lib/llvm-17/lib/libomp.so.5"

  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-17/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/llvm-17/cmake/LLVMConfig.cmake:369 (include)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!


(found while preparing spirv-llvm-translator-17)


Andreas



More information about the Pkg-llvm-team mailing list