Control: tag -1 - unreproducible Control: severity -1 serious
It actually works with llvm-15-dev/sid (and I inadvertently switched to building spirv-llvm-translator-15 in sid instead of experimental, no longer experiencing the failure), but fails with llvm-15-dev/experimental. A minimal CMakeLists.txt to reproduce the problem, could be used for an autopkgtest: cmake_minimum_required(VERSION 3.0) project(find_llvm C CXX) find_package(LLVM REQUIRED) message(STATUS "Found LLVM: ${LLVM_VERSION}") ===== llvm-15-dev/experimental ===== -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_FFI_CALL -- Performing Test HAVE_FFI_CALL - Success -- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so -- Performing Test Terminfo_LINKABLE -- Performing Test Terminfo_LINKABLE - Success -- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14") CMake Error at /usr/lib/llvm-15/lib/cmake/llvm/LLVMExports.cmake:1634 (message): The imported target "mlir-tblgen" references the file "/usr/lib/llvm-15/bin/mlir-tblgen" 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-15/lib/cmake/llvm/LLVMExports.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/llvm-15/cmake/LLVMConfig.cmake:329 (include) CMakeLists.txt:5 (find_package) -- Configuring incomplete, errors occurred! =========== ===== llvm-15-dev/sid ===== -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAVE_FFI_CALL -- Performing Test HAVE_FFI_CALL - Success -- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so -- Performing Test Terminfo_LINKABLE -- Performing Test Terminfo_LINKABLE - Success -- Found Terminfo: /usr/lib/x86_64-linux-gnu/libtinfo.so -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14") -- Found LLVM: 15.0.0 -- Configuring done -- Generating done -- Build files have been written to: /tmp/tmp.jErBGkRUrA =========== Andreas PS: In some packages I use an autopkgtest like this to test cmake bits: Test-Command: cmake -Wno-dev -S debian/tests/cmake-find-FOO -B $AUTOPKGTEST_TMP Features: test-name=cmake_find_package_FOO Depends: libFOO-dev, cmake, g++, Restrictions: superficial,