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: 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: References: 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 To: Ned Deily Content-Type: text/plain; charset=UTF-8 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily wrote: > In article > , > Cyd Haselton 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