Bug#839234: llvm-{3.9, 4.0}-dev: LLVMConfig.cmake is installed into wrong location.

Roman Lebedev lebedev.ri at gmail.com
Fri Sep 30 13:03:17 UTC 2016


Package: llvm-3.9-dev
Version: 1:3.9-1
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi.

With llvm-3.9, the installation directory of LLVMConfig.cmake has changed:

/usr/lib$ find -name LLVMConfig.cmake
./llvm-3.8/share/llvm/cmake/LLVMConfig.cmake
./llvm-4.0/lib/cmake/llvm/LLVMConfig.cmake
./llvm-3.9/lib/cmake/llvm/LLVMConfig.cmake


Since it is no longer installed into share/ subfolder, cmake can no
longer find it.

Consider following (partial) CMakeLists.txt:

find_package(LLVM 3.9 CONFIG)
message(FATAL_ERROR "-> ${LLVM_CONSIDERED_VERSIONS} <-")


With these 3 configs, the output is:

CMake Warning at ... (find_package):
  Could not find a configuration file for package "LLVM" that is
  compatible with requested version "3.9.0".

  The following configuration files were considered but not accepted:
    /usr/share/llvm-3.8/cmake/LLVMConfig.cmake, version: 3.8.1

CMake Error at data/kernels/CMakeLists.txt:11 (message):
  -> 3.8.1 <-


So it only found the config file of 3.8, but not of 3.9 and 4.0

I have asked about this in #cmake, and they said
[15:55:50] <ngladitz> the package itself is responsible for installing
them so I'd report it to the package maintainers

Roman.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-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
Init: systemd (via /run/systemd/system)

Versions of packages llvm-3.9-dev depends on:
ii  libc6         2.24-3
ii  libffi-dev    3.2.1-6
ii  libgcc1       1:6.2.0-5
ii  libjsoncpp1   1.7.4-3
ii  libllvm3.9    1:3.9-1
ii  libstdc++6    6.2.0-5
ii  libtinfo-dev  6.0+20160917-1
ii  llvm-3.9      1:3.9-1

llvm-3.9-dev recommends no packages.

llvm-3.9-dev suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJX7mKRAAoJEAg8PrtKFongsS0P/jdJTU3MyuPgtyOFkORXZ/cy
zbeDl2L98lGLvUPGFtMMgZRiDhmqoEtI2pG86ip+DGsgdeFgPvxHsX2J/t6D1NYK
KxVKwAmXcnbKAX6lP1oQ6xTguRoSJlZEMdlSo1/AZ9BUtFRLEoM4TVMdWGg4GZWh
z1wNtw7abQpdapAiYeSCFcc3/mp0hkDl/e4D1FAbiDUBPWoVdt875VyNqo4TEf3n
VHdYbH6/ksQhVI3iZOYStQ86k0wJqpvhHhosvwEC+uzr9ar8o03q3Nf5KfZ5j4Da
VjiF91iN6WqZL5e8FbK9cYVewKuUfkWpZZJfCof+cVhp0ePoJGbGFgr1kcp28Z2C
4mO2MKBoohs1sztYsYmb5WKT3Gn/kHS+M5B58aQvkAR5oe/3M23NldBRtHD4LzDW
jdsSRCD0M2SWDNQIOLZsCOlfZpi8tMiZzxLcmoJh10AW+/xdPg3877qTujY9o7YX
8A85cOV2pDlkHDq4XG25vfzkv+j8iNf7vNyH1PJ0VPA7azWmUKoXvaYVXiz3kim9
liqBTvQazTaWsOJvOfM56JIv3ykwL8ufGRpolcs4isxt2iqhsWQEWzZwbHWlHE2N
FDOgg7TY5iE2RiOGPtMaYP7S5eSwTizVC021ekXZVv7sLAf/z2w69izE228k2WaD
RffyZx5oWHDh4PDHZdEL
=OoyJ
-----END PGP SIGNATURE-----



More information about the Pkg-llvm-team mailing list