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


Groups > comp.lang.python > #80084

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

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'error:': 0.07; 'subject:Question': 0.07; 'exit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'python': 0.11; 'bug': 0.12; 'already,': 0.16; 'luck!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Add': 0.16; 'url:detail': 0.16; 'url:issues': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; "haven't": 0.24; 'looks': 0.24; 'tracker': 0.26; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'url:code': 0.29; 'returned': 0.30; 'open': 0.33; 'running': 0.33; 'could': 0.34; 'problem': 0.35; 'but': 0.35; 'add': 0.35; 'building': 0.35; 'doubt': 0.36; 'much.': 0.36; 'charset:us-ascii': 0.36; 'subject:?': 0.36; 'searching': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'to:addr:python-list': 0.38; 'issue': 0.38; 'that,': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'tell': 0.60; 'you.': 0.62; 'url:p': 0.64; 'subject:Build': 0.68; 'received:204': 0.75; 'article': 0.77; 'received:204.14': 0.84; 'officially': 0.91; '***': 0.95
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?
Date Sat, 01 Nov 2014 03:52:44 -0700
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>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 204.14.154.216
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
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.15388.1414839182.18130.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414839182 news.xs4all.nl 2940 [2001:888:2000:d::a6]:58095
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80084

Show key headers only | View raw


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

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? Ned Deily <nad@acm.org> - 2014-11-01 03:52 -0700

csiph-web