[290/1018] x86_64-pc-linux-gnu-gcc -Ilibcommon.fa.p -I. -Iqapi -Itrace -Iui/shader -I/usr/include/bpf/uapi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=auto -pipe -Wall -Winvalid-pch -std=gnu11 -O2 -isystem /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/linux-headers -isystem linux-headers -iquote . -iquote /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0 -iquote /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/include -iquote /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/disas/libvixl -iquote /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/tcg/i386 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -march=native -fno-diagnostics-color -O2 -fPIC -MD -MQ libcommon.fa.p/hw_core_cpu-common.c.o -MF libcommon.fa.p/hw_core_cpu-common.c.o.d -o libcommon.fa.p/hw_core_cpu-common.c.o -c ../hw/core/cpu-common.c ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-j4-20210917-172407 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.0 * /usr/lib/llvm/12 12.0.1 Python 3.9.7 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.55.0 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 (none found) HEAD of ::gentoo commit e7255d262973b85ee0eb2f6a89eb88bec34b7c4b Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Sep 23 02:26:15 2021 +0000 2021-09-23 02:26:14 UTC emerge -qpvO app-emulation/qemu [ebuild U ] app-emulation/qemu-6.1.0 [6.0.0-r53] USE="aio bzip2 caps curl doc fdt filecaps jpeg ncurses nls oss pin-upstream-blobs png seccomp slirp vhost-net vnc xattr -accessibility -alsa -capstone -debug -fuse -glusterfs -gnutls -gtk -infiniband -io-uring -iscsi -jack -jemalloc -lzo -multipath -nfs -numa -opengl -plugins -pulseaudio -python -rbd -sasl -sdl -sdl-image (-selinux) -smartcard -snappy -spice -ssh -static -static-user -systemtap -test -udev -usb -usbredir -vde -vhost-user-fs -virgl -virtfs -vte -xen -xfs -zstd" PYTHON_TARGETS="python3_9 -python3_8 -python3_10" QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64 -alpha -arm -avr -cris -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -xtensa -xtensaeb (-lm32%) (-moxie%) (-unicore32%)" QEMU_USER_TARGETS="i386 x86_64 -aarch64 -aarch64_be -alpha -arm -armeb -cris -hexagon -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -xtensa -xtensaeb"
Created attachment 740823 [details] emerge-info.txt
Created attachment 740826 [details] app-emulation:qemu-6.1.0:20210923-045406.log
Created attachment 740829 [details] emerge-history.txt
Created attachment 740832 [details] environment
Created attachment 740835 [details] etc.portage.tar.bz2
See also: https://github.com/trofi/slyfox-gentoo/issues/8
And slyfox's fix at https://github.com/trofi/slyfox-gentoo/commit/dc50b543e076c36a446a4eb30a6453d1f1d0d603
FWIW - The upstream patch at: https://patchew.org/QEMU/20210907104512.129103-1-pbonzini@redhat.com/#20210907104512.129103-1-pbonzini@redhat.com Also fixes this issue for me when dropped in /etc/portage/patches...
The second patch allows qeme user emulation to be compiled statically with bpf, it also require elf to be compile with statc-libs.
Created attachment 741816 [details, diff] patch that finds the bpf static libraries
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41a325ea429a98833868c9370f5ee2c7af540477 commit 41a325ea429a98833868c9370f5ee2c7af540477 Author: John Helmert III <ajak@gentoo.org> AuthorDate: 2021-10-11 03:46:10 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2021-10-11 03:47:42 +0000 app-emulation/qemu: fix build failure when libbpf is present Closes: https://bugs.gentoo.org/814458 Signed-off-by: John Helmert III <ajak@gentoo.org> .../qemu/files/qemu-6.1.0-automagic-libbpf.patch | 21 +++++++++++++++++++++ app-emulation/qemu/metadata.xml | 1 + app-emulation/qemu/qemu-6.1.0.ebuild | 5 ++++- 3 files changed, 26 insertions(+), 1 deletion(-)