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

David Cournapeau david@ar.media.kyoto-u.ac...
Sat May 16 01:45:50 CDT 2009

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


More information about the SciPy-user mailing list