bpo-45950: Introduce Bootstrap Python again#29859
Conversation
fe57850 to
b757d5b
Compare
November 30, 2021 10:05
|
🤖 New build scheduled with the buildbot fleet by @tiran for commit b757d5bd526cfffeb134eb6744ac86c561e61e9d 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
b757d5b to
fa4cd7f
Compare
November 30, 2021 11:07
|
🤖 New build scheduled with the buildbot fleet by @tiran for commit fa4cd7fc9f3763ff1309d8bfbc97853223f17239 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
|
Why not just always use |
Sorry, something went wrong.
When LTO is used, a link step can be quite slow. I noticed that when there was a second _bootstrap_python binary. I didn't check if _testembed has a similar issue or not. I'm mostly developing Python without |
Sorry, something went wrong.
|
Maybe LTO flags can be skipped on these less important binaries. |
Sorry, something went wrong.
|
FYI the revert #29717 fixed an issue with out of tree build. Please try to make sure that this bug is not reintroduced: https://bugs.python.org/issue45866#msg406764 |
Sorry, something went wrong.
We need some extra logic in configure.ac and Makefile anyway. The
I'll come up with a better way to test |
Sorry, something went wrong.
757a652 to
551fb30
Compare
December 1, 2021 12:03
gvanrossum
left a comment
There was a problem hiding this comment.
I am in favor of this. Thanks for doing this!
Sorry, something went wrong.
551fb30 to
cfe4551
Compare
December 1, 2021 16:28
|
I'll try to build this as RPM in Fedora to see if there are some problems with our bootstrapped OOT build. |
Sorry, something went wrong.
|
I am getting a lot of undefined references to |
Sorry, something went wrong.
cfe4551 to
02da340
Compare
December 2, 2021 15:28
Please try again. I have rebased the PR and added |
Sorry, something went wrong.
|
OOT build with optimizations is passing for me on F35: |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @tiran for commit 02da340e62db33a12aad1b03adf83a488e0255fb 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
That helped. |
Sorry, something went wrong.
02da340 to
252b53a
Compare
December 3, 2021 10:48
252b53a to
c630ffd
Compare
December 3, 2021 11:59
The build system now uses a `_bootstrap_python` interpreter for freezing and deepfreezing again. Cross building depends on a build Python interpreter. `_bootstrap_python` and `_freeze_module` are no longer compiled with LTO. Link time optimization is very slow.
c630ffd to
ba35cc4
Compare
December 3, 2021 14:23
|
@tiran: Please replace |
Sorry, something went wrong.
The build system now uses a :program:
_bootstrap_pythoninterpreter forfreezing and deepfreezing again. To speed up build process the build tools
:program:
_bootstrap_pythonand :program:_freeze_moduleare no longerbuild with LTO.
Cross building depends on a build Python interpreter, which must have same
version and bytecode as target host Python.
https://bugs.python.org/issue45950