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 xdegaye
Recipients Alex.Willmer, doko, ned.deily, python-dev, vstinner, xdegaye, yan12125, zach.ware
Date 2016-09-10.18:12:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
With the attached patch, the python test suite runs smoothly on android and without errors on linux. On android, there are two new failed test cases in test_sysconfig that I will look into later (in the frame of this issue, I guess ?), but otherwise about the same tests fail that were failing before.

Here are some details about the fix:

> Another problem is that the shared libraries names of the extension modules are now suffixed with the wrong triplet.

This is because _init_posix() in Lib/distutils/ still imports the native python sysconfigdata module instead of the newly built one for the target host.

After _init_posix() is fixed, another problem occurs: extension modules are now built by including /usr/include from the native system and this leads to some unresolved dlopen references at run time on android. The reason is that add_gcc_paths() in calls sysconfig.get_config_var('CC') and this returns the native compiler instead of the cross-compiler.

So a solution is to set the _SYSCONFIGDATA_NAME environment variable in PYTHON_FOR_BUILD.
Date User Action Args
2016-09-10 18:12:37xdegayesetrecipients: + xdegaye, doko, vstinner, ned.deily, python-dev, zach.ware, Alex.Willmer, yan12125
2016-09-10 18:12:37xdegayesetmessageid: <>
2016-09-10 18:12:37xdegayelinkissue28046 messages
2016-09-10 18:12:37xdegayecreate