Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80005
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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; 'dev': 0.07; 'distutils': 0.07; 'error:': 0.07; 'list?': 0.07; 'modify': 0.07; 'modifying': 0.07; 'subject:Question': 0.07; 'exit': 0.09; 'system;': 0.09; 'undefined': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; '(it': 0.16; 'specifying': 0.16; 'subject:Add': 0.16; 'supplied': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'seems': 0.21; 'appears': 0.22; 'cc:addr:python.org': 0.22; 'this?': 0.23; 'error': 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; 'am,': 0.29; 'unix': 0.29; 'heading': 0.30; 'returned': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'exceptions': 0.31; 'gcc': 0.31; 'libraries': 0.31; 'routine': 0.31; 'file': 0.32; 'there.': 0.32; 'option': 0.32; 'url:python': 0.33; 'running': 0.33; 'sources': 0.33; 'device': 0.34; 'could': 0.34; 'problem': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'building': 0.35; 'version': 0.36; 'really': 0.36; 'found.': 0.36; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'so,': 0.37; 'skip:- 20': 0.37; 'issue': 0.38; 'pm,': 0.38; 'skip:. 10': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'ensure': 0.60; 'even': 0.60; 'skip:u 10': 0.60; 'manually': 0.60; 'mentioned': 0.61; 'linked': 0.65; 'subject:Build': 0.68; 'default': 0.69; 'article': 0.77; 'environment;': 0.84; 'ldflags': 0.84; '***': 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=TcjEZD9Mf06ILmPqlFERNx/Ogvwijobu0XTxAqI56g0=; b=Ga3pKwZ/+eRbb1LW813yyqT038GrfOs+annc8LubmNgyGhkc+buxy80vV0mLWD20le Q/HgJkPq9ZFW/M06Za8puBc3m8U8DrPLQVFcyazhezicoLt7JskeHMUzRqEx2Askz9Bt NZStozuSewhRZosDUTmG9KTPGles9COKPF4DrO7z6+lDcP7eRi2ZA1u7ryHpzfePvU9s 9f8NZy0NP++zoez2GbuRfDIja04cp1JhtvYKNCRX39j2pAJX2Qsi/Sl333w1uWrQ0Mhe Hi+RoMJaOWkesCy699nnSwlTa8Nast0EAXul6UTBdAdiOJXJ6DyCNGs6KsGQ8hnxj/DX 6geA== |
| MIME-Version | 1.0 |
| X-Received | by 10.60.157.100 with SMTP id wl4mr19819123oeb.37.1414753949132; Fri, 31 Oct 2014 04:12: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 | Fri, 31 Oct 2014 06:12:29 -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.15348.1414753957.18130.python-list@python.org> (permalink) |
| Lines | 65 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1414753957 news.xs4all.nl 2960 [2001:888:2000:d::a6]:37741 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80005 |
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? 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. Also, what version of Python are you building?
>
> --
> Ned Deily,
> nad@acm.org
>
> --
> https://mail.python.org/mailman/listinfo/python-list
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
Should I repost this to the dev mailing 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-31 06:12 -0500
csiph-web