[issue45886] Fix Program/_freeze_module for cross compiling Python

2022-03-31 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-29 Thread Christian Heimes
Christian Heimes added the comment: The issue is related to bpo-45873. The Debian buildbot has an ancient Python version that does not support f-strings. -- ___ Python tracker

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-29 Thread Irit Katriel
Irit Katriel added the comment: Is this related to this issue or something else? https://buildbot.python.org/all/#/builders/310/builds/344 gcc -pthread -c -Wsign-compare -g -Og -Wall-std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-26 Thread Christian Heimes
Christian Heimes added the comment: New changeset 765b2a3ad2e8abf9a06d5e9b3802b575ec115d76 by Christian Heimes in branch 'main': bpo-45886: Fix OOT build when srcdir has frozen module headers (GH-29793) https://github.com/python/cpython/commit/765b2a3ad2e8abf9a06d5e9b3802b575ec115d76

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-26 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28028 pull_request: https://github.com/python/cpython/pull/29793 ___ Python tracker ___

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-25 Thread Guido van Rossum
Guido van Rossum added the comment: Imthink I prefer the ‘make clean’ extension.-- --Guido (mobile) -- ___ Python tracker ___ ___

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: The FREEZE_MODULE trick fails with out-of-tree builds when SRCDIR contains the frozen_modules header files from a previous build. When doing OOT building, make includes the SRCDIR in the search path for dependencies (VPATH). It considers

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset dd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5 by Christian Heimes in branch 'main': bpo-45886: Allow overriding freeze command for cross compiling (GH-29735) https://github.com/python/cpython/commit/dd8ce9ea8d7e45224a348ea7962b5f50cbf86dc5

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Guido van Rossum
Guido van Rossum added the comment: To the question "why does _freeze_module need to be a (C) binary" (IOW, why can't it be replaced by a Python script that is run with PYTHON_FOR_REGEN, which always runs on the build host), the reason is that it uses the bytecode compiler to generate

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27973 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29735 ___ Python tracker

[issue45886] Fix Program/_freeze_module for cross compiling Python

2021-11-23 Thread Christian Heimes
New submission from Christian Heimes : The build process creates the binary Program/_freeze_module, which is used to create frozen modules. The program takes a Python file, compiles it, and stores its marshalled output in a header file. The approach does not work when cross compiling Python.