SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.03k stars 1.23k forks source link

Problem - Compile Python rtd1296-6.1 ̶a̶a̶r̶c̶h̶6̶4̶-̶6̶.̶1̶ #3546

Closed KosakAlmighty closed 5 years ago

KosakAlmighty commented 5 years ago

Hi guys, I tried to compile Python for new architectures, using aarch64 toolchain.

But after couple minutes it ends on this:

===>  Processing dependencies of cffi
make[3]: Entering directory '/spksrc/spksrc/cross/pycparser'
make[3]: Leaving directory '/spksrc/spksrc/cross/pycparser'
make[3]: Entering directory '/spksrc/spksrc/cross/libffi'
===>  Configuring for libffi

<skiped part, some configuration is going here>

checking build system type... i686-pc-linux-gnu
checking host system type... aarch64-unknown-linux-gnueabi
checking target system type... aarch64-unknown-linux-gnueabi
continue configure in default builddir "./aarch64-unknown-linux-gnueabi"
....exec /bin/bash .././configure "--srcdir=.." "--enable-builddir=aarch64-unknown-linux-gnueabi" "linux
gnueabi"
.././configure: line 2356: config.log: Invalid argument
.././configure: line 2366: config.log: Invalid argument
../../mk/spksrc.configure.mk:50: recipe for target 'configure_target' failed
make[3]: *** [configure_target] Error 1
make[3]: Leaving directory '/spksrc/spksrc/cross/libffi'
../../mk/spksrc.depend.mk:44: recipe for target 'depend_target' failed
make[2]: *** [depend_target] Error 2
make[2]: Leaving directory '/spksrc/spksrc/cross/cffi'
../../mk/spksrc.depend.mk:44: recipe for target 'depend_target' failed
make[1]: *** [depend_target] Error 2
make[1]: Leaving directory '/spksrc/spksrc/spk/python'
../../mk/spksrc.spk.mk:452: recipe for target 'arch-aarch64-6.1' failed
make: [arch-aarch64-6.1] Error 2 (ignored)

So the problem is seems to be with libffi, but even after couple hours of digging I wasn't able to find any error.

.././configure: line 2356: config.log: Invalid argument
.././configure: line 2366: config.log: Invalid argument

I took look in configure file for libffi and at these lines is this:

2356 cat >config.log <<_ACEOF
2357 This file contains any messages produced by compilers while
2358 running configure, to aid debugging if configure makes a mistake.
2359
2360 It was created by libffi $as_me 3.2.1, which was
2361 generated by GNU Autoconf 2.69.  Invocation command line was
2362
2363  $ $0 $@
2364
2365 _ACEOF
2366 exec 5>>config.log

So another step was take look in config.log, in whole log file there is any mention of any error.

I'm really newbie in this, so if you could just show me way, where or how to find error why it stopped, I would really appreciate it.

config.log

configure.txt

BenjV commented 5 years ago

Why are you triying to do this? There is a python package for this architecture available. https://packages.synocommunity.com/python/19/python.v19.f4458[apollolake-avoton-braswell-broadwell-broadwellnk-bromolow-cedarview-denverton-dockerx64-grantley-kvmx64-x86-x86_64].spk

KosakAlmighty commented 5 years ago

Well, oh. I see I misunderstand in #3477, that this toolchain is also compatible with armada37xx. In that case I will try different tool chain.

KosakAlmighty commented 5 years ago

Now I used toolchain rtd1296-6.1, because it should be compatible with armada37xx and armada toolchain is only for 6.2.

But I got exactly same issue like in the first post.

retrography commented 5 years ago

@BenjV The precompiled package is not available for aarch64 and rtd1296 anymore. This has broken many other packages for me. I am also struggling with compiling it.

BenjV commented 5 years ago

I know, my mistake I though he was looking for the x64 architecture.

ymartin59 commented 5 years ago

Package no longer builds because of cross-side effects of python3 updates. I am working on full python 2.7 updates and related applications because of vulnerability reports on requests and other modules

ymartin59 commented 5 years ago

But there is a risk all python2 applications have to be updated and published again too

ymartin59 commented 5 years ago

You should find 2.7.14 for both rtd1296 and armada37xx in repository

KosakAlmighty commented 5 years ago

I can confirm that works, thank you sir.