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

Roger Herikstad roger.herikstad@gmail....
Sat May 16 01:45:30 CDT 2009


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:

 925 building 'numpy.core._sort' extension
 926 compiling C sources
 927 C compiler: gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-I/usr/local/include -I/usr/local/include
 928
 929 compile options: '-Inumpy/core/include
-Ibuild/src.macosx-10.5-universal-2.6/numpy/core/include/numpy
-Inumpy/core/src -Inumpy/core/src/multiarray -Inumpy/core/s
rc/umath -Inumpy/core/include
-I/Library/Frameworks/Python64.framework/Versions/2.6/include/python2.6
-Ibuild/src.macosx-10.5-universal-2.6/numpy/core/src/multiarray
-Ibuild/src.macosx-10.5-universal-2.6/numpy/core/src/umath -c'
 930 gcc: build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.c
 931 gcc -arch i386 -arch ppc -arch ppc64 -arch x86_64 -isysroot /
-L/usr/local/lib -bundle -undefined dynamic_lookup -L/usr/local/lib
-I/usr/local/include -I/usr/loc     al/include
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.o
-Lbuild/temp.macosx-10.5-universal-2.6 -o build/
lib.macosx-10.5-universal-2.6/numpy/core/_sort.so
 932 ld warning: in
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.o,
file is not of required architecture
 933 ld warning: in
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.o,
file is not of required architecture
 934 ld warning: in
build/temp.macosx-10.5-universal-2.6/build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.o,
file is not of required architecture

The compile options do not contain the arch flags, and I'm not sure
how I should go about forcing the build process to use them. Any
suggestions anyone? Is there something obvious I'm missing here?
Thanks!

~ Roger


More information about the SciPy-user mailing list