Message271896
Bootstrapping a Linux environment based on musl libc from glibc host requires cross-compilation to the same architecture (for example, configure is --build=i686-pc-linux-gnu --host=i686-pc-linux-musl).
The Python core will build and link fine in this configuration; unfortunately, every module in sharedmods fails to link if the ABI is different, as Lib/distutils/command/build_ext.py:732 uses sys.abiflags and the native Python is used. For example, my distribution ships with no ABI flags (libpython3.4.so), but if I use the default enabled PyMalloc (libpython3.4m.so), I will see:
/usr/libexec/gcc/i686-foxkit-linux-musl/ld: cannot find -lpython3.4
collect2: error: ld returned 1 exit status
during linking of all sharedmods.
As I am relatively unfamiliar with distutils' internals I am quite unsure how to proceed to fix this, but am willing test any patches. For now, I just disable/enable PyMalloc and wide Unicode to match the ABI of the host computer. |
|
Date |
User |
Action |
Args |
2016-08-03 11:33:36 | awilfox | set | recipients:
+ awilfox, loewis, gregory.p.smith, tarek, eric.araujo, rpetrov, kumba, Alex.Willmer |
2016-08-03 11:33:36 | awilfox | set | messageid: <1470224016.46.0.944940065665.issue5404@psf.upfronthosting.co.za> |
2016-08-03 11:33:36 | awilfox | link | issue5404 messages |
2016-08-03 11:33:35 | awilfox | create | |
|