[SciPy-user] 64 bit on Mac?

Gins keflavich at gmail.com
Wed May 20 10:36:41 EDT 2009


Thanks.  I successfully got python 2.6.2 compiled with 64 bit support,
but when I try to compile numpy I run into errors that are a little
beyond my experience:

gcc: build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.c
In file included from numpy/core/include/numpy/ndarrayobject.h:26,
                 from numpy/core/include/numpy/noprefix.h:7,
                 from numpy/core/src/_sortmodule.c.src:29:
numpy/core/include/numpy/npy_endian.h:33:10: error: #error Unknown
CPU: can not set endianness
lipo: can't figure out the architecture type of: /var/folders/ni/ni
+DtdqFGMeSMH13AvkNkU+++TI/-Tmp-//ccJos8Iw.out
In file included from numpy/core/include/numpy/ndarrayobject.h:26,
                 from numpy/core/include/numpy/noprefix.h:7,
                 from numpy/core/src/_sortmodule.c.src:29:
numpy/core/include/numpy/npy_endian.h:33:10: error: #error Unknown
CPU: can not set endianness
lipo: can't figure out the architecture type of: /var/folders/ni/ni
+DtdqFGMeSMH13AvkNkU+++TI/-Tmp-//ccJos8Iw.out
error: Command "gcc -arch i386 -arch ppc -arch ppc64 -arch x86_64 -
isysroot / -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -
fwrapv -O3 -Wall -Wstrict-prototypes -Inumpy/core/include -Ibuild/
src.macosx-10.5-universal-2.6/numpy/core/include/numpy -Inumpy/core/
src -Inumpy/core/include -I/Library/Frameworks/Python.framework/
Versions/2.6/include/python2.6 -c build/src.macosx-10.5-universal-2.6/
numpy/core/src/_sortmodule.c -o build/temp.macosx-10.5-universal-2.6/
build/src.macosx-10.5-universal-2.6/numpy/core/src/_sortmodule.o"
failed with exit status 1


and I haven't had any luck with the numpy .dmg files for mac.

I'll check out sage next and report back.  Thanks for the tips!
Adam

On May 19, 5:48 pm, David Warde-Farley <d... at cs.toronto.edu> wrote:
> Hi Adam,
>
> On 17-Apr-09, at 12:38 PM, Keflavich wrote:
>
> > can't get a 64-bit version of python compiled and google has been
> > unhelpful in resolving the problem.  Is there a workaround to get 64
>
> I have had a lot of success with (using the 2.6.2 sources)
>
> mkdir -p build && cd build && ./configure --with-framework-
> name=Python64 --with-universal-archs=all --enable-framework --enable-
> universalsdk=/ MACOSX_DEPLOYMENT_TARGET=10.5 && make && sudo make  
> install
>
> That builds a 4-way universal binary. --with-universal-archs=64-bit  
> will get you just the 64 bit stuff (note that a few of the make  
> install steps will fail because of Carbon deprecation but nothing  
> important as far as I can see).
>
> David
> _______________________________________________
> SciPy-user mailing list
> SciPy-u... at scipy.orghttp://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list