[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-29 Thread Christian Heimes
Christian Heimes added the comment: New changeset 992565f7f72fd8250b788795f76eedcff5636a64 by Christian Heimes in branch 'main': bpo-45881: configure --with-freeze-module --with-build-python (GH-29835) https://github.com/python/cpython/commit/992565f7f72fd8250b788795f76eedcff5636a64 ---

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-29 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +28066 pull_request: https://github.com/python/cpython/pull/29835 ___ Python tracker ___

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-27 Thread Christian Heimes
Christian Heimes added the comment: New changeset 545aebd2ecef9f6c3b2ca1973e3e0515d8355ce3 by Christian Heimes in branch '3.10': [3.10] bpo-45881: Use CC from env first for cross building (GH-29752). (GH-29753) https://github.com/python/cpython/commit/545aebd2ecef9f6c3b2ca1973e3e0515d8355ce3

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-27 Thread Christian Heimes
Change by Christian Heimes : -- dependencies: +sysconfig --generate-posix-vars creates wrong file when cross compiling ___ Python tracker ___ _

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-25 Thread Christian Heimes
Christian Heimes added the comment: New changeset cd6d2577fadc4cc0275017f27f46b0a628216353 by Christian Heimes in branch '3.9': [3.9] bpo-45881: Use CC from env first for cross building (GH-29752) (GH-29754) https://github.com/python/cpython/commit/cd6d2577fadc4cc0275017f27f46b0a628216353 -

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27991 pull_request: https://github.com/python/cpython/pull/29754 ___ Python tracker ___

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27990 pull_request: https://github.com/python/cpython/pull/29753 ___ Python tracker ___

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset b30bf4520ae9d6e7eca09d812dd8a86c020b9202 by Christian Heimes in branch 'main': bpo-45881: Use CC from env first for cross building (GH-29752) https://github.com/python/cpython/commit/b30bf4520ae9d6e7eca09d812dd8a86c020b9202 -- _

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

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

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-24 Thread Christian Heimes
Christian Heimes added the comment: bpo-45886 addresses the cross build issue with freeze_module command. The wrong header files come from the fact that setup.py uses CC variable from sysconfig instead of environment. The sysconfig variable contains the C compiler of the build interpreter in

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-23 Thread Christian Heimes
Christian Heimes added the comment: I have uploaded a reproducer at https://github.com/tiran/cpython_builddep/compare/cross-aarch64 $ podman run -ti --rm -v $(pwd):/cpython:Z quay.io/tiran/cpythonbuild:ubuntu-impish-aarch64 ... aarch64-linux-gnu-gcc -fPIC -Wno-unused-result -Wsign-compare -

[issue45881] Cross compiling on Linux is untested, undocumented, and broken

2021-11-23 Thread Christian Heimes
New submission from Christian Heimes : Cross compiling is an approach to compile a program for a different CPU architecture and platform, e.g. compile for an ARM64 (aarch64) or WASM on a x86_64 build system. Python configure script, Makefile, and setup.py have multiple references to cross co