Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80103

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

Return-Path <chaselton@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'error:': 0.07; 'subject:Question': 0.07; '(instead': 0.09; 'exit': 0.09; 'makefile': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'bug': 0.12; 'already,': 0.16; 'luck!': 0.16; 'possible?': 0.16; 'subject:Add': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; 'trying': 0.19; 'not,': 0.20; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; "haven't": 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'tracker': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'url:code': 0.29; 'returned': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'easier': 0.31; 'figure': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 0.33; 'sources': 0.33; 'could': 0.34; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'building': 0.35; 'doubt': 0.36; 'much.': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'shows': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'searching': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'nov': 0.38; 'issue': 0.38; 'pm,': 0.38; 'that,': 0.38; 'skip:. 10': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'how': 0.40; 'tell': 0.60; 'you.': 0.62; 'url:p': 0.64; 'subject:Build': 0.68; 'system)': 0.69; 'article': 0.77; 'hammer': 0.84; '1:47': 0.91; 'officially': 0.91; 'device.': 0.93; '***': 0.95
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=/roiwvqm53yVcfqAAdcdxWA+q+zt2QdwlqUaxHPxgBE=; b=fY3F2J8a4GnKwjwI4ok9NujXBEPKqD7EYU5t+v5HhH+RCwB88bYbjT/JBY7/r4XH+a QQP4GvT6PaCjvdfhopTCXFopI5ImHAAw93QUicc4TNNtFUsjCD6sQSI/my8hBEl7I2U4 7EGoiYuiGEuMHxt8zpGpyJrRyUmdguzA8IaoZR7rSQ8UiEatYfflk3nyDvfA/ZHfnFpY 6kQaxuzK4LmhsTjeLEeeJ6E6Ce8HJvhihcF7shzytmqHBAFC8Tw/I2vZTVOjTZ6uQ6xD LaNXGCzizW3ejQHh2FJd2zRpLB3bqs4JBRBuML7lIUi3CDH+dLnALXHxM/lMrtwPqgaj BxMA==
MIME-Version 1.0
X-Received by 10.182.58.110 with SMTP id p14mr3925707obq.40.1414873270613; Sat, 01 Nov 2014 13:21:10 -0700 (PDT)
In-Reply-To <CAHu5PrZKv4KmP7T0N0gxYWWp5TQqoGDfak1dCUP7mOWb7TUJAQ@mail.gmail.com>
References <CAHu5PrbHSob2r-zOTCtrYiqdudU_q+4mDXOXzp=_ReJp7khTDg@mail.gmail.com> <nad-150419.13393227102014@news.gmane.org> <CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_N-CNgWsSzGpg@mail.gmail.com> <nad-939726.01114928102014@news.gmane.org> <CAHu5Pra68EDgkvFYHTQ+SrmB6syew9A1SAbB5CEmLuzqbs5vQg@mail.gmail.com> <nad-E45689.14013428102014@news.gmane.org> <CAHu5PrbYMUzfs1AZYzPaN__51h7Q=4D5bfjM2EQOfx90OKxxNQ@mail.gmail.com> <nad-5F56DF.03524401112014@news.gmane.org> <CAHu5PrZKv4KmP7T0N0gxYWWp5TQqoGDfak1dCUP7mOWb7TUJAQ@mail.gmail.com>
Date Sat, 1 Nov 2014 15:21:10 -0500
Subject Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?
From Cyd Haselton <chaselton@gmail.com>
To Ned Deily <nad@acm.org>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15397.1414873273.18130.python-list@python.org> (permalink)
Lines 51
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414873273 news.xs4all.nl 2942 [2001:888:2000:d::a6]:51058
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!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:80103

Show key headers only | View raw


On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton <chaselton@gmail.com> wrote:
> On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily <nad@acm.org> wrote:
>> In article
>> <CAHu5PrbYMUzfs1AZYzPaN__51h7Q=4D5bfjM2EQOfx90OKxxNQ@mail.gmail.com>,
>>  Cyd Haselton <chaselton@gmail.com> wrote:
>>> So, after trying various ways to add that flag before lpython in
>>> setup.py, I stripped all --allow-shlib-undefined
>>> --no-allow-shlib-undefined feom the Makefile, ran make clean, and
>>> make.
>>>
>>> I still get the following error:
>>> Modules/python.o \
>>>                 -lc -ldl -lm  -L. -lpython2.7   -lm
>>> ./libpython2.7.so: undefined reference to `sincos'
>>> collect2: error: ld returned 1 exit status
>>> make: *** [python] Error 1
>>
>> I don't understand why you are seeing that problem *unless" you might be
>> running into this issue that I found by searching for "sincos Android":
>>
>> https://code.google.com/p/android/issues/detail?id=38423
>>
>> That looks awfully suspicious.  If it isn't that, I don't know what to
>> tell you.  You could open an issue on the Python bug tracker
>> (bugs.python.org) but we don't officially support Android so I doubt
>> that will help much.  If you haven't already, you might try asking on
>> some Android forums; I know other oddities of building things on Android
>> have been reported.
>>
>> Good luck!
>>
>> --
>>  Ned Deily,
>>  nad@acm.org
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
> Hammer -> Head -> Nail.
>
> 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.
>
> Nice find!
>
> Cyd

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)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? Cyd Haselton <chaselton@gmail.com> - 2014-11-01 15:21 -0500

csiph-web