Summary: | dev-util/bcc-0.28.0: undefined reference to `bpf_btf_get_info_by_fd' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gary E. Miller <gem> |
Component: | Current packages | Assignee: | Patrick McLean <chutzpah> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gem, i, jsmolic, zmedico |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build log |
Description
Gary E. Miller
2023-06-29 21:01:53 UTC
Created attachment 864836 [details]
build log
build log
the same problem here. Same problem. FAILED: introspection/bps : && /opt/rh/gcc-toolset-11/root/bin/cc -Wall -O2 -g -DNDEBUG -rdynamic introspection/CMakeFiles/bps.dir/bps.c.o -o introspection/bps -Wl,-rpath,/home/sncradmin/rpmbuild/BUILD/bcc-0.28.0/src/cc: src/cc/libbcc_bpf.so.0.28.0 -lbpf -lelf -lz -lrt -llzma -ldebuginfod -lbpf && : /opt/rh/gcc-toolset-11/root/bin/ld: src/cc/libbcc_bpf.so.0.28.0: undefined reference to `bpf_btf_get_info_by_fd' collect2: error: ld returned 1 exit status Same problem. Actually running this on Rocky Linux 8 (using Gentoo code to build updated libs etc for kernels and also media transcoding...) gcc is v11 from gcctoolset. libbpf is 1.1.0 and kernel being used is 6.1.46. 0.27.0 builds perfectly fine. bpf_btf_get_info_by_fd is only in >=libbpf-1.2.x: https://github.com/libbpf/libbpf/blob/3189f70538b50fe3d2fd63f77351991a224e435b/src/libbpf.map#L388 Seems like the requirement needs to be updated in the 0.28.0 ebuild. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e80ecfbe83a5413464c782693404b1ca3ebcb3d commit 1e80ecfbe83a5413464c782693404b1ca3ebcb3d Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2023-12-23 18:40:20 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2023-12-23 18:45:23 +0000 dev-util/bcc: Increase minimum libbpf version Closes: https://bugs.gentoo.org/909385 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-util/bcc/{bcc-0.28.0.ebuild => bcc-0.28.0-r1.ebuild} | 2 +- dev-util/bcc/{bcc-0.29.1.ebuild => bcc-0.29.1-r1.ebuild} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) |