From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2124 invoked by alias); 27 Feb 2014 15:00:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 2104 invoked by uid 89); 27 Feb 2014 15:00:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f170.google.com Received: from mail-we0-f170.google.com (HELO mail-we0-f170.google.com) (74.125.82.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 27 Feb 2014 15:00:07 +0000 Received: by mail-we0-f170.google.com with SMTP id w61so841226wes.1 for ; Thu, 27 Feb 2014 07:00:04 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.108.162 with SMTP id hl2mr1922081wjb.84.1393513193945; Thu, 27 Feb 2014 06:59:53 -0800 (PST) Received: by 10.194.154.226 with HTTP; Thu, 27 Feb 2014 06:59:53 -0800 (PST) Date: Thu, 27 Feb 2014 15:00:00 -0000 Message-ID: Subject: "LONG_BIT" Error, When cross compiling for Android From: Zachary Powell To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2014-02/txt/msg00159.txt.bz2 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