Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'broken': 0.04; 'output': 0.05; 'interpreter.': 0.07; 'subject:Question': 0.07; '(instead': 0.09; 'back.': 0.09; 'makefile': 0.09; 'objects,': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'luck!': 0.16; 'possible?': 0.16; 'subject:Add': 0.16; 'sat,': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; 'hacking': 0.19; 'not,': 0.20; 'help.': 0.21; 'issue.': 0.22; 'tests': 0.22; 'cc:addr:python.org': 0.22; 'planned': 0.24; 'math': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:In-Reply- To:1': 0.27; 'related': 0.29; '(like': 0.30; 'primarily': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'easier': 0.31; 'disable': 0.31; 'gcc': 0.31; 'figure': 0.32; 'url:python': 0.33; 'guess': 0.33; 'sources': 0.33; 'comment': 0.34; 'core': 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'shows': 0.36; 'thanks': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'project': 0.37; 'expected': 0.38; 'nov': 0.38; 'needed': 0.38; 'pm,': 0.38; 'rather': 0.38; 'does': 0.39; 'support,': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'how': 0.40; 'days': 0.60; 'even': 0.60; 'skip:u 10': 0.60; 'then,': 0.60; 'back': 0.62; 'show': 0.63; 'places': 0.64; 'more': 0.64; 'subject:Build': 0.68; 'system)': 0.69; 'article': 0.77; './configure': 0.84; 'android.': 0.84; 'results,': 0.84; 'old,': 0.85; '1:47': 0.91; 'device.': 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=/VbROHxHEerMWZg/ayMu6oQPdLYrDOHxbQFUDdfuLUI=; b=tyu6uZRo9h+i7NRHgGp+w8hOBPSpNnHX8aIOdXP7K7eIugGyjThR2LeoYtRfv2Bdxs F4bwhW0F9NdB7l8ElX/abEfjcclsaxNFZKehL2AT2rrbzkVxZri4pSHGPCfb2HUA3//o jo8vV1EyzGt+ZrOz3CtLHsdYzQf1oqcwBmAICsuFujCAKdRO7sm2OkxbFgspRWQ43VNT VwlUBpfoVhz7dGLRWlrwmNHvSLRFAp50SEavtFL1bKDcf3Iv25WZ91mgrEz0g+2/m4vE dUE0t6nim26M2QlXjimaOh+WaFNHMRzdniFB5J8+SbAhbsthnVgUtJAepNAVKN65Gs8A 86zg== MIME-Version: 1.0 X-Received: by 10.182.231.135 with SMTP id tg7mr31693654obc.2.1414933347740; Sun, 02 Nov 2014 05:02:27 -0800 (PST) In-Reply-To: References: Date: Sun, 2 Nov 2014 07:02:27 -0600 Subject: Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? From: Cyd Haselton To: Ned Deily Content-Type: text/plain; charset=UTF-8 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: 59 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414933358 news.xs4all.nl 2834 [2001:888:2000:d::a6]:50391 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:80118 On Sat, Nov 1, 2014 at 5:25 PM, Ned Deily wrote: > In article > , > Cyd Haselton wrote: >> On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton wrote: > [...] >> > Sure enough, nm -D libm.so shows that sincos is NOT available in that >> > library on my Android device. Now to figure out what to do about it. > [...] >> UPDATE: After doing a bit of research it looks like it would be >> easier to build Python without sincos...is that possible? >> If not, I'll need to figure out how to get bionic libm sources with a >> proper Makefile (instead of Android's build system) > > While sin() and/or cos() are primarily used in the expected places in > the Python standard library (like the math module), sin() is also used > in the implementation of type "complex" objects, code that is part of > the core interpreter. Just checking: is sincos() the same as sin() and cos()? Nm output for my toolchain's libm does show sin() and cos() just not sincos() > I see that there is an old, undocumented, and > unsupported macro to disable building of complex number support. But > more hacking is needed to even get a somewhat working build with it > these days and then, without complex support, many tests in the standard > library fail and what you end up isn't really Python. So, I think > rather than hacking up Python, you should try to fix the broken > platform. There seem to be a number of project that claim to support > Python on Android. Perhaps they could be of help. > *sigh* Well, I had planned on bootstrapping GCC 4.9.0...I guess I'll be doing it sooner rather than later. Interestingly enough, the toolchain sources at android.googlesource.com only have Python 2.7.5...perhaps the reason is related to this issue. If GCC supports building Python in the source tree, I'll try it with that version and report back. > FWIW, the macro is "WITHOUT_COMPLEX": > > ./configure [...] CPPFLAGS='-DWITHOUT_COMPLEX' > > and Lib/optparse.py would need to be patched to comment out its use of > "complex". > > Again, good luck! > And thanks again for all your help. I'll report back with results, if and when I have them. > -- > Ned Deily, > nad@acm.org > > -- > https://mail.python.org/mailman/listinfo/python-list