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 puchenyaka
Recipients Benedikt.Morbach, doko, ncoghlan, puchenyaka, rpetrov, thomas-petazzoni
Date 2020-01-21.10:10:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579601444.71.0.0538330923684.issue22724@roundup.psfhosted.org>
In-reply-to
Content
I've made a quick test of all patches provided. All patches have failed to fix it. The problem is more heavy than it looks like.

Please look at the following code:

PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '${EPYTHON_FOR_BUILD:-${interp}}

It means that we will use "interp" to load cross compiled modules, env, etc from "_PYTHON_PROJECT_BASE". This code is broken by design. Loading of cross compiled modules, env, etc is not possible in general. For example you have different libc: glibc, musl, uclibc.

glibc -> cross compile -> glibc = loads fine.
musl -> cross compile -> musl = loads fine.
uclibc -> cross compile -> uclibc = loads fine.

glibc -> cross compile -> musl = failed to load.
glibc -> cross compile -> uclibc = failed to load.
musl -> cross compile -> glibc = failed to load.
musl -> cross compile -> uclibc = failed to load.
uclibc -> cross compile -> glibc = failed to load.
uclibc -> cross compile -> musl = failed to load.

Cross compilation doesn't mean only another arch, it means different libc, kernel headers, binutils and compiler. You will receive same issue while using clang toolchains.

Please assign this issue to python core developers. This issue can't be fixed by regular users without experience in python development. It requires complete change of cross compilation design.
History
Date User Action Args
2020-01-21 10:10:44puchenyakasetrecipients: + puchenyaka, doko, ncoghlan, rpetrov, Benedikt.Morbach, thomas-petazzoni
2020-01-21 10:10:44puchenyakasetmessageid: <1579601444.71.0.0538330923684.issue22724@roundup.psfhosted.org>
2020-01-21 10:10:44puchenyakalinkissue22724 messages
2020-01-21 10:10:44puchenyakacreate