/var/tmp/portage/app-emulation/qemu-4.2.0-r2/work/qemu-4.2.0/linux-user/syscall.c: In function target_to_host_flock: /var/tmp/portage/app-emulation/qemu-4.2.0-r2/work/qemu-4.2.0/linux-user/syscall.c:6030:22: error: F_EXLCK undeclared (first use in this function); did you mean F_RDLCK? 6030 | TRANSTBL_CONVERT(F_EXLCK); \ | ^~~~~~~ /var/tmp/portage/app-emulation/qemu-4.2.0-r2/work/qemu-4.2.0/linux-user/syscall.c:6036:53: note: in definition of macro TRANSTBL_CONVERT ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200316-165821 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Mon Mar 23 17:38:44 UTC 2020 /var/db/repos/musl Sun Mar 22 15:02:57 UTC 2020 emerge -qpvO app-emulation/qemu [ebuild N ] app-emulation/qemu-4.2.0-r2 USE="aio bzip2 caps curl fdt filecaps jpeg ncurses nls oss pin-upstream-blobs png seccomp vhost-net vnc xattr xkb -accessibility -alsa -capstone -debug -doc -glusterfs -gnutls -gtk -infiniband -iscsi -jemalloc -lzo -nfs -numa -opengl -plugins -pulseaudio -python -rbd -sasl -sdl -sdl-image (-selinux) -smartcard -snappy -spice -ssh -static -static-user -systemtap -tci -test -usb -usbredir -vde -vhost-user-fs -virgl -virtfs -vte -xen -xfs" PYTHON_TARGETS="python3_6 -python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64 -alpha -arm -cris -hppa -lm32 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -moxie -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb" QEMU_USER_TARGETS="i386 x86_64 -aarch64 -aarch64_be -alpha -arm -armeb -cris -hppa -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64abi32 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -tilegx -xtensa -xtensaeb"
Created attachment 624770 [details] emerge-info.txt
Created attachment 624772 [details] app-emulation:qemu-4.2.0-r2:20200323-190704.log
Created attachment 624774 [details] emerge-history.txt
Created attachment 624776 [details] environment
Created attachment 624778 [details] etc.portage.tbz2
Created attachment 624780 [details] logs.tbz2
alpine: https://git.alpinelinux.org/aports/tree/community/qemu/musl-F_SHLCK-and-F_EXLCK.patch The following patches are also needed for compilation. https://git.alpinelinux.org/aports/tree/community/qemu/fix-sigevent-and-sigval_t.patch https://git.alpinelinux.org/aports/tree/community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
Thanks for the links! Do you know if they were they proposed or accepted upstream?
Just confirming the 3 alpine patches were required and still apply against app-emulation/qemu-5.0.0-r2 as well.
We don't have qemu 4.*.* in the repos so the bug is obsolete
(In reply to Filip Kobierski from comment #10) > We don't have qemu 4.*.* in the repos so the bug is obsolete That's not how it works, but yes, I believe newer versions work on musl.