Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711790 - dev-util/bcc-0.13.0 : Unable to find clang libraries
Summary: dev-util/bcc-0.13.0 : Unable to find clang libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-07 14:23 UTC by Toralf Förster
Modified: 2020-03-12 03:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.71 KB, text/plain)
2020-03-07 14:23 UTC, Toralf Förster
Details
CMakeOutput.log (CMakeOutput.log,47.78 KB, text/plain)
2020-03-07 14:23 UTC, Toralf Förster
Details
dev-util:bcc-0.13.0:20200307-141410.log (dev-util:bcc-0.13.0:20200307-141410.log,3.77 KB, text/plain)
2020-03-07 14:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,146.30 KB, text/plain)
2020-03-07 14:23 UTC, Toralf Förster
Details
environment (environment,145.20 KB, text/plain)
2020-03-07 14:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.85 KB, application/x-bzip)
2020-03-07 14:23 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.86 KB, application/x-bzip)
2020-03-07 14:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.97 KB, application/x-bzip)
2020-03-07 14:23 UTC, Toralf Förster
Details
bcc-0.13.0-clang-10.patch (bcc-0.13.0-clang-10.patch,2.83 KB, patch)
2020-03-11 04:49 UTC, Patrick McLean
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-07 14:23:14 UTC
-- Performing Test ELF_GETSHDRSTRNDX - Success
CMake Error at CMakeLists.txt:68 (message):
  Unable to find clang libraries


-- Configuring incomplete, errors occurred!

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-20200304-151530

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
llvm:
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 07 Mar 2020 13:37:32 +0000

emerge -qpvO dev-util/bcc
[ebuild  N    ] dev-util/bcc-0.13.0  USE="luajit -test" PYTHON_SINGLE_TARGET="python3_6 -python3_7 -python3_8"
Comment 1 Toralf Förster gentoo-dev 2020-03-07 14:23:17 UTC
Created attachment 617404 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-07 14:23:20 UTC
Created attachment 617406 [details]
CMakeOutput.log
Comment 3 Toralf Förster gentoo-dev 2020-03-07 14:23:23 UTC
Created attachment 617408 [details]
dev-util:bcc-0.13.0:20200307-141410.log
Comment 4 Toralf Förster gentoo-dev 2020-03-07 14:23:26 UTC
Created attachment 617410 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2020-03-07 14:23:28 UTC
Created attachment 617412 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2020-03-07 14:23:32 UTC
Created attachment 617414 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-07 14:23:35 UTC
Created attachment 617416 [details]
logs.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-03-07 14:23:38 UTC
Created attachment 617418 [details]
temp.tbz2
Comment 9 Patrick McLean gentoo-dev 2020-03-11 04:49:28 UTC
Created attachment 617958 [details, diff]
bcc-0.13.0-clang-10.patch

This is an issue with llvm-10, my cmake is not really strong enough to fully fix this, but I have a (very) hacky patch that improves the situation.

This does *not* fix it, but it is a starting point if someone else wants to take a look...
Comment 10 Guilherme Amadio gentoo-dev 2020-03-11 08:02:24 UTC
The patch below does the job. dev-util/bcc cannot handle all the changes in LLVM 10. The separate libraries have been combined into a single one. If you list your llvm lib directories for 9 and 10 you'll see the change.

--
diff --git a/dev-util/bcc/bcc-0.13.0.ebuild b/dev-util/bcc/bcc-0.13.0.ebuild
index 8ff7d3262f4..748cd29f46e 100644
--- a/dev-util/bcc/bcc-0.13.0.ebuild
+++ b/dev-util/bcc/bcc-0.13.0.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7,8} )
 
-inherit cmake-utils linux-info python-single-r1
+inherit cmake-utils linux-info llvm python-single-r1
 
 EGIT_COMMIT="v${PV}"
 LIBBPF_VER="0.0.7"
@@ -27,8 +27,8 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 RDEPEND="
        >=sys-kernel/linux-headers-4.14
        >=dev-libs/elfutils-0.166:=
-       sys-devel/clang:=
-       >=sys-devel/llvm-3.7.1:=[llvm_targets_BPF(+)]
+       <sys-devel/clang-10:=
+       <sys-devel/llvm-10:=[llvm_targets_BPF(+)]
        luajit? ( dev-lang/luajit )
        ${PYTHON_DEPS}
 "
@@ -65,6 +65,7 @@ pkg_pretend() {
 }
 
 pkg_setup() {
+       LLVM_MAX_SLOT=9 llvm_pkg_setup
        python-single-r1_pkg_setup
 }
--

Please ack and I'll commit it.
Comment 11 Zac Medico gentoo-dev 2020-03-12 02:57:07 UTC
(In reply to Guilherme Amadio from comment #10)
> Please ack and I'll commit it.

Looks good. Merge away. Thanks!
Comment 12 Larry the Git Cow gentoo-dev 2020-03-12 03:06:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60eed76853ace00c133366799872b2e9611e9485

commit 60eed76853ace00c133366799872b2e9611e9485
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2020-03-12 03:04:18 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-03-12 03:06:23 +0000

    dev-util/bcc: LLVM_MAX_SLOT=9 (bug 711790)
    
    Closes: https://bugs.gentoo.org/711790
    Package-Manager: Portage-2.3.93, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-util/bcc/bcc-0.13.0.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)