Bug 2424580

Summary: python-greenlet fails to build with Python 3.15: src/greenlet/TGreenlet.cpp:636:41: error: ‘FRAME_OWNED_BY_CSTACK’ was not declared in this scope; did you mean ‘FRAME_OWNED_BY_THREAD’?
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-greenletAssignee: Kevin Fenzi <kevin>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, igor.raits, kevin, ksurma, mhroncok, michel, terjeros
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-greenlet-3.3.0-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-04 04:11:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434    

Description Karolina Surma 2025-12-23 12:29:53 UTC
python-greenlet fails to build with Python 3.15.0a3.

  In file included from /usr/include/python3.15/internal/pycore_backoff.h:12,
                   from /usr/include/python3.15/internal/pycore_code.h:11,
                   from /usr/include/python3.15/internal/pycore_interpframe.h:8,
                   from src/greenlet/TGreenlet.hpp:35,
                   from src/greenlet/greenlet_internal.hpp:18,
                   from src/greenlet/greenlet.cpp:19:
  src/greenlet/TGreenlet.cpp: In member function ‘void greenlet::Greenlet::expose_frames()’:
  src/greenlet/TGreenlet.cpp:636:41: error: ‘FRAME_OWNED_BY_CSTACK’ was not declared in this scope; did you mean ‘FRAME_OWNED_BY_THREAD’?
    636 |             assert(iframe_copy.owner != FRAME_OWNED_BY_CSTACK);
        |                                         ^~~~~~~~~~~~~~~~~~~~~
  error: command '/usr/bin/g++' failed with exit code 1
  error: subprocess-exited-with-error
  

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09935344-python-greenlet/

For all our attempts to build python-greenlet with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-greenlet/

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.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
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 Kevin Fenzi 2026-01-04 03:59:59 UTC
Looks like https://github.com/python-greenlet/greenlet/pull/482 might fix this.

Will apply it.

Comment 2 Fedora Update System 2026-01-04 04:07:21 UTC
FEDORA-2026-99e166efb4 (python-greenlet-3.3.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-99e166efb4

Comment 3 Fedora Update System 2026-01-04 04:11:29 UTC
FEDORA-2026-99e166efb4 (python-greenlet-3.3.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.