Bug#941082: LLVMExports.cmake is broken as compared with LLVM-8

Shengjing Zhu zhsj at debian.org
Tue Sep 24 16:56:50 BST 2019


Package: llvm-9
Version: 1:9~+rc5-1~exp1
Followup-For: Bug #941082

It's still broken, with different reason,

It tries to find "/usr/lib/llvm-9/bin/lit-cpuid", which is in lldb-9.

make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- -DCCLS_VERSION=0.20190823-5 -DCLANG_RESOURCE_DIR=/usr/include/clang//usr/bin/clang
        cd obj-x86_64-linux-gnu && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu -DCCLS_VERSION=0.20190823-5 -DCLANG_RESOURCE_DIR=/usr/include/clang//usr/bin/clang ..
- -- The CXX compiler identification is GNU 9.2.1
- -- Check for working CXX compiler: /usr/bin/c++
- -- Check for working CXX compiler: /usr/bin/c++ -- works
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
CMake Error at /usr/lib/llvm-9/lib/cmake/llvm/LLVMExports.cmake:1335 (message):
  The imported target "lit-cpuid" references the file

     "/usr/lib/llvm-9/bin/lit-cpuid"

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

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/llvm-9/lib/cmake/llvm/LLVMConfig.cmake:245 (include)
  /usr/lib/cmake/clang-9/ClangConfig.cmake:11 (find_package)
  CMakeLists.txt:71 (find_package)



More information about the Pkg-llvm-team mailing list