Bug 2083967 - python3-typed_ast fails to build with Python 3.11: fatal error: code.h: No such file or directory
Summary: python3-typed_ast fails to build with Python 3.11: fatal error: code.h: No su...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python3-typed_ast
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.11
TreeView+ depends on / blocked
 
Reported: 2022-05-11 06:46 UTC by Tomáš Hrnčiar
Modified: 2022-06-02 01:32 UTC (History)
3 users (show)

Fixed In Version: python3-typed_ast-1.5.4-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-02 01:32:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2022-05-11 06:46:16 UTC
python3-typed_ast fails to build with Python 3.11.0b1.

ast27/Custom/../Include/compile.h:5:10: fatal error: code.h: No such file or directory
    5 | #include "code.h"
      |          ^~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04392331-python3-typed_ast/

For all our attempts to build python3-typed_ast with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python3-typed_ast/

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

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 2022-05-24 17:39:18 UTC
FEDORA-2022-33dcf921d8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-33dcf921d8

Comment 2 Fedora Update System 2022-05-25 02:38:20 UTC
FEDORA-2022-33dcf921d8 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-33dcf921d8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-33dcf921d8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2022-06-02 01:32:46 UTC
FEDORA-2022-33dcf921d8 has been pushed to the Fedora 36 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.