[Numpy-discussion] ANN: Numpy 1.6.0 release candidate 2

Derek Homeier derek at astro.physik.uni-goettingen.de
Wed May 4 18:47:26 EDT 2011


On 04.05.2011, at 8:42PM, Ralf Gommers wrote:

> ======================================================================
> FAIL: test_return_character.TestF90ReturnCharacter.test_all
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/sw/lib/python3.2/site-packages/nose/case.py", line 188, in runTest
>    self.test(*self.arg)
>  File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/test_return_character.py", line 136, in test_all
>    self.check_function(getattr(self.module.f90_return_char, name))
>  File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/test_return_character.py", line 12, in check_function
>    r = t(array('ab'));assert_( r==asbytes('a'),repr(r))
>  File "/sw/lib/python3.2/site-packages/numpy/testing/utils.py", line 34, in assert_
>    raise AssertionError(msg)
> AssertionError: b' '
> 
> All the previous failures on ppc are gone now, and with Python2.[4567] all tests are passing!
> On Intel MacOS X (10.5/i386 and 10.6/x86_64) everything is OK for Python 2.5-3.2 as well.
> 
> 
> Looks like Fortran. Maybe we should lst the Fortran compiler when the full test suite is run.
> 
> lst = list? That would be useful.
> 
It seems to be listed in case of an f2py error, so maybe this could be done for 
failures as well... The compiler versions used to compile numpy would also be 
useful, I suppose. 
Anyway, the failure above turns up with numpy built with either of the system 
gcc (4.0.1 or 4.2.1) and gfortran from the fink-installed gcc 4.2.4 or 4.4.4. 
Unfortunately I cannot build numpy itself with the fink gcc versions, since 
they don't support the '-faltivec' flag.

> Is this failure a problem or can it wait? 

Definitely not a show-stopper for 1.6.0, afaiac.


I noticed another strange behaviour of f2py under OS X 10.5 - ppc and i386: 
When I have g77 installed, it seems to no longer find the (still present) 
gfortran, causing other test errors (maybe not surprising, since it is g77 3.4.3, 
but I'd still think gfortran should be given preference, if both are installed).

Cheers,
					Derek

ERROR: test_return_real.TestF77ReturnReal.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/sw/lib/python2.7/site-packages/nose/case.py", line 371, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/sw/lib/python2.7/site-packages/nose/util.py", line 478, in try_run
    return func()
  File "/sw/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 347, in setUp
    module_name=self.module_name)
  File "/sw/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 73, in wrapper
    memo[key] = func(*a, **kw)
  File "/sw/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 162, in build_code
    module_name=module_name)
  File "/sw/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 73, in wrapper
    memo[key] = func(*a, **kw)
  File "/sw/lib/python2.7/site-packages/numpy/f2py/tests/util.py", line 134, in build_module
    % (cmd[4:], asstr(out)))
RuntimeError: Running f2py failed: ['-m', '_test_ext_module_5403', '/scratch/derek/tmp/tmp6cjHzz/tmpZt9fgZ.f']
running build
[...]
build_src: building npy-pkg config files
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Found executable /sw/bin/f77
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Found executable /sw/bin/g77
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler using build_ext
building '_test_ext_module_5403' extension
compiling C sources
C compiler: gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

creating /scratch/derek/tmp/tmpeRWXKV/scratch
creating /scratch/derek/tmp/tmpeRWXKV/scratch/derek
creating /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp
creating /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV
creating /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7
compile options: '-I/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7 -I/sw/lib/python2.7/site-packages/numpy/core/include -I/sw/include/python2.7 -c'
gcc: /scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403module.c
gcc: /scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/fortranobject.c
compiling Fortran sources
Fortran f77 compiler: /sw/bin/g77 -g -Wall -fno-second-underscore -fPIC -O3 -funroll-loops
creating /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmp6cjHzz
compile options: '-I/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7 -I/sw/lib/python2.7/site-packages/numpy/core/include -I/sw/include/python2.7 -c'
g77:f77: /scratch/derek/tmp/tmp6cjHzz/tmpZt9fgZ.f
g77:f77: /scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403-f2pywrappers.f
/sw/bin/g77 -g -Wall -g -Wall -undefined dynamic_lookup -bundle /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403module.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/fortranobject.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmp6cjHzz/tmpZt9fgZ.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403-f2pywrappers.o -L/sw/lib/gcc/powerpc-apple-darwin9.8.0/3.4.3 -lg2c -lcc_dynamic -o ./_test_ext_module_5403.so
ld: library not found for -lcc_dynamic
collect2: ld returned 1 exit status
ld: library not found for -lcc_dynamic
collect2: ld returned 1 exit status
error: Command "/sw/bin/g77 -g -Wall -g -Wall -undefined dynamic_lookup -bundle /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403module.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/fortranobject.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmp6cjHzz/tmpZt9fgZ.o /scratch/derek/tmp/tmpeRWXKV/scratch/derek/tmp/tmpeRWXKV/src.macosx-10.5-ppc-2.7/_test_ext_module_5403-f2pywrappers.o -L/sw/lib/gcc/powerpc-apple-darwin9.8.0/3.4.3 -lg2c -lcc_dynamic -o ./_test_ext_module_5403.so" failed with exit status 1





More information about the NumPy-Discussion mailing list