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


Groups > comp.lang.python > #80100

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

References (3 earlier) <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>
Date 2014-11-01 13:47 -0500
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.15395.1414867645.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Nov 1, 2014 at 5:52 AM, Ned Deily <nad@acm.org> wrote:
> In article
> <CAHu5PrbYMUzfs1AZYzPaN__51h7Q=4D5bfjM2EQOfx90OKxxNQ@mail.gmail.com>,
>  Cyd Haselton <chaselton@gmail.com> wrote:
>> 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
>
> I don't understand why you are seeing that problem *unless" you might be
> running into this issue that I found by searching for "sincos Android":
>
> https://code.google.com/p/android/issues/detail?id=38423
>
> That looks awfully suspicious.  If it isn't that, I don't know what to
> tell you.  You could open an issue on the Python bug tracker
> (bugs.python.org) but we don't officially support Android so I doubt
> that will help much.  If you haven't already, you might try asking on
> some Android forums; I know other oddities of building things on Android
> have been reported.
>
> Good luck!
>
> --
>  Ned Deily,
>  nad@acm.org
>
> --
> https://mail.python.org/mailman/listinfo/python-list

Hammer -> Head -> Nail.

Sure enough, nm -D libm.so shows that sincos is NOT available in that
library on my Android device. Now to figure out what to do about it.

Nice find!

Cyd

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-01 13:47 -0500

csiph-web