qemu 6.1.0 failes to compile with python 3.10 target: Program sphinx-build found: YES ../docs/meson.build:30: WARNING: /usr/bin/sphinx-build: Traceback (most recent call last): File "/usr/lib/python-exec/python3.10/sphinx-build", line 33, in <module> sys.exit(load_entry_point('Sphinx==4.1.1', 'console_scripts', 'sphinx-build')()) File "/usr/lib/python-exec/python3.10/sphinx-build", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load module = import_module(match.group('module')) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1050, in _gcd_import File "<frozen importlib._bootstrap>", line 1027, in _find_and_load File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 25, in <module> from sphinx.application import Sphinx File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 32, in <module> from sphinx.config import Config File "/usr/lib/python3.10/site-packages/sphinx/config.py", line 21, in <module> from sphinx.util import logging File "/usr/lib/python3.10/site-packages/sphinx/util/__init__.py", line 41, in <module> from sphinx.util.typing import PathMatcher File "/usr/lib/python3.10/site-packages/sphinx/util/typing.py", line 37, in <module> from types import Union as types_Union ImportError: cannot import name 'Union' from 'types' (/usr/lib/python3.10/types.py) ../docs/meson.build:32:6: ERROR: Problem encountered: Install a Python 3 version of python-sphinx and the readthedoc theme A full log can be found at /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/softmmu-build/meson-logs/meson-log.txt ERROR: meson setup failed
Created attachment 741159 [details] build.log
Created attachment 741162 [details] emerge --info output
Hm, this actually looks like Sphinx: https://archives.gentoo.org/gentoo-dev/message/69efc23977144df37d4233b9617e3615. Can you try upgrading SPhinx first?
(In reply to Sam James from comment #3) > Hm, this actually looks like Sphinx: > https://archives.gentoo.org/gentoo-dev/message/ > 69efc23977144df37d4233b9617e3615. > > Can you try upgrading SPhinx first? after upgrading sphinx i got this: Configuring 60-edk2-arm.json using configuration Configuring 60-edk2-i386.json using configuration Configuring 60-edk2-x86_64.json using configuration Program sphinx-build found: YES ../docs/meson.build:30: WARNING: /usr/bin/sphinx-build: Configuration error: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. ../docs/meson.build:32:6: ERROR: Problem encountered: Install a Python 3 version of python-sphinx and the readthedoc theme A full log can be found at /var/tmp/portage/app-emulation/qemu-6.1.0/work/qemu-6.1.0/softmmu-build/meson-logs/meson-log.txt ERROR: meson setup failed Also if i disable python3.10 it compiles fine btw (with 3.8 and 3.9)
actually emerging dev-python/sphinx_rtd_theme-1.0.0 with python 3.10 before now did the trick.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27688b840d6c3a8cbca0b6f644364fb1e3c51171 commit 27688b840d6c3a8cbca0b6f644364fb1e3c51171 Author: John Helmert III <ajak@gentoo.org> AuthorDate: 2021-09-25 15:25:30 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2021-09-25 17:46:55 +0000 app-emulation/qemu: add PYTHON_USEDEP for sphinx bdeps Bug: https://bugs.gentoo.org/814650 Signed-off-by: John Helmert III <ajak@gentoo.org> Signed-off-by: Matthias Maier <tamiko@gentoo.org> app-emulation/qemu/qemu-6.0.0-r3.ebuild | 2 +- app-emulation/qemu/qemu-6.0.0-r53.ebuild | 2 +- app-emulation/qemu/qemu-6.1.0.ebuild | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
LordVan, can you test this patch to be sure it fixes this bug?