host-python-2.7.16 fails to build on aarch64, luajit fails for soft float
Hello,
Trying to build an MIPS system on debian/sid/aarch64 machine fails to build python2 for the host. It seems the current used python has a bundled version of libffi, which doesn't yet support aarch64.
A temporary solution is to hardcopy libffi-3.3-rc0 into python source tree:
output/build/host-python-2.7.16/Modules/_ctypes/libffi
Alse luajit for the target fails to build for MIPS -msoft-float. This seems to be fixed in 2.1.0-beta3.
Hello Petr,
Thanks for your bug report. See below for some comments. Adding Fran?ois Perrad in Cc about the LuaJIT bump.
Quoted 5 lines · On Fri, 28 Jun 2019 19:07:40 +0200 Petr Cvek <[email protected]> wrote:
Trying to build an MIPS system on debian/sid/aarch64 machine fails to build python2 for the host. It seems the current used python has a bundled version of libffi, which doesn't yet support aarch64.
A temporary solution is to hardcopy libffi-3.3-rc0 into python source tree:
output/build/host-python-2.7.16/Modules/_ctypes/libffi
For the target python, we're building libffi separately. I guess we should do the same for host-python, i.e use host-libffi instead of the bundled libffi.
Could you have a look at implementing this ?
Quoted 1 line
Alse luajit for the target fails to build for MIPS -msoft-float. This seems to be fixed in 2.1.0-beta3.
There is a patch at http://patchwork.ozlabs.org/patch/1095710/ that bumps to 2.1.0-beta3, but only for AArch64. I'm not sure what we should do about this.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com