Hello, It appears that qemu support building with python3 starting from version 2.12 - https://github.com/qemu/qemu/commit/c21965a0c8b979c306e927f158257e5b0fa3a1f9 I personally changed python2_7 to python3_6 in in-tree ebuild, and can successfully compile working qemu build.
https://wiki.qemu.org/ChangeLog/2.12 > Python 3.x can be used to build QEMU.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aafb01bd5375daf076ca07cc59808995d2cedcf5 commit aafb01bd5375daf076ca07cc59808995d2cedcf5 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2018-06-10 03:18:18 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2018-06-10 03:30:01 +0000 app-emulation/qemu: try to fix dependency mess - add missing USE=infiniband dependencies - fix automagic libxml2 dependency, also fixes static build - add python-3 support - fix automagic libxbcommon dependency Closes: https://bugs.gentoo.org/656006 Closes: https://bugs.gentoo.org/656076 Closes: https://bugs.gentoo.org/657428 Package-Manager: Portage-2.3.40, Repoman-2.3.9 .../qemu/{qemu-2.12.0.ebuild => qemu-2.12.0-r1.ebuild} | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)