Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792312 - dev-util/bcc-0.20.0 - /.../btf.h: error: BTF_KIND_FLOAT undeclared (first use in this function)
Summary: dev-util/bcc-0.20.0 - /.../btf.h: error: BTF_KIND_FLOAT undeclared (first use...
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: 2021-05-26 20:15 UTC by Toralf Förster
Modified: 2021-06-07 17:43 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.27 KB, text/plain)
2021-05-26 20:15 UTC, Toralf Förster
Details
dev-util:bcc-0.20.0:20210526-200802.log (dev-util:bcc-0.20.0:20210526-200802.log,12.67 KB, text/plain)
2021-05-26 20:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,338.42 KB, text/plain)
2021-05-26 20:15 UTC, Toralf Förster
Details
environment (environment,167.20 KB, text/plain)
2021-05-26 20:15 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.96 KB, application/x-bzip)
2021-05-26 20:15 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.00 KB, application/x-bzip)
2021-05-26 20:15 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,38.04 KB, application/x-bzip)
2021-05-26 20:15 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-26 20:15:41 UTC
                 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"
Comment 1 Toralf Förster gentoo-dev 2021-05-26 20:15:43 UTC
Created attachment 711432 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-26 20:15:44 UTC
Created attachment 711435 [details]
dev-util:bcc-0.20.0:20210526-200802.log
Comment 3 Toralf Förster gentoo-dev 2021-05-26 20:15:46 UTC
Created attachment 711438 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-26 20:15:48 UTC
Created attachment 711441 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-26 20:15:49 UTC
Created attachment 711444 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-26 20:15:50 UTC
Created attachment 711447 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-26 20:15:51 UTC
Created attachment 711450 [details]
temp.tar.bz2
Comment 8 Guilherme Amadio gentoo-dev 2021-06-02 08:21:35 UTC
FWIW, it builds fine against dev-libs/libbpf-0.3, but not dev-libs/libbpf-0.4.0.
Comment 9 Guilherme Amadio gentoo-dev 2021-06-02 09:32:28 UTC
BTW, bcc probably needs to depend on libbpf using a := slot operator, like bpftrace does.
Comment 10 Samuel Bernardo 2021-06-02 22:32:41 UTC
Same issue here.
Comment 11 Larry the Git Cow gentoo-dev 2021-06-03 00:59:40 UTC
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(-)