X Tutup
The Wayback Machine - https://web.archive.org/web/20241007182052/https://github.com/python/cpython/issues/124967
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapping python3.13 with JIT enabled appears to require pre-built python3 #124967

Open
xnox opened this issue Oct 4, 2024 · 1 comment
Open
Labels
build The build process and cross-build docs Documentation in the Doc dir topic-JIT

Comments

@xnox
Copy link

xnox commented Oct 4, 2024

Documentation

At https://devguide.python.org/getting-started/setup-building/#avoid-recreating-auto-generated-files

it is stated that whilst some auto-generated files do require python, they are prebuild by default in git and tarballs such that one can build python without pre-existing python.

Attempting to do a build of python3.13 rc3 without a pre-existing python results in this build failure, and with JIT enabled to "yes-off"

...
2024/10/04 01:26:24 INFO checking for Python interpreter freezing... ./_bootstrap_python name=Configure
2024/10/04 01:26:24 INFO checking for python3.13... no name=Configure
2024/10/04 01:26:24 INFO checking for python3.13... no name=Configure
2024/10/04 01:26:24 INFO checking for python3.12... no name=Configure
2024/10/04 01:26:24 INFO checking for python3.11... no name=Configure
2024/10/04 01:26:24 INFO checking for python3.10... no name=Configure
2024/10/04 01:26:24 INFO checking for python3... no name=Configure
2024/10/04 01:26:24 INFO checking for python... no name=Configure
2024/10/04 01:26:24 INFO checking Python for regen version... missing name=Configure
...
2024/10/04 01:26:25 INFO checking for --enable-experimental-jit... -D_Py_TIER2=3 -D_Py_JIT name=Configure
...
2024/10/04 01:27:01 INFO python3 ./Tools/jit/build.py x86_64-pc-linux-gnu uses=autoconf/make
2024/10/04 01:27:01 WARN /bin/sh: python3: not found uses=autoconf/make
...

Does building with JIT require python3 to be available? Can bootstrap python be used?

Note, golang & gcc for example build themselves multiple times (3 stage bootstrap). It would be convenient if python build system could "--enable-bootstrap" such that after bootstrap-python a more full python is built; which is then used to perform final build with ability to regenerate generated code and build with JIT.

Any improvements to documentation w.r.t. installing dependencies, or how to do a throw-away temporary build without reggenerating files and without JIT, and reuse that python to build final build would be nice.

@xnox xnox added the docs Documentation in the Doc dir label Oct 4, 2024
@AA-Turner
Copy link
Member

cc @brandtbucher

@Eclips4 Eclips4 added topic-JIT build The build process and cross-build labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build docs Documentation in the Doc dir topic-JIT
Projects
None yet
Development

No branches or pull requests

3 participants
X Tutup