[SciPy-user] SciPy with gcc4 and gfortran on OS X

Zachary Pincus zpincus at stanford.edu
Sat Apr 8 13:43:47 CDT 2006


> Try the latest numpy and scipy from svn. I have added support to  
> specify
> config_fc options inside setup.py files for libraries. This feature  
> would
> be probably useful also C libraries and extension modules but let's  
> see
> if this can fix the current issue first..

OK, with latest SVN of scipy and numpy, I can properly build  
everything with gcc4 and gfortran. However, a couple of tests still  
fail, which worries me. Also, some of the failures don't happen every  
time. (See below.)

Finally, I would note that maybe the patched setup.py files should  
only turn off optimization for the mach files if gfortran is being  
used. (If this is something that can easily be done.)

Anyhow, I'm not sure what to make of all of this. Not looking too  
good for gfortran, though.

Zach

Test failures: The first two happen every time, the third isn't so  
regular.


======================================================================
FAIL: check_dot (scipy.lib.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/lib/blas/tests/test_blas.py", line 76,  
in check_dot
     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy/testing/utils.py", line 148, in  
assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: (-9+2j)
ACTUAL: (-1.9985527992248535+3.0377747199436024e-37j)

======================================================================
FAIL: check_dot (scipy.linalg.tests.test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/linalg/tests/test_blas.py", line 75, in  
check_dot
     assert_almost_equal(f([3j,-4,3-4j],[2,3,1]),-9+2j)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy/testing/utils.py", line 148, in  
assert_almost_equal
     assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: (-9+2j)
ACTUAL: (-1.9985527992248535+3.0397298115610284e-37j)

======================================================================
FAIL: check_normal (scipy.stats.tests.test_morestats.test_anderson)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/scipy/stats/tests/test_morestats.py", line  
45, in check_normal
     assert_array_less(crit[:-1], A)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/numpy/testing/utils.py", line 255, in  
assert_array_less
     assert cond,\
AssertionError:
Arrays are not less-ordered (mismatch 100.0%):
         Array 1: [ 0.538  0.613  0.736  0.858]
         Array 2: nan



More information about the SciPy-user mailing list