Bug 2176168 - python-recordclass fails to build with Python 3.12: error: PyLongObject {aka struct _longobject} has no member named ob_digit
Summary: python-recordclass fails to build with Python 3.12: error: PyLongObject {aka ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-recordclass
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.12
TreeView+ depends on / blocked
 
Reported: 2023-03-07 14:49 UTC by Tomáš Hrnčiar
Modified: 2023-08-12 15:27 UTC (History)
3 users (show)

Fixed In Version: python-recordclass-0.20-2.fc40 python-recordclass-0.20-2.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-12 15:18:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2023-03-07 14:49:46 UTC
python-recordclass fails to build with Python 3.12.0a5.

  lib/recordclass/_linkedlist.c: In function ‘__Pyx_PyInt_As_long’:
  lib/recordclass/_linkedlist.c:10807:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
  10807 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  lib/recordclass/_linkedlist.c:10862:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
  10862 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  lib/recordclass/_linkedlist.c: In function ‘__Pyx_PyInt_As_int’:
  lib/recordclass/_linkedlist.c:11041:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
  11041 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  lib/recordclass/_linkedlist.c:11096:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
  11096 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
        |                                                     ^~
  lib/recordclass/_linkedlist.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
  lib/recordclass/_linkedlist.c:11547:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
  11547 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
        |                                             ^~
  error: command '/usr/bin/gcc' failed with exit code 1
  error: subprocess-exited-with-error

GH-101291: Refactor the PyLongObject struct #101292

https://github.com/python/cpython/pull/101292
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/05576973-python-recordclass/

For all our attempts to build python-recordclass with Python 3.12, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.12/package/python-recordclass/

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.

Comment 1 Fedora Update System 2023-08-12 15:16:03 UTC
FEDORA-2023-505832efb8 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-505832efb8

Comment 2 Fedora Update System 2023-08-12 15:18:37 UTC
FEDORA-2023-505832efb8 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2023-08-12 15:25:24 UTC
FEDORA-2023-50ff260d8a has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-50ff260d8a

Comment 4 Fedora Update System 2023-08-12 15:27:37 UTC
FEDORA-2023-50ff260d8a has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.


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