cmake files are misplaced

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

Bug Description

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

Thus the install instructions for bpftrace includes adding's key to the APT trusted keys:

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:

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".

The bpftrace bugreport includes this debian bug report:!topic/linux.debian.bugs.dist/g2S4E-QvmWA


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)
 PATH=(custom, no user)
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.

Seth Arnold (seth-arnold) wrote :

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

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

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


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.