Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814458 - app-emulation/qemu-6.1.0 - ../.../trace.h: fatal error: trace/trace-ebpf.h: No such file or directory
Summary: app-emulation/qemu-6.1.0 - ../.../trace.h: fatal error: trace/trace-ebpf.h: N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-23 07:18 UTC by Toralf Förster
Modified: 2021-10-11 03:49 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.50 KB, text/plain)
2021-09-23 07:18 UTC, Toralf Förster
Details
app-emulation:qemu-6.1.0:20210923-045406.log (app-emulation:qemu-6.1.0:20210923-045406.log,391.33 KB, text/plain)
2021-09-23 07:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,394.43 KB, text/plain)
2021-09-23 07:18 UTC, Toralf Förster
Details
environment (environment,168.87 KB, text/plain)
2021-09-23 07:18 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,33.76 KB, application/x-bzip)
2021-09-23 07:18 UTC, Toralf Förster
Details
patch that finds the bpf static libraries (bpf-meson.patch,444 bytes, patch)
2021-09-29 04:17 UTC, Alexandre Ferreira
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-09-23 07:18:44 UTC
[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"
Comment 1 Toralf Förster gentoo-dev 2021-09-23 07:18:46 UTC
Created attachment 740823 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-23 07:18:47 UTC
Created attachment 740826 [details]
app-emulation:qemu-6.1.0:20210923-045406.log
Comment 3 Toralf Förster gentoo-dev 2021-09-23 07:18:49 UTC
Created attachment 740829 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-09-23 07:18:51 UTC
Created attachment 740832 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-09-23 07:18:52 UTC
Created attachment 740835 [details]
etc.portage.tar.bz2
Comment 6 Kobboi 2021-09-24 00:24:47 UTC
See also: https://github.com/trofi/slyfox-gentoo/issues/8
Comment 8 Malcolm Lashley 2021-09-24 21:25:11 UTC
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...
Comment 9 Alexandre Ferreira 2021-09-29 04:15:19 UTC
The second patch allows qeme user emulation to be compiled statically with bpf, it also require elf to be compile with statc-libs.
Comment 10 Alexandre Ferreira 2021-09-29 04:17:17 UTC
Created attachment 741816 [details, diff]
patch that finds the bpf static libraries
Comment 11 Larry the Git Cow gentoo-dev 2021-10-11 03:49:05 UTC
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(-)