-- 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"
Created attachment 617404 [details] emerge-info.txt
Created attachment 617406 [details] CMakeOutput.log
Created attachment 617408 [details] dev-util:bcc-0.13.0:20200307-141410.log
Created attachment 617410 [details] emerge-history.txt
Created attachment 617412 [details] environment
Created attachment 617414 [details] etc.portage.tbz2
Created attachment 617416 [details] logs.tbz2
Created attachment 617418 [details] temp.tbz2
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...
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.
(In reply to Guilherme Amadio from comment #10) > Please ack and I'll commit it. Looks good. Merge away. Thanks!
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(-)