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?

References (8 earlier) <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 2014-11-05 09:23 -0600
Subject Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?
From Cyd Haselton <chaselton@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.15500.1415201037.18130.python-list@python.org> (permalink)

Show all headers | 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