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

Roger Herikstad roger.herikstad@gmail....
Sat May 16 02:23:36 CDT 2009

 Thanks for your quick reply. Adding those CFLAGS revealed another
problem, though. I now get the following error:

 building 'numpy.core._sort' extension
1571 compiling C sources
1572 C compiler: gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-O3 -Wall -DNDEBUG -g -fwrapv -Wstrict-prototypes -arch ppc -arch
x86_64 -arch ppc64 -arch i386      -I/usr/local/include
1574 compile options: '-Inumpy/core/include
-Inumpy/core/src -Inumpy/core/src/multiarray -Inumpy/core/s
rc/umath -Inumpy/core/include
-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?

~ Roger

On Sat, May 16, 2009 at 2:45 PM, David Cournapeau
<david@ar.media.kyoto-u.ac.jp> wrote:
> Roger Herikstad wrote:
>> Hi all,
>>  I'm trying to build numpy from svn (rev 6997) on Mac OS X 10.5.7.
>> I've managed to build a 4-way universal of Python 2.6.2. When I try
>> using that to build numpy, I get a bunch of warnings from ld saying
>> certain files are not of the required architecture. I traced one of
>> these files, _sortmodule.c, and it seems that, when building the
>> extensions, the required arch flags are not transmitted properly,
>> causing the files to built using only the active architecture. Here
>> are the lines in the build log I think are relevant:
> You could try something like:
> CFLAGS="-O3 -Wall -DNDEBUG -g -fwrapv -Wstrict-prototypes -arch ppc
> -arch x86_64 -arch ppc64 -arch i386" python setup.py build
> David
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

More information about the SciPy-user mailing list