Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79913
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'distutils': 0.07; 'modify': 0.07; 'modifying': 0.07; 'subject:Question': 0.07; '#include': 0.09; 'makefile': 0.09; 'setup.py': 0.09; 'system;': 0.09; 'throws': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'python': 0.11; '(it': 0.16; 'entirely.': 0.16; 'grep': 0.16; 'hits': 0.16; 'specifying': 0.16; 'subject:Add': 0.16; 'supplied': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'hacking': 0.19; 'seems': 0.21; 'appears': 0.22; 'to:name :python-list@python.org': 0.22; 'this?': 0.23; 'sorry,': 0.24; 'specify': 0.24; 'unix/linux': 0.24; 'earlier': 0.24; 'versions': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'extension': 0.26; 'references': 0.26; 'asking': 0.27; 'header:In- Reply-To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'unix': 0.29; 'heading': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'easier': 0.31; 'exceptions': 0.31; 'gcc': 0.31; 'libraries': 0.31; 'routine': 0.31; 'allows': 0.31; 'file': 0.32; 'there.': 0.32; 'option': 0.32; 'skip:- 30': 0.32; 'url:python': 0.33; 'running': 0.33; 'sources': 0.33; 'device': 0.34; 'could': 0.34; 'problem': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'building': 0.35; 'version': 0.36; 'really': 0.36; 'found.': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'error.': 0.37; 'so,': 0.37; 'skip:- 20': 0.37; 'to:addr:python- list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'ensure': 0.60; 'even': 0.60; 'skip:u 10': 0.60; 'is.': 0.60; 'manually': 0.60; 'mentioned': 0.61; 'linked': 0.65; 'yes': 0.68; 'subject:Build': 0.68; 'default': 0.69; 'article': 0.77; 'environment;': 0.84; 'ldflags': 0.84 |
| 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=TI8AsQMl7hjXqIBlXMuEYvmmSIJVqEFBokLvSqRAUqM=; b=IfMgGJs5AC67mmqiNUMiBhXVnvNBCBfJ2pW5tJibpAtPKfxtHOWqhgX9Ej4+T4uIo2 59S3r4CtbA+UOBfbrx8V/ke3o7gWJiIwJUoW6fUQpMF+O9BBulUKUVyfMTLavsKTMRsP AFhNLBn5p3quH4fdOME2czbW2ezy326t58ZizfZqX2xDSJtkc+bYAYlFPptyxt4WsuNQ ksOuTEVrP+TmTdMJLmi0ZnUjrnqMmZ78OKXW4FqgD/v2Cf+hSs5UauigoEA2VBHyUxV9 U0Q4J2w08JeF7nLOEekj7LOfRM7de/d/HahonzWvYxoksB5ajZBKkbJb/isGslQHrcOo reAA== |
| MIME-Version | 1.0 |
| X-Received | by 10.202.62.10 with SMTP id l10mr8473340oia.18.1414591349262; Wed, 29 Oct 2014 07:02:29 -0700 (PDT) |
| In-Reply-To | <nad-E45689.14013428102014@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> |
| Date | Wed, 29 Oct 2014 09:02:29 -0500 |
| Subject | Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? |
| From | Cyd Haselton <chaselton@gmail.com> |
| To | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | Ned Deily <nad@acm.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.15299.1414591357.18130.python-list@python.org> (permalink) |
| Lines | 75 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1414591357 news.xs4all.nl 2920 [2001:888:2000:d::a6]:49572 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:79913 |
Show key headers only | View raw
On Tue, Oct 28, 2014 at 4:01 PM, Ned Deily <nad@acm.org> wrote: > In article > <CAHu5Pra68EDgkvFYHTQ+SrmB6syew9A1SAbB5CEmLuzqbs5vQg@mail.gmail.com>, > Cyd Haselton <chaselton@gmail.com> wrote: > >> On Tue, Oct 28, 2014 at 3:11 AM, Ned Deily <nad@acm.org> wrote: >> > In article >> > <CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_N-CNgWsSzGpg@mail.gmail.com>, >> > Cyd Haselton <chaselton@gmail.com> wrote: >> > [...] >> >> I'm building python on an Android device in the KBOX >> >> environment...which simulates a Unix type filesystem. >> >> Python isn't installed; I'm building from sources (2.7.8) with GCC >> >> 4.8.0 and make. >> >> >> >> The problem with the LDFLAGS approach is that some of the libraries >> >> that must be linked (-lc -ldl) do not need the --allow-shlib-undefined >> >> option...it's only the lpython2.7 that does. Any way to do this? >> > >> > Sorry, I have no experience with that environment nor an understanding >> > of why you need to specify --allow-shlib-undefined (it seems to be the >> > default in some versions of ld). You could look at and, if necessary, >> > modify Lib/distutils, the part of the Python standard library that >> > builds extension modules from setup.py. > >> No need to apologize. Also no need to have an understanding of the >> environment; with a few rare exceptions it behaves just like a >> Unix/Linux one. >> >> The reason why I need to specify --allow-shlib-undefined is for the >> python library; it's throwing undefined references to sincos even >> though the symbol is there. Specifying that option is the only fix >> I've found. >> >> As mentioned earlier, i'm not familiar with python or its build >> system; which file in the distutils dir do I need to modify? > > Perhaps I should apologize for not asking earlier what you are really > trying to do before suggesting heading down the path of modifying > Distutils :) So the issue is with an undefined reference to sincos? It > appears that that routine is often supplied in libm. Is that the case > on your platform? Yes it is. > And, if so, the right fix might be to supply it > manually or, better, ensure that Python supplies it as a result of > running ./configure. If the Makefile generated is a result of running ./configure, then Python is indeed finding the library...what it is doing with it after finding it may be something else entirely. I've tried everything from adding the -Wl,--no-allow-shlib-undefined option to adding #include <math.h> to the complexobject.c code...I still get an undefined reference to sincos. Running grep "sincos" libpython2.7.* turns up the offending symbol (function? declaration?) but re-running "make" after that still throws the same error. The only fix I've found is adding the -Wl,--allow-shlib-undefined before the python library...which I do by hacking the Makefile. That allows the build to continue, which it does until it hits the part where setup.py is run. > Also, what version of Python are you building? 2.7.8. I thought that it would be easier to build it on Android > > -- > Ned Deily, > nad@acm.org > > -- > https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? Cyd Haselton <chaselton@gmail.com> - 2014-10-29 09:02 -0500
csiph-web