python-immutables fails to build with Python 3.12.0a5. immutables/_map.c: In function ‘_map_dump_format’: immutables/_map.c:535:19: error: macro "va_start" requires 2 arguments, but only 1 given 535 | va_start(vargs); | ^ In file included from /usr/include/python3.12/bytesobject.h:10, from /usr/include/python3.12/Python.h:50, from /usr/include/pythoncapi_compat.h:21, from immutables/_map.c:2: /usr/lib/gcc/x86_64-redhat-linux/13/include/stdarg.h:50: note: macro "va_start" defined here 50 | #define va_start(v,l) __builtin_va_start(v,l) | immutables/_map.c:535:5: error: ‘va_start’ undeclared (first use in this function) 535 | va_start(vargs); | ^~~~~~~~ immutables/_map.c:535:5: note: each undeclared identifier is reported only once for each function it appears in immutables/_map.c: In function ‘map_node_bitmap_dealloc’: immutables/_map.c:1250:5: warning: ‘UsingDeprecatedTrashcanMacro’ is deprecated [-Wdeprecated-declarations] 1250 | Py_TRASHCAN_SAFE_BEGIN(self) | ^~~~~~~~~~~~~~~~~~~~~~ immutables/_map.c: In function ‘map_node_collision_dealloc’: immutables/_map.c:1667:5: warning: ‘UsingDeprecatedTrashcanMacro’ is deprecated [-Wdeprecated-declarations] 1667 | Py_TRASHCAN_SAFE_BEGIN(self) | ^~~~~~~~~~~~~~~~~~~~~~ immutables/_map.c: In function ‘map_node_array_dealloc’: immutables/_map.c:2086:5: warning: ‘UsingDeprecatedTrashcanMacro’ is deprecated [-Wdeprecated-declarations] 2086 | Py_TRASHCAN_SAFE_BEGIN(self) | ^~~~~~~~~~~~~~~~~~~~~~ error: command '/usr/bin/gcc' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for immutables (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /builddir/build/BUILD/immutables-0.19/.pyproject-builddir/tmpz_u_h1v1 cwd: /builddir/build/BUILD/immutables-0.19 Building wheel for immutables (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for immutables Failed to build immutables ERROR: Failed to build one or more wheels va_start() with two parameters, like va_start(args, format), is now required to build Python. va_start() is no longer called with a single parameter. (Contributed by Kumar Aditya in gh-93207.) https://github.com/python/cpython/issues/93207 https://docs.python.org/3.12/whatsnew/3.12.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.12/fedora-rawhide-x86_64/05576190-python-immutables/ For all our attempts to build python-immutables with Python 3.12, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-immutables/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.12: https://copr.fedorainfracloud.org/coprs/g/python/python3.12/ Let us know here if you have any questions. Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39.
This was fixed in bug 2220276.