Bug#1021857: llvm-14-dev: ClangConfig.cmake is still broken
Pino Toscano
pino at debian.org
Mon Oct 24 06:48:05 BST 2022
Package: llvm-14-dev
Followup-For: Bug #1021857
Hi,
(sending properly again)
1:14.0.6-6 does some changes, however it does not fix all of it; this
is while trying to build qtcreator:
CMake Error at /usr/lib/llvm-14/lib/cmake/clang/ClangTargets.cmake:756 (message):
The imported target "diagtool" references the file
"/usr/lib/llvm-14/bin/diagtool"
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-14/lib/cmake/clang/ClangTargets.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib/cmake/clang-14/ClangConfig.cmake:19 (include)
cmake/FindClang.cmake:1 (find_package)
CMakeLists.txt:100 (find_package)
In practice, ClangTargets.cmake is still broken, as it tries to look for
tools.
I think that the "cmake-test" is incomplete, as it only tests the "LLVM"
cmake module and not the "Clang" one; adding a new check for
find_package(Clang)
should help to make sure all the cmake bits are working as expected.
Thanks,
--
Pino
More information about the Pkg-llvm-team
mailing list