I'm trying, on Debian 9.4 x64, to compiling static Python 3.6.5 binary for Android (so arm32, arm64, ...).
I'm not sure of which library using to build Python 3.6.5 for arm and mips processors, for now i use "binutils-gold-2.29.1-16.1.armv7hl.rpm", but if another rpm is better for this usage please tel me wich one take.
- I tried to compile the binary with this following command:
./configure --build=arm --prefix="$PWD"/out LDFLAGS="-static -static-libgcc -Wl,--unresolved-symbols=ignore-all -Wl,--export-dynamic" CPPFLAGS=-static CXXFLAGS=-static CFLAGS="-Os -static" LDFLAGS=-static LD=ld.gold
- EDIT: And by typing this one:
make clean; make install
- And i get this error:
FIG_H -DUSE_PYEXPAT_CAPI -c ./Modules/expat/xmlparse.c -o Modules/xmlparse.o
./Modules/expat/xmlparse.c:92:3: error: #error You do not have support for any sources of high quality entropy enabled.
.Makefile:1874 : the recipe for the target « Modules/xmlparse.o » as failed
make: *** [Modules/xmlparse.o] Erreur 1
I'm trying to find how i could fix this error, but unfortunatly the support webpage on Python website isn't very helpfull (https://wiki.python.org/moin/BuildStatically).
Finally, I would like to compile Python 3.6.5 for all processor platforms on which Android can run (arm32, aarm64, x86_x64, mips, mipsx64,...), to finally get a one single binary file (i will repeat tasks for all other archs when i will have done with arm32).
So one file for each architectures cited, not multiple files/folders in output. In a static way to avoid any dependencies with external libraries. I chose to carry out the build operations, but if other less hazardous and simpler solutions exist i am taker.
NB: all cmd line has been made through LXTerminal on root session by default.
Thanks by advance for help.