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

Massimo Di Stefano massimodisasha@gmail....
Mon Mar 12 09:36:07 CDT 2012


i removed the Xcode tools and  I've re-installed the latest Xcode tools, 
the gcc compiler is :


MacBook-Pro-di-Massimo:~ epifanio$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


it is the same version i had previously … the build give the same errors about array of  negative size and the test fails as before.


so, i decided to give a chance to home brew. 
i installed it and python,
then using the homebrew easy_install executable i installed nose.

building nupy i noticed the same bad log about error array with negative size.
running the test i got this :

.............................................................
======================================================================
FAIL: test_kind.TestKind.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/nose-1.1.2-py2.7.egg/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/numpy/f2py/tests/test_kind.py", line 30, in test_all
    'selectedrealkind(%s): expected %r but got %r' %  (i, selected_real_kind(i), selectedrealkind(i)))
  File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/numpy/testing/utils.py", line 34, in assert_
    raise AssertionError(msg)
AssertionError: selectedrealkind(19): expected -1 but got 16

----------------------------------------------------------------------
Ran 3650 tests in 29.466s

FAILED (KNOWNFAIL=3, SKIP=5, failures=1)
<nose.result.TextTestResult run=3650 errors=0 failures=1>
>>> 


so far, .. no lucky.

i'll try to build the 'stable' old bumpy and see what happens.




Il giorno Mar 12, 2012, alle ore 5:43 AM, Robert Kern ha scritto:

> 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
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list