from /var/tmp/portage/dev-util/bcc-0.20.0/work/bcc-0.20.0/src/cc/libbpf.c:57: /usr/include/bpf/btf.h: In function ‘btf_is_float’: /usr/include/bpf/btf.h:303:31: error: ‘BTF_KIND_FLOAT’ undeclared (first use in this function); did you mean ‘BTF_KIND_INT’? 303 | return btf_kind(t) == BTF_KIND_FLOAT; | ^~~~~~~~~~~~~~ | BTF_KIND_INT /usr/include/bpf/btf.h:303:31: note: each undeclared identifier is reported only once for each function it appears in ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib-j2-20210521-120015 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.8.10 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.52.1 [2] rust-1.52.1 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 [2] php7.4 [3] php8.0 * timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Wed May 26 19:20:12 UTC 2021 emerge -qpvO dev-util/bcc [ebuild N ] dev-util/bcc-0.20.0 USE="lua -test" LUA_SINGLE_TARGET="luajit" PYTHON_TARGETS="python3_8 -python3_7 -python3_9"
Created attachment 711432 [details] emerge-info.txt
Created attachment 711435 [details] dev-util:bcc-0.20.0:20210526-200802.log
Created attachment 711438 [details] emerge-history.txt
Created attachment 711441 [details] environment
Created attachment 711444 [details] etc.portage.tar.bz2
Created attachment 711447 [details] logs.tar.bz2
Created attachment 711450 [details] temp.tar.bz2
FWIW, it builds fine against dev-libs/libbpf-0.3, but not dev-libs/libbpf-0.4.0.
BTW, bcc probably needs to depend on libbpf using a := slot operator, like bpftrace does.
Same issue here.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3b92e9a4070923edd019e2dafc421943ec35cca commit e3b92e9a4070923edd019e2dafc421943ec35cca Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2021-06-03 00:59:18 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2021-06-03 00:59:35 +0000 dev-util/bcc-0.20.0-r1: Revbump, lock libbpf dep (bug #92312) Closes: https://bugs.gentoo.org/792312 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> dev-util/bcc/{bcc-0.20.0.ebuild => bcc-0.20.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)