This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Alex.Willmer, brett.cannon, christian.heimes, docs@python
Date 2021-11-23.16:37:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637685465.3.0.98765140006.issue45881@roundup.psfhosted.org>
In-reply-to
Content
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 compiling. However I could not find any documentation in the devguide or Python docs how to cross compile. We also lack CI (buildbot) to test cross compiling. This lack of awareness and testing leads to breakage of the feature. For example the design of Programs/_freeze_module in main (3.11-dev) is incompatible with cross compiling.

I kinda got cross compiling working with 3.10, but only with some additional hacks and patches. I also ran into other problems like _PYTHON_HOST_PLATFORM env var is not automatically forwarded to setup.py. The helper functions add_multiarch_paths() and add_cross_compiling_paths() break builds for me, too. Cross compiling only works when the methods are commented out.
History
Date User Action Args
2021-11-23 16:37:45christian.heimessetrecipients: + christian.heimes, brett.cannon, docs@python, Alex.Willmer
2021-11-23 16:37:45christian.heimessetmessageid: <1637685465.3.0.98765140006.issue45881@roundup.psfhosted.org>
2021-11-23 16:37:45christian.heimeslinkissue45881 messages
2021-11-23 16:37:45christian.heimescreate