[SciPy-user] numpy 64 bit build on mac os x
Tue May 19 19:18:37 CDT 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/
> 1576 In file included from numpy/core/include/numpy/ndarrayobject.h:
> 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.
More information about the SciPy-user