Rouslan Korneychuk added the comment: I just tried compiling 3.6 unmodified for Android and it failed when trying to build libffi. The error message included these two lines:
configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. so 3.6b1 is still missing something. As for sharing my build script, I'm not sure what you are referring to. I just ran: TOOLKIT_BASE=/home/rouslan/bin/android21-arm-toolchain TOOLKIT_BIN=$TOOLKIT_BASE/bin/arm-linux-androideabi ~/build/Python-test-3.6.0b1/configure \ --build=x86_64-unknown-linux-gnu --host=arm-linux \ --enable-ipv6 \ CC="$TOOLKIT_BIN-gcc --sysroot=$TOOLKIT_BASE/sysroot -pthread" \ CXX="$TOOLKIT_BIN-g++ --sysroot=$TOOLKIT_BASE/sysroot -pthread" \ AR=$TOOLKIT_BIN-ar \ RANLIB=$TOOLKIT_BIN-ranlib \ READELF=$TOOLKIT_BIN-readelf \ CFLAGS="-fPIC -mthumb -march=armv7-a -mfloat-abi=softfp -mfpu=neon -DNDEBUG" \ LDFLAGS="-fPIC -march=armv7-a -Wl,--fix-cortex-a8" \ PYTHON_FOR_BUILD=~/build/python-test/python \ ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=yes ac_cv_little_endian_double=yes make I don't know if all of that is even necessary. This is what was needed to build 3.5.0 (version 3.5.0 also required a number of additional changes to compile). There is also a build script I use for my project that incorporates Python, which has additional changes, such as the ability to run from an apk (android package) file, but it's a SCons file and does a whole lot more than just build Python (which it does by running configure and make, anyway). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28266> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com