When trying to build app-emulation/qemu USE="bpf" against the recently released dev-libs/libbpf-1.0.0, the build process fails with the following error message: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libcommon.fa.p/ebpf_ebpf_rss.c.o: in function `ebpf_rss_load': /var/tmp/portage/app-emulation/qemu-7.0.0-r3/work/qemu-7.0.0/softmmu-build/../ebpf/ebpf_rss.c:52: undefined reference to `bpf_program__set_socket_filter' collect2: error: ld returned 1 exit status Portage 3.0.35 (python 3.10.6-final-0, default/linux/amd64/17.1/no-multilib/systemd, gcc-12.2.0, glibc-2.36, 5.19.3-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.19.3-gentoo-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-1135G7_@_2.40GHz-with-glibc2.36 KiB Mem: 7921564 total, 920052 free KiB Swap: 33086456 total, 33028088 free Timestamp of repository gentoo: Tue, 23 Aug 2022 08:02:03 +0000 Head commit of repository gentoo: bbfbfe56bdf49907275e20afc4d4144efc56eb56 Timestamp of repository guru: Mon, 22 Aug 2022 20:16:54 +0000 Head commit of repository guru: 31d6803a3511f8c2430ff8810e14b2c981a505d1 Timestamp of repository lto-overlay: Tue, 02 Aug 2022 04:17:36 +0000 Head commit of repository lto-overlay: 92436972bc87a44dbc0211a168f3455e457291ee Timestamp of repository mv: Thu, 18 Aug 2022 22:31:48 +0000 Head commit of repository mv: d9923744c494d3ab497948854d868d142a136840 sh bash 5.1_p16-r1 ld GNU ld (Gentoo 2.39 p3) 2.39.0 ccache version 4.6.2 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r1::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0::gentoo dev-lang/python: 3.10.6_p2::gentoo, 3.11.0_rc1::gentoo dev-lang/rust: 1.62.1::gentoo dev-util/ccache: 4.6.2::gentoo dev-util/cmake: 3.24.1::gentoo dev-util/meson: 0.63.1::gentoo sys-apps/baselayout: 2.8-r2::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 251.4::gentoo sys-devel/autoconf: 2.13-r2::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo sys-devel/gcc: 12.2.0::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.6::gentoo sys-devel/llvm: 14.0.6-r2::local sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.36::local Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 sync-git-verify-commit-signature: yes guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo local location: /var/db/repos/local masters: gentoo lto-overlay location: /var/db/repos/lto-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/lto-overlay.git masters: gentoo mv mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -Wformat -Werror=format-security -fcf-protection=full -mshstk -fno-semantic-interposition -fuse-linker-plugin -O3 -flto=auto -Wall -fexceptions -feliminate-unused-debug-types -g --param=ssp-buffer-size=8 -fstack-clash-protection" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -Wformat -Werror=format-security -fcf-protection=full -mshstk -fno-semantic-interposition -fuse-linker-plugin -O3 -flto=auto -Wall -fexceptions -feliminate-unused-debug-types -g --param=ssp-buffer-size=8 -fstack-clash-protection" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -Wformat -Werror=format-security -fcf-protection=full -mshstk -fno-semantic-interposition -fuse-linker-plugin -O3 -flto=auto -Wall -fexceptions -feliminate-unused-debug-types -g --param=ssp-buffer-size=8 -fstack-clash-protection" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -Wformat -Werror=format-security -fcf-protection=full -mshstk -fno-semantic-interposition -fuse-linker-plugin -O3 -flto=auto -Wall -fexceptions -feliminate-unused-debug-types -g --param=ssp-buffer-size=8 -fstack-clash-protection" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RUSTFLAGS="-C target-cpu=native -C opt-level=3 -Clinker-plugin-lto -C embed-bitcode=no" SHELL="/bin/zsh" USE="X a52 aac acl activities afp aio alsa amd64 amr apparmor appstream archive argon2 audit avif bcache blake2 bluetooth boost bpf branding brotli bzip2 cacert cairo caps cet chromium cjk clang cli colord corefonts crypt cryptsetup cue cups curl cxx dav1d dbus default-compiler-rt default-lld device-mapper dracut dri drm dts eds egl eglfs elf encode exif expat ffmpeg fftw flac flatpak fontconfig fonts fortran gbm gdbm gegl geolocation gif git gles2 glib glslang gmp gnome gnome-keyring gnome-online-accounts gpm graphite gsf gsm gssapi gstreamer gtk gtk3 gtk4 gui harfbuzz homed hugepages hwloc ibus iconv icu idn introspection ios iptc ipv6 iwd jack jemalloc jit jpeg jpeg2k json kbd kerberos kms ktls ladspa lame latex layers lcms ldap libass libdrm libgig libglvnd libnotify libproxy libsoxr libtirpc libxml2 llvm-libunwind lm-sensors localstorage lto lv2 lvm lz4 lzma lzo mad metric midi minizip mng modemmanager modern-top modplug mp3 mp4 mpeg mpfr mtp multitarget natspec nautilus ncurses netlink networkmanager nfs nftables nls nptl numa nvenc oauth odbc office ogg openal opencl openconnect opengl openh264 openmp opus otf pam pango pcap pcre pdf perl pgo pie pipewire pkcs11 pkcs7 png policykit previewer pulseaudio qml quadmath quiche rar raw readline rubberband samba scanner screencast sctp sdl seccomp semantic-desktop sendto session snappy snmp sodium sound speex spell sqlite ssl ssp startup-notification stemmer svg symlink sysprof system-sqlite system-zlib systemd taglib tcl tdb telepathy text theora threads tiff tk tpm tracker truetype twolame udev udisks unicode unwind upower usb user-session uuid v4l vaapi vala vdo vim-syntax vmaf vorbis vpx vulkan wayland weather webkit webp widgets wifi wxwidgets x264 x265 xar xattr xcb xinerama xml xmp xpm xps xv xvid xxhash zeroconf zimg zip zlib zram zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en en-GB en-US fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="intel nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= app-emulation/qemu-7.0.0-r3::gentoo was built with the following: USE="aio alsa bpf bzip2 caps curl fdt filecaps fuse gnutls gtk io-uring jack jemalloc jpeg lzo multipath ncurses nfs nls numa opengl oss pam pin-upstream-blobs plugins png pulseaudio sdl sdl-image seccomp slirp smartcard snappy spice udev usb usbredir vde vhost-net vhost-user-fs virgl virtfs vnc vte xattr zstd -accessibility -capstone -debug -doc -glusterfs -infiniband -iscsi -python -rbd -sasl (-selinux) -ssh -static -static-user -systemtap -test -xen" PYTHON_TARGETS="python3_10 -python3_8 -python3_9" QEMU_SOFTMMU_TARGETS="x86_64 -aarch64 -alpha -arm -avr -cris -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -xtensa -xtensaeb" QEMU_USER_TARGETS="-aarch64 -aarch64_be -alpha -arm -armeb -cris -hexagon -hppa -i386 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64 -xtensa -xtensaeb" CFLAGS="-march=native -D_FORTIFY_SOURCE=2 -Werror=format-security -fcf-protection=full -mshstk -Wl,-O2 -Wl,-z,relro,-z,now,-z,shstk,-z,max-page-size=0x4000,-z,separate-code,-z,pack-relative-relocs -Wl,--enable-new-dtags -Wl,--as-needed -ftrivial-auto-var-init=zero -mrelax-cmpxchg-loop -fno-semantic-interposition -fuse-linker-plugin -fipa-pta -O3 -fgraphite-identity -fdevirtualize-at-ltrans -Wall -fexceptions -feliminate-unused-debug-types -g -Wl,--build-id=sha1 --param=ssp-buffer-size=64 -fno-strict-aliasing -Wl,-O1" CXXFLAGS="-march=native -D_FORTIFY_SOURCE=2 -Werror=format-security -fcf-protection=full -mshstk -Wl,-O2 -Wl,-z,relro,-z,now,-z,shstk,-z,max-page-size=0x4000,-z,separate-code,-z,pack-relative-relocs -Wl,--enable-new-dtags -Wl,--as-needed -ftrivial-auto-var-init=zero -mrelax-cmpxchg-loop -fno-semantic-interposition -fuse-linker-plugin -fipa-pta -O3 -fgraphite-identity -fdevirtualize-at-ltrans -Wall -fexceptions -feliminate-unused-debug-types -g -Wl,--build-id=sha1 --param=ssp-buffer-size=64 -fno-strict-aliasing -Wl,-O1" FEATURES="qa-unresolved-soname-deps unknown-features-warn strict cgroup mount-sandbox splitdebug unmerge-logs sandbox unmerge-orphans assume-digests compressdebug buildpkg-live sfperms xattr distlocks binpkg-logs binpkg-dostrip multilib-strict usersync ipc-sandbox config-protect-if-modified userpriv merge-sync userfetch usersandbox fixlafiles parallel-install binpkg-docompress protect-owned pid-sandbox ebuild-locks parallel-fetch news preserve-libs network-sandbox" >>> Attempting to run pkg_info() for 'app-emulation/qemu-7.0.0-r3' Using: app-emulation/spice-protocol-0.14.4 sys-firmware/edk2-ovmf-202105-r2 USE=binary sys-firmware/ipxe-1.21.1 sys-firmware/seabios-1.14.0-r2 USE=binary sys-firmware/sgabios-0.1_pre10
Please attach a full build log.
Created attachment 800661 [details] app-emulation/qemu-7.0.0-r3 build log
I suspect this is the fix: https://gitlab.com/qemu-project/qemu/-/commit/a495eba03c31c96d6a0817b13598ce2219326691 Which will be in 7.1.0
Thanks, this patch helped me to compile qemu.
Patch helped me as well. Please, add to portage tree.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dae58ffc7460205faa4e8671ffc7cec49e8cc42c commit dae58ffc7460205faa4e8671ffc7cec49e8cc42c Author: John Helmert III <ajak@gentoo.org> AuthorDate: 2022-08-07 01:10:28 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2022-09-06 22:38:55 +0000 app-emulation/qemu: add 7.1.0 Pulled in Hello71's meson fixes here, so thanks to them too. Thanks-To: Alex Xu (Hello71) <alex_y_xu@yahoo.ca> Bug: https://bugs.gentoo.org/866127 Signed-off-by: John Helmert III <ajak@gentoo.org> app-emulation/qemu/Manifest | 2 + app-emulation/qemu/qemu-7.1.0.ebuild | 982 +++++++++++++++++++++++++++++++++++ 2 files changed, 984 insertions(+)
*** Bug 872800 has been marked as a duplicate of this bug. ***
We don't have qemu 7.0.* in the repos so the bug is obsolete