Watch This Now!

[Q] Cross compiling Python module using Android gcc Long bit error

2,890 posts
Thanks Meter: 1,797
Post Reply Subscribe to Thread Email Thread
I am attempting to compile Python along with the modules "openssl pil zope2" for Android using the "Python-for-android" project (

However it is not successful and errors out with the below error:

Getting distribution for ''.
In file included from
                 from src/zope/security/_proxy.c:19:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
src/zope/security/_proxy.c: In function 'init_proxy':
src/zope/security/_proxy.c:1006:3: warning: dereferencing type-punned
pointer will break strict-aliasing rules [-Wstrict-aliasing]
error: Setup script exited with error: command
'arm-linux-androideabi-gcc' failed with exit status 1
An error occurred when trying to install 3.7.4. Look
above this message for any errors that were output by easy_install.
  Installing test.
  Getting distribution for ''.
Error: Couldn't install: 3.7.4
What I am wondering is if anyone else has ever had a similar issue when trying to use the Android gcc, I have build just fine using the ARM gcc so it is not a platform issue but some bug/issue with the provided Android gcc in the NDK
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes