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


Groups > comp.lang.python > #80100

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chaselton@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'error:': 0.07; 'subject:Question': 0.07; 'exit': 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; 'subject:Add': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; '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; 'figure': 0.32; 'open': 0.33; 'url:python': 0.33; 'running': 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; 'shows': 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; 'that,': 0.38; 'skip:. 10': 0.39; 'sure': 0.39; 'url:mail': 0.40; 'tell': 0.60; 'you.': 0.62; 'url:p': 0.64; 'subject:Build': 0.68; 'article': 0.77; 'hammer': 0.84; '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=5rIv44JbrWq7TjXpyI4Sq6bGKO0dYKQEySpvznDsQkc=; b=DUrKT7fLV67y2wowWYrKzX4YTXdueuSg0s+1sUiFO6i53e8RMr0Co/3ljIYJVe7+su /pqLeuCi7UqVDdVhTUBZI5wb94PbNSGq+iTHCXrRuY8qD39UlxYmAXNQSQG+5azX/Oz+ WplD+T5q5dQ4ulYajJW+JNFHkq1/sxfNwPFe49Y0czW1yVhg2EvtHWtRkIr4hnBWYJhl v1v6AKAcCewnS8MiwqpXdRDdbb7lYhwk9kn9QiqdT9VwWxIk8hFTHTKJDn0hX3j8lW9v opJ8lVsi/WyiH1zvZVh5/9eOJYM+1PdIEWTIAylSKRyVWbw2EkPuNHyTh8JLsUQXQ19S HHKg==
MIME-Version 1.0
X-Received by 10.60.76.130 with SMTP id k2mr1102209oew.74.1414867636838; Sat, 01 Nov 2014 11:47:16 -0700 (PDT)
In-Reply-To <nad-5F56DF.03524401112014@news.gmane.org>
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>
Date Sat, 1 Nov 2014 13:47:16 -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.15395.1414867645.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414867645 news.xs4all.nl 2977 [2001:888:2000:d::a6]:38143
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80100

Show key headers only | View raw


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

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 13:47 -0500

csiph-web