Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '21,': 0.07; "'no": 0.09; '22,': 0.09; 'makefile': 0.09; 'prevents': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'appreciated!': 0.16; 'commented': 0.16; 'importerror,': 0.16; 'minus': 0.16; 'subject:Problem': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'command': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'environment': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'references': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'raise': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'breaking': 0.31; 'gcc': 0.31; 'option.': 0.31; 'produces': 0.31; 'allows': 0.31; 'file': 0.32; 'thanks!': 0.32; 'skip:- 30': 0.32; 'url:python': 0.33; 'running': 0.33; 'are:': 0.33; 'device': 0.34; 'could': 0.34; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'passwords': 0.36; 'url:listinfo': 0.36; 'next': 0.36; 'url:org': 0.36; 'should': 0.36; 'skip:- 20': 0.37; 'two': 0.37; 'list': 0.37; 'configured': 0.38; 'skip:- 10': 0.38; 'pm,': 0.38; 'help,': 0.39; 'url:mail': 0.40; 'results.': 0.60; 'skip:l 50': 0.60; 'first': 0.61; 'to:addr:gmail.com': 0.65; 'subject:Build': 0.68; 'to,': 0.72; '../configure': 0.84; 'python-dev': 0.84; 'device,': 0.91; 'subject:Android': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HKiSOr3QIPyo5WBucM+i/gysYw8XWN66gDdjFWDlaO4=; b=b5nzJxhElM3/0h8buZ1uc0w07oau8KvhdZWazZ1Ovw7ZL6dNGr+r2Vh/tC/kxgpD0v pyX481X72lhqvLIsZeUKaPNpayVEDn1poMGG+fMyHqnkUA4C/4w9DAwRegOHHUvv2T/+ 5P/Cc1WYiN1GFALBmA0rI5O1MMCDWL92pew9F+olj6SSRCo5oREI2MirXLwhJ+7Fvqz2 pRIuPbUHEy915PXLjepOt7z4x32gGoNJUR+ceyj1K4EY+hptfcftj5vTfa6AvgBk3TRR n+p96o32iMVCHPgn3VDMIOIJ+T25VrfT4iBSdTnCmftCu04XjmIKq08v7l+luv7l9wYR q9cg== MIME-Version: 1.0 X-Received: by 10.182.98.199 with SMTP id ek7mr30554257obb.1.1413915178214; Tue, 21 Oct 2014 11:12:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Oct 2014 13:12:58 -0500 Subject: Re: Problem with Android Build From: Cyd Haselton To: Chris Angelico Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Tue, 21 Oct 2014 20:26:33 +0200 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413915994 news.xs4all.nl 2973 [2001:888:2000:d::a6]:50303 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:79395 On Tue, Oct 21, 2014 at 12:36 PM, Chris Angelico wrote: > On Wed, Oct 22, 2014 at 2:32 AM, Cyd Haselton wrote: >> Hello, >> If I have a problem with building Python on an Android device, would >> this be the list to post it to, or should I post it to python-help or >> python-dev? > > Hi! > > Start here. If we can't help, python-dev might be the next place to > ask, but this is the best first option. > > ChrisA > -- > https://mail.python.org/mailman/listinfo/python-list Thanks! I'm building Python v2.7.8 on my Android device in a fakechroot environment with GCC 4.8.0 and make fails with the following error Could not import runpy module Running the Makefile command (minus the LD_LIBRARY_PATH prepend) produces the same error, but running the same command minus the -S returns a File "..Lib/os.py", line 117, in raise ImportError, 'no os specific module found' I've configured with ./configure --prefix=/usr/python --build=arm-linux-androideabi --host=arm-linux-androideabi --target=arm-linux-androideabi --enable-shared and ./configure --prefix=/usr/python with the same results. The two post-configure makefile edits I've added are: LDFLAGS= -Wl,--allow-shlib-undefined which allows make to continue past an 'undefined reference to sincos' and RUNSHARED= LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/Python/src which prevents the fakechroot environment from breaking I've also commented out the initpwd references in config.c...as Android doesn't do passwords per se. Any help would be appreciated!