cmake files are misplaced

Bug #1801225 reported by Seth Arnold on 2018-11-02
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
llvm-toolchain-5.0 (Ubuntu)
Undecided
Unassigned
llvm-toolchain-6.0 (Ubuntu)
Undecided
Unassigned

Bug Description

While reading about bpftrace I discovered that the Ubuntu LLVM or Clang packaging is apparently not quite correct:

https://github.com/iovisor/bpftrace/issues/76

Thus the install instructions for bpftrace includes adding apt.llvm.org's key to the APT trusted keys:
https://github.com/iovisor/bpftrace/blob/master/INSTALL.md

I tried the instructions myself (skipping the LLVM repository) on my 18.04 LTS host, with both llvm-5.0 and llvm-6.0 packages, and got similar results:

sarnold@hunt:~/trees/bpftrace/build$ aa-exec -p untrusted-compile cmake -Wno-dev -DCMAKE_BUILD_TYPE=DEBUG -DLLVM_DIR=/usr/lib/llvm-6.0/lib/cmake/llvm/ -DClang_DIR=/usr/share/llvm-6.0/cmake/ ..
CMake Error at /usr/share/llvm-6.0/cmake/ClangConfig.cmake:18 (include):
  include could not find load file:

    /usr/lib/cmake/clang/ClangTargets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:72 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/sarnold/trees/bpftrace/build/CMakeFiles/CMakeOutput.log".
See also "/home/sarnold/trees/bpftrace/build/CMakeFiles/CMakeError.log".
sarnold@hunt:~/trees/bpftrace/build$

The bpftrace bugreport includes this debian bug report:
https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/g2S4E-QvmWA
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862328

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: clang-6.0 1:6.0-1ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-34.37-generic 4.15.18
Uname: Linux 4.15.0-34-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
Date: Thu Nov 1 19:06:46 2018
InstallationDate: Installed on 2012-10-18 (2205 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: llvm-toolchain-6.0
UpgradeStatus: Upgraded to bionic on 2018-05-02 (184 days ago)

Seth Arnold (seth-arnold) wrote :
Seth Arnold (seth-arnold) wrote :
Seth Arnold (seth-arnold) wrote :
Sylvestre Ledru (sylvestre) wrote :

LLVM is maintained by Debian, nothing is happening on the Ubuntu side. You should report this kind of bugs on the Debian side.
Thanks

Seth Arnold (seth-arnold) wrote :

Sylvestre, you already closed the corresponding Debian bug report with fixes :)

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862328#42

llvm-toolchain-5.0 (1:5.0.2-2) unstable; urgency=medium
llvm-toolchain-6.0 (1:6.0.1~+rc1-1~exp2) experimental; urgency=medium

https://launchpad.net/debian/+source/llvm-toolchain-5.0/1:5.0.2-2
https://launchpad.net/debian/+source/llvm-toolchain-6.0/1:6.0.1~+rc1-1~exp2

Now we "just" need someone who knows cmake / llvm well enough to help out with an SRU. :)

Thanks

Sylvestre Ledru (sylvestre) wrote :

@doko if I prepare the patch, can you help with a SRU? Thanks

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.