Message406853
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. |
|
Date |
User |
Action |
Args |
2021-11-23 16:37:45 | christian.heimes | set | recipients:
+ christian.heimes, brett.cannon, docs@python, Alex.Willmer |
2021-11-23 16:37:45 | christian.heimes | set | messageid: <1637685465.3.0.98765140006.issue45881@roundup.psfhosted.org> |
2021-11-23 16:37:45 | christian.heimes | link | issue45881 messages |
2021-11-23 16:37:45 | christian.heimes | create | |
|