Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 828026

Summary: net-libs/xdp-tools-1.2.0 libxdp.c:1010:17: error: ‘btf__get_from_id’ is deprecated: libbpf v0.6+: use btf__load_from_kernel_by_id instead [-Werror=deprecated-declarations]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Jason A. Donenfeld <zx2c4>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
net-libs:xdp-tools-1.2.0:20211202-123921.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-12-02 16:55:44 UTC
too long lines were shrinked:

/usr/include/bpf/btf.h:124:16: note: declared here
  124 | LIBBPF_API int btf__get_from_id(__u32 id, struct btf **btf);
      |                ^~~~~~~~~~~~~~~~
gcc -pipe -march=native -fno-diagnostics-color -O2 -I/usr/include/bpf/uapi -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.2.0"\" -DLIBBPF_VERSION=\"0.6.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMI
cc1: all warnings being treated as errors
clang -S \
    -target bpf \
    -D __BPF_TRACING__ \
    -Wno-visibility -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.2.0"\" -DLIBBPF_VERSION=\"0.6.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../../header

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20211127-222420

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.56.1
  [2]   rust-1.56.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
*)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit d20963623c66ef906c65e926789626e4c6a91312
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Dec 2 11:51:38 2021 +0000

    2021-12-02 11:51:37 UTC

emerge -qpvO net-libs/xdp-tools
[ebuild  N    ] net-libs/xdp-tools-1.2.0  USE="doc tools"
Comment 1 Toralf Förster gentoo-dev 2021-12-02 16:55:45 UTC
Created attachment 757211 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-02 16:55:47 UTC
Created attachment 757212 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-02 16:55:48 UTC
Created attachment 757213 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-02 16:55:50 UTC
Created attachment 757214 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-02 16:55:51 UTC
Created attachment 757215 [details]
net-libs:xdp-tools-1.2.0:20211202-123921.log
Comment 6 Toralf Förster gentoo-dev 2021-12-02 16:55:52 UTC
Created attachment 757216 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-02 09:46:09 UTC

*** This bug has been marked as a duplicate of bug 846938 ***