public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* "LONG_BIT" Error, When cross compiling for Android
@ 2014-02-27 15:00 Zachary Powell
  0 siblings, 0 replies; only message in thread
From: Zachary Powell @ 2014-02-27 15:00 UTC (permalink / raw)
  To: gcc-help

Hello,
I am attempting to compile Python along with the modules "openssl pil
zope2" for Android using the "Python-for-android" project
(https://github.com/kivy/python-for-android).
However it is not successful and errors out with the below error:

Getting distribution for 'zope.security==3.7.4'.
In file included from
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/Python.h:58:0,
                 from src/zope/security/_proxy.c:19:
/home/zac/Documents/Projects/Apps/python-for-android/build/hostpython/Python-2.7.2/Include/pyport.h:849:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
  ^
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]
   Py_INCREF(&SecurityProxyType);
   ^
error: Setup script exited with error: command
'arm-linux-androideabi-gcc' failed with exit status 1
An error occurred when trying to install zope.security 3.7.4. Look
above this message for any errors that were output by easy_install.
While:
  Installing test.
  Getting distribution for 'zope.security==3.7.4'.
Error: Couldn't install: zope.security 3.7.4

I have set up a bug report for this on the projects git hub
(https://github.com/kivy/python-for-android/issues/190) however it
does seem to be directly an issue with the Android GCC so thought best
to contact you in the hope of help.

I have tested compiling zope.security on an ARM device with the
standard ARM gcc and this works fine so it certainly seems to be a
bug/issue with the Android version.

Please if you need any more information etc do let me know!

Thank you

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-02-27 15:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 15:00 "LONG_BIT" Error, When cross compiling for Android Zachary Powell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).