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

Roman Lebedev lebedev.ri at gmail.com
Tue Sep 24 14:33:04 BST 2019


Package: llvm-9
Version: 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830
Severity: normal
Tags: upstream patch

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

Dear maintainer.

Somewhere during the LLVM-9 dev cycle, some clang static analyzer test
plugins were added upstream - SampleAnalyzerPlugin, etc.
But while they are referenced in the LLVMExports.cmake, they are not
being installed, which results in fatal cmake errors when trying to use
said LLVMExports.cmake:

Halide/build$ CC=clang-8 CXX=clang++-8 cmake  -GNinja ../
- -- The C compiler identification is Clang 8.0.1
- -- The CXX compiler identification is Clang 8.0.1
- -- Check for working C compiler: /usr/bin/clang-8
- -- Check for working C compiler: /usr/bin/clang-8 -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Check for working CXX compiler: /usr/bin/clang++-8
- -- Check for working CXX compiler: /usr/bin/clang++-8 -- 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:1293 (message):
  The imported target "SampleAnalyzerPlugin" references the file

     "/usr/lib/llvm-9/lib/SampleAnalyzerPlugin.so"

  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/cmake/LLVMConfig.cmake:239 (include)
  CMakeLists.txt:24 (find_package)


- -- Configuring incomplete, errors occurred!
See also "/repositories/Halide/build/CMakeFiles/CMakeOutput.log".
See also "/repositories/Halide/build/CMakeFiles/CMakeError.log".



There's upstream bugreport: https://bugs.llvm.org/show_bug.cgi?id=43430
And a potential patch, which is not yet merged yet: https://reviews.llvm.org/D67877

It might be good to cherry-pick it (after it's merged upstream?)
even for 9.0.0, and not wait for 9.0.1

Roman.

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

Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages llvm-9 depends on:
ii  libc6           2.29-2
ii  libgcc1         1:9.2.1-8
ii  libllvm9        1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830
ii  libpfm4         4.10.1+git14-g815ff28-1
ii  libstdc++6      9.2.1-8
ii  libtinfo6       6.1+20190803-1
ii  llvm-9-runtime  1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830
ii  zlib1g          1:1.2.11.dfsg-1+b1

Versions of packages llvm-9 recommends:
ii  llvm-9-dev  1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830

Versions of packages llvm-9 suggests:
pn  llvm-9-doc  <none>

- -- no debconf information

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

iQIzBAEBCgAdFiEEjkF6151RK40WXe2HCDw+u0oWieAFAl2KGw0ACgkQCDw+u0oW
ieDZhhAAqsuE8/N4EHI/ge49yZ09lpTIzECeoHxk/bzLrkWmex4tGllw1jGtgcVi
2umqJgM1wvel+i4OvwIZpJ3VZUgTBHi2oPyMjGx32780VZD/A0wGQGEeNg/xZPTH
okJ2+n2O6rzpacZSx00vUYqw2+N2L0rUMSkePPqpiNo3akX/YfCh31Gc//pPOM0I
aNIjcyV1g0hy1qrnGlfc4cvwsiJjyt/bGwhb5C/hqUGjPxBz7Mbf6yv8rUC+5R+R
uIPcOXfZemyAH0UxpQGNRhC4M3+uPT/8eJKs4jlq95TMwUE0ZElFzHPDuA915ZW/
dCGbppj5OX9rspNQ33wDH1bpcys6CDVXCXiOuvOoknXF0mWwW2Yt52K5IbfueGj+
bqB/n84yTjmaUMf7BHrC7nqyHxrY96klzf5weJ2tCyvjS3foq+tS+xSr6zodveLF
SLYgIjAmgB2WjOafbUV8q3vK7gqsBbr0YwesNHxukMljuYii0dnrt4MAweQ000EH
UZXADLdWezOMZNgIwXuKVdZPYDYwXCf2lN2TccfmMq1on/X4LC0y0c6vj4Bl+jm6
u8iezWiKkkHu9iFzjUJ/QFiPZkN/ddjGnJXjMTuTm+du8YFfSK+ELNtvb1hobmn8
jZVk/MWDGoo+G3ZzVDsMoQY1pDwnFe1ER/vx7D8KH0JaC3SA0/o=
=CCLv
-----END PGP SIGNATURE-----



More information about the Pkg-llvm-team mailing list