Bug#735592: llvm-3.5-dev: LLVM/Clang CMake package files missing
Brad King
brad.king at kitware.com
Thu Jan 16 18:03:28 UTC 2014
Package: llvm-3.5-dev
Version: 1:3.5~svn197556-1
Severity: normal
Dear Maintainer,
The issue reported in archived bug #701153 is not fully resolved.
The main problem still exists as of llvm-3.5-dev 1:3.5~svn197556-1.
The cmake/modules/*.cmake files from the llvm source are installed
including a file called "LLVM-Config.cmake". However, the files
needed to use CMake to build against LLVM as documented here:
http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
are not installed. These files are:
LLVMConfig.cmake = package configuration file
LLVMConfigVersion.cmake = package version file
They are produced during the CMake configuration process for building
LLVM itself. Their purpose is to hold information about what was built
and where it is installed.
Note that "LLVM-Config.cmake" is *not* the same as "LLVMConfig.cmake".
The former is a module that upstream authors wrote to contain some
CMake-language API code. The latter is a CMake "package configuration
file" that is located and loaded by applications using
find_package(LLVM)
or
find_package(LLVM CONFIG REQUIRED)
in their CMake code as shown in the LLVM documentation. Without the
missing files the applications fail to build with errors like that
shown below.
-Brad
CMake Error at CMakeLists.txt:36 (find_package):
Could not find a package configuration file provided by "LLVM" with any of
the following names:
LLVMConfig.cmake
llvm-config.cmake
Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
"LLVM_DIR" to a directory containing one of the above files. If "LLVM"
provides a separate development package or SDK, be sure it has been
installed.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.12-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages llvm-3.5-dev depends on:
ii libc6 2.17-97
ii libcloog-isl4 0.18.1-3
ii libffi-dev 3.0.13-4
ii libffi6 3.0.13-4
ii libgcc1 1:4.8.2-10
ii libgmp10 2:5.1.3+dfsg-1
ii libisl10 0.12.1-2
ii libjsoncpp0 0.6.0~rc2-3
ii libllvm3.5 1:3.5~svn197556-1
ii libstdc++6 4.8.2-10
ii libtinfo-dev 5.9+20130608-1
ii libtinfo5 5.9+20130608-1
ii llvm-3.5 1:3.5~svn197556-1
llvm-3.5-dev recommends no packages.
llvm-3.5-dev suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list