Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-19 Thread Robert Kern
On Thu, Nov 19, 2009 at 01:43, David Cournapeau wrote: > Robert Kern wrote: > >>  One can have a proprietary application statically linked >> with an LGPL library. The only detail there is that, in order to >> satisfy the "user must be able to relink the application with a >> modified Library" req

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-19 Thread David Cournapeau
Robert Kern wrote: > One can have a proprietary application statically linked > with an LGPL library. The only detail there is that, in order to > satisfy the "user must be able to relink the application with a > modified Library" requirement, the distributor must provide object > files for his p

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-18 Thread Robert Kern
On Wed, Nov 18, 2009 at 23:39, David Cournapeau wrote: > Robert Kern wrote: >> On Wed, Nov 18, 2009 at 22:52, David Cournapeau >> wrote: >> >>> René Dudfield wrote: >>> pygame is also LGPL... as are a number of other libraries.  (pyqt is GPL btw). LGPL basically means you can

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-18 Thread David Cournapeau
Robert Kern wrote: > On Wed, Nov 18, 2009 at 22:52, David Cournapeau > wrote: > >> René Dudfield wrote: >> >>> pygame is also LGPL... as are a number of other libraries. (pyqt is GPL >>> btw). >>> >>> LGPL basically means you can link to the library source, but if you >>> make changes to

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-18 Thread Robert Kern
On Wed, Nov 18, 2009 at 22:52, David Cournapeau wrote: > René Dudfield wrote: >> pygame is also LGPL... as are a number of other libraries.  (pyqt is GPL >> btw). >> >> LGPL basically means you can link to the library source, but if you >> make changes to the library you should give them back.  U

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-18 Thread David Cournapeau
René Dudfield wrote: > pygame is also LGPL... as are a number of other libraries. (pyqt is GPL btw). > > LGPL basically means you can link to the library source, but if you > make changes to the library you should give them back. Users should > also be able to change the library if they want... e

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-18 Thread René Dudfield
On Fri, Nov 6, 2009 at 7:46 PM, David Cournapeau wrote: > On Sat, Nov 7, 2009 at 3:41 AM, David Cournapeau wrote: > >> I don't think LGPL has much meaning for >> python code, especially pure python code (and m4 for that matter) > > This is funny - besides pyqt, the only LGPL reference with python

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-13 Thread Michael Droettboom
On 11/12/2009 05:56 PM, David Cournapeau wrote: > On Thu, Nov 12, 2009 at 11:34 PM, Michael Droettboom wrote: > >> I'm happy to make these changes, since I've got access to the "finicky" >> platform, but want to confirm how you would prefer it done first. >> > Cool. The changes should be

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-12 Thread David Cournapeau
On Thu, Nov 12, 2009 at 11:34 PM, Michael Droettboom wrote: > The new macros contain non-constant initializers for a type declared > constant. > >    const union IEEEl2bitsrep u = {x}; > > AFAIK, ANSI dictates that the initializer must be a literal or another > constant variable.  We could declare

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-12 Thread Michael Droettboom
The new macros contain non-constant initializers for a type declared constant. const union IEEEl2bitsrep u = {x}; AFAIK, ANSI dictates that the initializer must be a literal or another constant variable. We could declare 'x' as constant in the function signature, but it actually does get

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-12 Thread David Cournapeau
On Thu, Nov 12, 2009 at 12:45 AM, David Cournapeau wrote: > > I will implement this, but I would prefer using this method everywhere > for every compiler, it would be more robust. Done for r7727. I have not tested it much (I have only checked that the bit twiddling macros to get sign/exp/mantiss

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-11 Thread David Cournapeau
On Thu, Nov 12, 2009 at 12:33 AM, Michael Droettboom wrote: > Thanks.  Behind that, however, it runs into this compiler shortcoming: > > cc: build/src.solaris-2.8-sun4u-2.5/numpy/core/src/npymath/npy_math.c > "numpy/core/src/npymath/npy_math_private.h", line 229: invalid type for > bit-field: man

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-11 Thread Michael Droettboom
Forgot to attach the patch. Mike Michael Droettboom wrote: Thanks. Behind that, however, it runs into this compiler shortcoming: cc: build/src.solaris-2.8-sun4u-2.5/numpy/core/src/npymath/npy_math.c "numpy/core/src/npymath/npy_math_private.h", line 229: invalid type for bit-field: manh "nump

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-11 Thread Michael Droettboom
Thanks. Behind that, however, it runs into this compiler shortcoming: cc: build/src.solaris-2.8-sun4u-2.5/numpy/core/src/npymath/npy_math.c "numpy/core/src/npymath/npy_math_private.h", line 229: invalid type for bit-field: manh "numpy/core/src/npymath/npy_math_private.h", line 230: invalid type

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-10 Thread David Cournapeau
On Wed, Nov 11, 2009 at 6:18 AM, Michael Droettboom wrote: > I don't know if your 'long double' detection code is complete yet, but I > thought I'd share the current build output on one of our Solaris > machines.  It looks like it may just be a typo difference between > 'IEEE_QUAD_BE' in long_doub

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-10 Thread Michael Droettboom
I don't know if your 'long double' detection code is complete yet, but I thought I'd share the current build output on one of our Solaris machines. It looks like it may just be a typo difference between 'IEEE_QUAD_BE' in long_double_representation() and 'IEEE_QUAD_16B_BE' in setup.py, but I wa

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread Charles R Harris
On Sun, Nov 8, 2009 at 10:04 PM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Charles R Harris wrote: > > > > I don't remember how PPC does it's arithmetic with the two doubles, > > but one holds small values that are added to the other double, so I > > don't think it can be just like

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread David Cournapeau
Charles R Harris wrote: > > I don't remember how PPC does it's arithmetic with the two doubles, > but one holds small values that are added to the other double, so I > don't think it can be just like a double in some circumstances. That's not how it seems to work on mac os x - when I look at the g

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread Charles R Harris
On Sun, Nov 8, 2009 at 10:11 PM, Charles R Harris wrote: > > > On Sun, Nov 8, 2009 at 9:43 PM, David Cournapeau wrote: > >> On Mon, Nov 9, 2009 at 12:49 PM, Charles R Harris >> wrote: >> >> >> >> > >> > Umm, PPC doesn't have ieee quad, it is an amalgam of two doubles. >> >> Good catch ! I added

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread Charles R Harris
On Sun, Nov 8, 2009 at 9:43 PM, David Cournapeau wrote: > On Mon, Nov 9, 2009 at 12:49 PM, Charles R Harris > wrote: > > >> > > > > Umm, PPC doesn't have ieee quad, it is an amalgam of two doubles. > > Good catch ! I added a new type define for this case, with the > corresponding union. > > I ha

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread David Cournapeau
On Mon, Nov 9, 2009 at 12:49 PM, Charles R Harris wrote: >> > > Umm, PPC doesn't have ieee quad, it is an amalgam of two doubles. Good catch ! I added a new type define for this case, with the corresponding union. I have quickly tested it under rosetta, and it seems that npy_nextafterl gives a

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread Charles R Harris
On Sun, Nov 8, 2009 at 8:12 PM, David Cournapeau wrote: > Hi Michael, > > On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom > wrote: > > I'm getting the following from r7603 on Solaris Sparc -- somehow related > > to not having a long double version of next after available. I realise > > not e

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-08 Thread David Cournapeau
Hi Michael, On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom wrote: > I'm getting the following from r7603 on Solaris Sparc -- somehow related > to not having a long double version of next after available.  I realise > not everyone has access to (or is dependent on) this platform, so I'm > will

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-05 Thread David Cournapeau
Charles R Harris wrote: > > > On Thu, Nov 5, 2009 at 10:35 PM, David Cournapeau > mailto:da...@ar.media.kyoto-u.ac.jp>> > wrote: > > Charles R Harris wrote: > > So you are going to leave us all hanging here in curiosity? What is > > your solution? > > I had to sleep :) > > The s

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-05 Thread Charles R Harris
On Thu, Nov 5, 2009 at 10:35 PM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Charles R Harris wrote: > > So you are going to leave us all hanging here in curiosity? What is > > your solution? > > I had to sleep :) > > The solution is based on parsing the generated binary code - that'

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-05 Thread David Cournapeau
Charles R Harris wrote: > So you are going to leave us all hanging here in curiosity? What is > your solution? I had to sleep :) The solution is based on parsing the generated binary code - that's how MPFR is doing it, so it has been tested in the wild. The code to compile is something like: /*

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread David Cournapeau
On Thu, Nov 5, 2009 at 4:55 AM, Michael Droettboom wrote: > David Cournapeau wrote: >> On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom wrote: >> >>> I'm getting the following from r7603 on Solaris Sparc -- somehow related >>> to not having a long double version of next after available.  I real

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread Michael Droettboom
David Cournapeau wrote: > On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom wrote: > >> I'm getting the following from r7603 on Solaris Sparc -- somehow related >> to not having a long double version of next after available. I realise >> not everyone has access to (or is dependent on) this pl

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread Charles R Harris
On Wed, Nov 4, 2009 at 12:38 PM, Charles R Harris wrote: > > > On Wed, Nov 4, 2009 at 12:35 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Wed, Nov 4, 2009 at 12:11 PM, David Cournapeau wrote: >> >>> On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom >>> wrote: >>> > I'

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread Charles R Harris
On Wed, Nov 4, 2009 at 12:35 PM, Charles R Harris wrote: > > > On Wed, Nov 4, 2009 at 12:11 PM, David Cournapeau wrote: > >> On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom >> wrote: >> > I'm getting the following from r7603 on Solaris Sparc -- somehow related >> > to not having a long double

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread Charles R Harris
On Wed, Nov 4, 2009 at 12:11 PM, David Cournapeau wrote: > On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom > wrote: > > I'm getting the following from r7603 on Solaris Sparc -- somehow related > > to not having a long double version of next after available. I realise > > not everyone has acce

Re: [Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread David Cournapeau
On Thu, Nov 5, 2009 at 2:15 AM, Michael Droettboom wrote: > I'm getting the following from r7603 on Solaris Sparc -- somehow related > to not having a long double version of next after available.  I realise > not everyone has access to (or is dependent on) this platform, so I'm > willing to help i

[Numpy-discussion] Solaris Sparc build broken

2009-11-04 Thread Michael Droettboom
I'm getting the following from r7603 on Solaris Sparc -- somehow related to not having a long double version of next after available. I realise not everyone has access to (or is dependent on) this platform, so I'm willing to help in whatever way I can, I'm just not sure I understand the change