[SciPy-User] numpy - scipy test failure on OSX (git version 10/3/2012)

Robert Kern robert.kern@gmail....
Mon Mar 12 04:43:54 CDT 2012


On Mon, Mar 12, 2012 at 08:15, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:
> I tried to upgrade to Xcode 4.3 .. but seems that 'for free' there is only Xcore 4.2 on the apple dev center.
>
> i installed the gcc from the crane website and i exported the flags .. but numpy build is giving me word error about array with negative size.
>
> here [1] the full log using the gcc from the R website.
>
> [1] http://www.geofemengineering.it/numpy_build_log.txt
>
>
> i think it i is the cause of all the evil … i should fix this before to go a had with scipy.
>
>
>
> frustrated i also tried to build gcc4.6 from source  .. but no lucky the setup.py ends with :

> C compiler: /usr/local/bin/gcc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe
>
> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -Inumpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
> gcc: _configtest.c
> gcc: warning: ‘-mfused-madd’ is deprecated; use ‘-ffp-contract=’ instead
> gcc: error: i386: No such file or directory
> gcc: error: x86_64: No such file or directory
> gcc: error: unrecognized option ‘-arch’
> gcc: error: unrecognized option ‘-arch’
> gcc: warning: ‘-mfused-madd’ is deprecated; use ‘-ffp-contract=’ instead
> gcc: error: i386: No such file or directory
> gcc: error: x86_64: No such file or directory
> gcc: error: unrecognized option ‘-arch’
> gcc: error: unrecognized option ‘-arch’
> failure.

> maybe i missed something during the gcc configure ???

You need to apply Apple's patches to provide the "-arch" compile flag.
I don't believe they have patches to gcc 4.6.

This is probably the easiest way to get command-line installs of the
official gcc:

  http://kennethreitz.com/xcode-gcc-and-homebrew.html

-- 
Robert Kern


More information about the SciPy-User mailing list