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.

Title: add_multiarch_paths breaks cross compilation to Emscripten
Type: compile error Stage:
Components: Build Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, ethan smith
Priority: normal Keywords: patch

Created on 2021-11-30 17:07 by ethan smith, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 29868 closed ethan smith, 2021-11-30 17:16
Messages (5)
msg407387 - (view) Author: Ethan Smith (ethan smith) * Date: 2021-11-30 17:07
When I cross compile on an Ubuntu system, the "PyBuildExt.add_multiarch_paths" method seems to add system includes, even when cross compiling for Emscripten.

Adding the system includes breaks Emscripten and causes several extensions to fail to build.

I have a patch which fixes this that I will be submitting shortly to Github.
msg407388 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-30 17:25
Could you please try again with latest master? GH-29752 should have fixed the issue.
msg407389 - (view) Author: Ethan Smith (ethan smith) * Date: 2021-11-30 17:35
Bah, it actually seems the real issue is that my configure is choosing the host_cpu as x86-64 for some reason. I'm still trying to figure out why though.
msg407390 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-11-30 17:40
rm config.cache?
msg407391 - (view) Author: Ethan Smith (ethan smith) * Date: 2021-11-30 17:49
Unfortunately, I am using latest master :/

I was able to reproduce this issue in your wasm docker container mounting CPython master into it, if you want to play with this.
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90098
2021-11-30 17:49:56ethan smithsetmessages: + msg407391
2021-11-30 17:40:24christian.heimessetmessages: + msg407390
2021-11-30 17:35:26ethan smithsetmessages: + msg407389
2021-11-30 17:25:40christian.heimessetmessages: + msg407388
stage: patch review ->
2021-11-30 17:16:30ethan smithsetkeywords: + patch
stage: patch review
pull_requests: + pull_request28094
2021-11-30 17:07:07ethan smithcreate