Bug 2247009 - python-cradox fails to build with Python 3.13: error: implicit declaration of function ‘PyEval_InitThreads’, ‘_PyLong_Copy’
Summary: python-cradox fails to build with Python 3.13: error: implicit declaration of...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cradox
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Javier Peña
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-30 11:53 UTC by Karolina Surma
Modified: 2024-09-27 12:52 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-09-27 12:52:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-30 11:53:30 UTC
python-cradox fails to build with Python 3.13.0a1.

cradox.c:14235:3: error: implicit declaration of function ‘PyEval_InitThreads’; did you mean ‘PyEval_SaveThread’? [-Werror=implicit-function-declaration]
14235 |   PyEval_InitThreads();
      |   ^~~~~~~~~~~~~~~~~~
      |   PyEval_SaveThread

cradox.c:87202:26: error: implicit declaration of function ‘_PyLong_Copy’ [-Werror=implicit-function-declaration]
87202 |         PyObject *copy = _PyLong_Copy((PyLongObject*)n);
      |                          ^~~~~~~~~~~~

According to https://docs.python.org/3.13/whatsnew/3.13.html:

Remove PyEval_InitThreads() and PyEval_ThreadsInitialized() functions, deprecated in Python 3.9.
Since Python 3.7, Py_Initialize() always creates the GIL:
calling PyEval_InitThreads() did nothing and PyEval_ThreadsInitialized() always returned non-zero.
(Contributed by Victor Stinner in https://github.com/python/cpython/issues/105182.)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06578810-python-cradox/

For all our attempts to build python-cradox with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-cradox/

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.

Comment 1 Aoife Moloney 2024-02-15 23:02:40 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.


Note You need to log in before you can comment on or make changes to this bug.