gdb fails to build with Python 3.13.0a1. This report is automated and not very verbose, but we'll try to get back here with details. ../../gdb/python/py-gdb-readline.c: In function ‘char* gdbpy_readline_wrapper(FILE*, FILE*, const char*)’: ../../gdb/python/py-gdb-readline.c:59:29: error: ‘_PyOS_ReadlineTState’ was not declared in this scope; did you mean ‘PyOS_Readline’? 59 | PyEval_RestoreThread (_PyOS_ReadlineTState); | ^~~~~~~~~~~~~~~~~~~~ | PyOS_Readline https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06660789-gdb/ For all our attempts to build gdb with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/gdb/ 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.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. 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.
_PyOS_ReadlineTState was removed in https://github.com/python/cpython/pull/107034 Victor, what should gdb use instead?
Oh, another surprising side effect of removing private APIs. I created https://github.com/python/cpython/issues/112446 upstream to discuss the issue. Right now, I don't know what is a good replacement.
I discussed the issue in private with aburgess directly who worked on a fix using PyGILState_Ensure() and PyGILState_Release() when gdb readline callbacks has to set an exception.
FEDORA-2024-775c2c657f has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-775c2c657f
FEDORA-2024-775c2c657f has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-775c2c657f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-775c2c657f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Reopening, as the linked update doesn't apply to this bugzilla (F38 vs Rawhide). gdb 14.1 still doesn't build with Python 3.13 with the above failure.
Works, thanks.
FEDORA-2024-8f10f96169 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169
FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8f10f96169` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f10f96169 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-8f10f96169 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.