app-emulation/qemu-4.0.0-r3 does not build with >=sys-kernel/linux-headers-5.2 as SIOCGSTAMP was moved across headers. It does compile successfully, however, after applying this upstream patch (small whitespace adaptation needed): https://git.qemu.org/?p=qemu.git;a=commit;h=6d5d5dde9adb5acb32e6b8e3dfbf47fff0f308d2
I was not able to get the patch to work, but running app-emulation/qemu-9999 is another way to get sys-kernel/linux-headers-5.2 working.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76e446190008f27fbad7ad055ea57c4e124a232 commit f76e446190008f27fbad7ad055ea57c4e124a232 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2019-07-28 18:11:01 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2019-07-28 18:21:26 +0000 app-emulation/qemu: maintenacne patches, revbump * patch for linux-headers-5.2 * apply upstream patch for pc-q35 regression with windows guests Closes: https://bugs.gentoo.org/690418 Closes: https://bugs.gentoo.org/690280 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Matthias Maier <tamiko@gentoo.org> .../qemu/files/qemu-4.0.0-linux-headers-5.2.patch | 334 +++++++++ .../qemu/files/qemu-4.0.0-pc-q35-4.0.patch | 135 ++++ app-emulation/qemu/qemu-4.0.0-r4.ebuild | 813 +++++++++++++++++++++ 3 files changed, 1282 insertions(+)