https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/libbpf-1.3.0 fails to compile. Discovered on: amd64 (internal ref: clang-lld_tinderbox) System: CLANG-LLD (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CLANG-LLD) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 884359 [details] build.log build log and emerge --info
This issue also affects 1.2.2. The following commits implement the missing APIs: https://github.com/libbpf/libbpf/commit/95b4beb50201267a45cc193e86512996e5c7409a https://github.com/libbpf/libbpf/commit/5b7613e50fd94b447b3cd18ae3de9dacd5d60cb9 I presume they're slated for a future 1.4 release. I have trivially back-ported them to 1.2.2 and 1.3. Just remove the libbpf.map changes from the patches. Alternatively, we could just remove the missing symbols from libbpf.map. The patches don't apply cleanly as the ebuild sets S="${WORKDIR}/${P}/src" but patches apply to src/, again trivial to fix with sed.
libbpf-1.4.0 has been released on 1 April. The release notes mention: > btf_ext__raw_data() and btf__new_split() APIs are added back, they were "lost" during libbpf v1.0 release process; https://github.com/libbpf/libbpf/releases/tag/v1.4.0