[Python-Dev] Re: python3.10rc2 compilation on android/termux/clang12.0.1 fails

2021-09-17 Thread Adrian Freund
I looked a bit more into this and managed to run python 3.10.0rc2 on android in termux. No additional patches were needed, but the build process isn't straight forward. Some packages don't build on-device and have to be built on a computer. Python is one of them

[Python-Dev] Re: python3.10rc2 compilation on android/termux/clang12.0.1 fails

2021-09-16 Thread Adrian Freund
As you are using termux it might be worth checking out the build arguments and patches termux uses to build their own version of python (Currently 3.9.7): https://github.com/termux/termux-packages/tree/master/packages/python I'm not sure if this will be enough to build python3.10 or if

[Python-Dev] Re: python3.10rc2 compilation on android/termux/clang12.0.1 fails

2021-09-16 Thread Victor Stinner
Hi, On Wed, Sep 15, 2021 at 7:16 PM Sandeep Gupta wrote: > I get following warnings and errors: > Python/pytime.c:398:10: warning: implicit conversion from 'long' to 'double' > changes value from 9223372036854775807 to 9223372036854775808 > [-Wimplicit-const-int-float-conver > sion] >if

[Python-Dev] Re: python3.10rc2 compilation on android/termux/clang12.0.1 fails

2021-09-15 Thread Guido van Rossum
Sounds to me as if the first warning is somewhat legit (you can probably ignore it). The second seems to be a limitation of your platform -- that code is only compiled if HAS_GETRANDOM is set by the configure script, so apparently ./configure determined that it exists, but the compiler thinks it

[Python-Dev] Re: python3.10rc2 compilation on android/termux/clang12.0.1 fails

2021-09-15 Thread Jelle Zijlstra
Did previous versions of Python compile successfully? The RC phase wouldn't be the right time to add support for a new platform. El mié, 15 sept 2021 a las 10:15, Sandeep Gupta () escribió: > I am trying to compile Python3.10rc2 on rather unusual platform (termux on > android). The > gcc version