-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesbuildThe build process and cross-buildThe build process and cross-builddocsDocumentation in the Doc dirDocumentation in the Doc direasytopic-JIT
Description
Hi all,
I am trying to build python 3.13.1 from source (grabed here https://www.python.org/ftp/python/3.13.1/Python-3.13.1.tgz) on Ubuntu 22.04 instance with configuration so that I disable GIL + get JIT :
./configure --disable-gil --enable-experimental-jit --enable-optimizations --with-lto
Requirements installed according to https://devguide.python.org/getting-started/setup-building/index.html#install-dependencies
The make step fails with error :
gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -D_Py_TIER2=1 -D_Py_JIT -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c11 -Wextra -Wno-unused-parameter
-Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -fprofile-generate -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python
/mystrtoul.o Python/mystrtoul.c
Traceback (most recent call last):
File "/tmp/Python-3.13.1/./Tools/jit/build.py", line 8, in <module>
import _targets
File "/tmp/Python-3.13.1/Tools/jit/_targets.py", line 15, in <module>
import _schema
File "/tmp/Python-3.13.1/Tools/jit/_schema.py", line 60, in <module>
class MachORelocation(typing.TypedDict):
File "/tmp/Python-3.13.1/Tools/jit/_schema.py", line 64, in MachORelocation
Section: typing.NotRequired[dict[typing.Literal["Value"], str]]
AttributeError: module 'typing' has no attribute 'NotRequired'
I've been looking around, and was not able to find any reference to this kind of issue. What am i doing wrong ?
Thank you so much for any help in reply.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesbuildThe build process and cross-buildThe build process and cross-builddocsDocumentation in the Doc dirDocumentation in the Doc direasytopic-JIT
Projects
Status
Todo