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


Groups > comp.lang.python > #80274

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!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.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'output': 0.05; 'subject:Question': 0.07; 'arguments': 0.09; 'imply': 0.09; 'seemed': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'thread': 0.14; 'exhaustive': 0.16; 'googling': 0.16; 'silly': 0.16; 'subject:Add': 0.16; 'thread,': 0.16; 'all.': 0.16; 'wrote:': 0.18; "python's": 0.19; 'later': 0.20; 'platforms': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'fairly': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'options': 0.25; 'references': 0.26; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'see,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'getting': 0.31; 'gcc': 0.31; 'info.': 0.31; 'url:python': 0.33; 'implemented': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'turn': 0.37; 'starting': 0.37; 'nov': 0.38; 'skip:- 10': 0.38; 'pm,': 0.38; 'little': 0.38; 'does': 0.39; 'bad': 0.39; 'url:mail': 0.40; 'free': 0.61; 'show': 0.63; 'such': 0.63; 'here': 0.66; 'subject:Build': 0.68; 'article': 0.77; 'url:ml': 0.84; 'same,': 0.91
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=ML+uiwSdhflGh8z86npIEy7/uN5tglGDmNHqJc4XgQM=; b=EEducfxmWcYAG/Y29aRjDaY4VPxuNeLYnOxgNSMUcEnHyHWl3DD0x97EKHaGmwQ2dw 7Qx0O5nfSqq5WDA6N9PVBzfK9qLE2CXmigruTPpKtzlHNCfpWLgO/6JnD3kz7bBOZua2 ZT0FmvKC+xi167QelibuG4IcszpCNUt2II2kFU0wI8HC7xRjVlbYrRghjVLqPFqrFYbX 0I0yS44P5uc8dR/qz63Ae4zTM5YHUdJ+qZwqYBNSISm8h/9gCUXrmiKkiUvmpxDZifrM ltaDhJ+1X7l+olCrMihLkinaHzBTFVU+VOtA4mbASD1mE6+V+tTAAZ8bkomXahiZdqoy Ry2Q==
MIME-Version 1.0
X-Received by 10.182.32.33 with SMTP id f1mr24036138obi.34.1415201027158; Wed, 05 Nov 2014 07:23:47 -0800 (PST)
In-Reply-To <nad-418AEF.13382202112014@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> <CAHu5PrZKv4KmP7T0N0gxYWWp5TQqoGDfak1dCUP7mOWb7TUJAQ@mail.gmail.com> <CAHu5Praf_9rkGYw5yzP4Tqs3DZsx0qM70esUNukNoDCqzTmj2g@mail.gmail.com> <nad-0E2F46.15251201112014@news.gmane.org> <CAHu5PrYQ3xEgtd-7aHzMDBWk32NPRfxZ24DFdM1oJ-wnmyj8jQ@mail.gmail.com> <nad-418AEF.13382202112014@news.gmane.org>
Date Wed, 5 Nov 2014 09:23:47 -0600
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.15500.1415201037.18130.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1415201037 news.xs4all.nl 2957 [2001:888:2000:d::a6]:53835
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80274

Show key headers only | View raw


On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily <nad@acm.org> wrote:
> In article
> <CAHu5PrYQ3xEgtd-7aHzMDBWk32NPRfxZ24DFdM1oJ-wnmyj8jQ@mail.gmail.com>,
>  Cyd Haselton <chaselton@gmail.com> wrote:
>> Just checking: is sincos() the same as sin() and cos()? Nm output for
>> my toolchain's libm does show sin() and cos() just not sincos()
>
> See, this is what you get when you ask for free help: bad info.

Silly me...what was I thinking?

> sincos
> isn't the same, as a little of googling informs me.  But, as the thread
> starting here indicates:
>

I did a fairly exhaustive search for the sincos() error code I was
getting and that link did not turn up for me at all.
Instead I found a reference that seemed to imply that such a macro
should be implemented but it was not implemented
in GCC-4.8.0.

Then again, the link you found doesn't seem to indicate which version
of GCC has this feature...maybe it is versions
later than 4.8.0...


> https://sourceware.org/ml/binutils/2010-04/msg00219.html
>
> gcc can do an optimization that turns a pair of sin() and cos() calls
> with the same arguments into a single call to sincos().  And there is
> such a pair in Python's complexobject.c.  As the thread explains, there
> are some platforms where sin() and cos() are implemented but not
> sincos().  As suggested in the thread, one approach is to give options
> to gcc to avoid the optimizations:
>
>     CFLAGS='-fno-builtin-sin -fno-builtin-cos'
>
> That does seem to result in a libpython with no references to sincos.

Sounds good...I'll try it if bootstrapping 4.9.0 goes south.
>
> --
>  Ned Deily,
>  nad@acm.org
>
> --
> https://mail.python.org/mailman/listinfo/python-list

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-05 09:23 -0600

csiph-web