[SciPy-user] numpy 64 bit build on mac os x

David Warde-Farley dwf at cs.toronto.edu
Tue May 19 20:18:37 EDT 2009


On 16-May-09, at 3:23 AM, Roger Herikstad wrote:

> -Ibuild/src.macosx-10.5-universal-2.6/numpy/core/src/multia     rray
> -Ibuild/src.macosx-10.5-universal-2.6/numpy/core/src/umath -c'
> 1575 gcc: build/src.macosx-10.5-universal-2.6/numpy/core/src/ 
> _sortmodule.c
> 1576 In file included from numpy/core/include/numpy/ndarrayobject.h: 
> 33,
> 1577                  from numpy/core/include/numpy/noprefix.h:7,
> 1578                  from numpy/core/src/_sortmodule.c.src:29:
> 1579 numpy/core/include/numpy/npy_endian.h:33:10: error: #error
> Unknown CPU: can not set endianness
>
> Is this an issue of the mixed endianness between ppc and intel macs?

Actually I discovered it's a small bug in npy_endian.h.

npy_cpu.h correctly detects and sets CPU architecture macros *but* for  
some reason npy_endian.h doesn't handle PPC64 and set big-endian. So,  
npy_cpu.h correctly detects PPC64 as the arch being built for but then  
the endianness setting code doesn't know what to do with it. The AMD64  
build works fine.

I've filed a ticket at http://projects.scipy.org/numpy/ticket/1111 and  
attached a patch there, if you need it.

David



More information about the SciPy-User mailing list