Hello, I had the problem reporte4d in gentoo bug 792312: dev-util/bcc-0.20.0 - /.../btf.h: error: BTF_KIND_FLOAT undeclared (first use in this function) Aftzer that bug got fixed, I now have the sape problem with dev-util/bcc-0.19.0. :-( The problem with dev-util/bcc-0.20.0 was due to an incompatible API change in libbpf-0.4.0 and the cure was to force bcc-0.20.0 to use libbpf-0.3. Instead of down-grading libbpf to version 0.3, emerge tries to down-grade bcc on my system from 0.20.0 to 0.19.0, but compiling version 0.19.0 fails for the same reason: C707 /home/mkl # emerge --ask --update --newuse --deep @world -j 4 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild UD~] dev-util/bcc-0.19.0 [0.20.0] PYTHON_TARGETS="python3_9* -python3_8*" !!! The following update(s) have been skipped due to unsatisfied dependencies !!! triggered by backtracking: dev-util/bcc:0 Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Running pre-merge checks for dev-util/bcc-0.19.0 * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.4.28-gentoo * Checking for suitable kernel configuration options... [ ok ] >>> Emerging (1 of 1) dev-util/bcc-0.19.0::gentoo >>> Failed to emerge dev-util/bcc-0.19.0, Log file: >>> '/var/tmp/portage/dev-util/bcc-0.19.0/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 1.40, 1.75, 1.97 * Package: dev-util/bcc-0.19.0 * Repository: gentoo * Maintainer: zmedico@gentoo.org chutzpah@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux lua lua_single_target_luajit python_targets_python3_9 userland_GNU * FEATURES: network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox * Using python3.9 in global scope ... /usr/bin/x86_64-pc-linux-gnu-gcc -DHAVE_EXTERNAL_LIBBPF -Dbpf_shared_EXPORTS -I/usr/src/linux -I/usr/lib/llvm/11/include/../tools/clang/include -I/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src -Isrc -Isrc/cc -I/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc -Isrc/cc/frontends/b -I/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc/frontends/b -I/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc/frontends/clang -I/usr/lib/llvm/11/include -O2 -pipe -Wall -fPIC -Wno-unused-result -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o -MF src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o.d -o src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o -c /var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc/libbpf.c In file included from /var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc/bcc_libbpf_inc.h:5, from /var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0/src/cc/libbpf.c:55: /usr/include/bpf/btf.h: In function ‘btf_is_float’: /usr/include/bpf/btf.h:303:24: 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:24: note: each undeclared identifier is reported only once for each function it appears in ... ninja: build stopped: subcommand failed. * ERROR: dev-util/bcc-0.19.0::gentoo failed (compile phase): * ninja -v -j8 -l0 failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 4259: Called cmake_src_compile * environment, line 1668: Called cmake_build * environment, line 1637: Called eninja * environment, line 2089: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=dev-util/bcc-0.19.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/bcc-0.19.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/bcc-0.19.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/bcc-0.19.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0_build' * S: '/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0' * Messages for package dev-util/bcc-0.19.0: * ERROR: dev-util/bcc-0.19.0::gentoo failed (compile phase): * ninja -v -j8 -l0 failed * * Call stack: * ebuild.sh, line 125: Called src_compile * environment, line 4259: Called cmake_src_compile * environment, line 1668: Called cmake_build * environment, line 1637: Called eninja * environment, line 2089: Called die * The specific snippet of code: * "$@" || die "${nonfatal_args[@]}" "${*} failed" * * If you need support, post the output of `emerge --info '=dev-util/bcc-0.19.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-util/bcc-0.19.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-util/bcc-0.19.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/bcc-0.19.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0_build' * S: '/var/tmp/portage/dev-util/bcc-0.19.0/work/bcc-0.19.0' Portage 3.0.18 (python 3.9.4-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33, 5.4.28-gentoo x86_64) ================================================================= System uname: Linux-5.4.28-gentoo-x86_64-Intel-R-_Xeon-R-_Gold_5122_CPU_@_3.60GHz-with-glibc2.33 KiB Mem: 32507412 total, 8531312 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 07 Jun 2021 00:45:01 +0000 sh bash 5.1_p8 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 3.8.9_p2::gentoo, 3.9.4_p1::gentoo dev-lang/rust: 1.51.0-r2::gentoo dev-util/cmake: 3.18.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33::gentoo Repositories: gentoo location: /usr/portage sync-type: webrsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-webrsync-verify-signature: yes x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://ftp.halifax.rwth-aachen.de/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 caps cli crypt gdbm iconv ipv6 kerberos ldap libglvnd libtirpc mbox multilib ncurses nls nptl openmp pam pcre readline sasl seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authn_core authz_core authz_host autoindex dir headers log_config mime rewrite unixd userdir socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
I managed to fix my emerge problem by unmerging libbpf and bcc followed by emerge --update. It picked the oder version of libbpf.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d35bf1ee08b512eb4ec1ff943aeee23f650ce5d commit 5d35bf1ee08b512eb4ec1ff943aeee23f650ce5d Author: Patrick McLean <chutzpah@gentoo.org> AuthorDate: 2021-06-08 17:14:34 +0000 Commit: Patrick McLean <chutzpah@gentoo.org> CommitDate: 2021-06-08 17:14:34 +0000 dev-util/bc-0.19.0-r1: Revbump, force libbpf-0.3 (bug #794694) Closes: https://bugs.gentoo.org/794694 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Patrick McLean <chutzpah@gentoo.org> dev-util/bcc/{bcc-0.19.0.ebuild => bcc-0.19.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)