Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936620 - app-emulation/qemu-9.0.2 fails to compile with >=dev-python/sphinx-8: Handler <function write_depfile at 0x75d530beb560> for event build-finished threw an exception (exception: unsupported operand type(s) for +: PosixPath and str)
Summary: app-emulation/qemu-9.0.2 fails to compile with >=dev-python/sphinx-8: Handler...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-25 09:12 UTC by Agostino Sarubbo
Modified: 2025-02-23 20:21 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,82.62 KB, application/x-xz)
2024-07-25 09:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-07-25 09:12:29 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/qemu-9.0.2 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-25 09:12:31 UTC
Created attachment 898291 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-07-25 09:12:32 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: docs/docs.stamp 
FAILED: tests/qapi-schema/doc-good.txt 
Program /usr/bin/gdbus-codegen found: NO
Program cgcc found: NO
Program iasl found: NO
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency blkio found: NO (tried pkgconfig)
Run-time dependency canokey-qemu found: NO (tried pkgconfig)
Run-time dependency gvnc-1.0 found: NO (tried pkgconfig)
Run-time dependency libdaxctl found: NO (tried pkgconfig)
Run-time dependency libpmem found: NO (tried pkgconfig)
Run-time dependency libxdp found: NO (tried pkgconfig)
Run-time dependency rutabaga_gfx_ffi found: NO (tried pkgconfig)
Run-time dependency sndio found: NO (tried pkgconfig)
Run-time dependency spice-protocol found: NO (tried pkgconfig)
Run-time dependency sysprof-capture-4 found: NO (tried pkgconfig)
Run-time dependency u2f-emu found: NO (tried pkgconfig)
Comment 3 Eli Schwartz gentoo-dev 2024-07-25 22:05:28 UTC
Somewhere inside this:

https://github.com/qemu/qemu/blob/5ebde3b5c00e15f560f73055fac4ab31c0cac6d2/docs/sphinx/depfile.py#L35-L54

it is getting a Path object.

https://www.sphinx-doc.org/en/master/extdev/envapi.html#sphinx.environment.BuildEnvironment.doc2path looks very suspicious. Probably a sphinx update.

...

Yes, it looks like this: https://github.com/sphinx-doc/sphinx/commit/de15d61a46daaaa2b0a0e341cdb4e0abe107e012

sphinx 8 returns Path where it used to use str, and qemu is using that to concatenate to a string and failing.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2025-02-23 19:57:02 UTC
Is this still happening?
Comment 5 Eli Schwartz gentoo-dev 2025-02-23 20:21:28 UTC
It was fixed in QEMU 9.1, and simultaneously sphinx backed out the change and made it print a deprecation warning instead. That deprecation warning is still present in sphinx git `master`.

At some point sphinx will probably drop support again, but they haven't done so yet. If/when they do, old versions of QEMU will fail to build, for people who are afraid to upgrade to our nice lovely stabilized qemu-9.1.2