Message275664
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/sysconfig.py 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 setup.py 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:37 | xdegaye | set | recipients:
+ xdegaye, doko, vstinner, ned.deily, python-dev, zach.ware, Alex.Willmer, yan12125 |
2016-09-10 18:12:37 | xdegaye | set | messageid: <1473531157.39.0.158628130803.issue28046@psf.upfronthosting.co.za> |
2016-09-10 18:12:37 | xdegaye | link | issue28046 messages |
2016-09-10 18:12:37 | xdegaye | create | |
|