Author Rouslan Korneychuk
Recipients Alex.Willmer, Rouslan Korneychuk, doko, xdegaye, yan12125, zach.ware
Date 2016-09-25.08:07:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:

~/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

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).
Date User Action Args
2016-09-25 08:07:49Rouslan Korneychuksetrecipients: + Rouslan Korneychuk, doko, xdegaye, zach.ware, Alex.Willmer, yan12125
2016-09-25 08:07:49Rouslan Korneychuksetmessageid: <>
2016-09-25 08:07:49Rouslan Korneychuklinkissue28266 messages
2016-09-25 08:07:48Rouslan Korneychukcreate