[Numpy-discussion] ANN: Numpy 1.6.0 beta 1

Pearu Peterson pearu.peterson at gmail.com
Fri Mar 25 00:58:30 EDT 2011


On Fri, Mar 25, 2011 at 1:44 AM, Derek Homeier <
derek at astro.physik.uni-goettingen.de> wrote:

> On 24.03.2011, at 9:11AM, Pearu Peterson wrote:
> >
> > Intel-64bit:
> > ERROR: test_assumed_shape.TestAssumedShapeSumExample.test_all
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> >  File "/sw/lib/python3.2/site-packages/nose/case.py", line 372, in setUp
> >    try_run(self.inst, ('setup', 'setUp'))
> >  File "/sw/lib/python3.2/site-packages/nose/util.py", line 478, in
> try_run
> >    return func()
> >  File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/util.py", line
> 352, in setUp
> >    module_name=self.module_name)
> >  File "/sw/lib/python3.2/site-packages/numpy/f2py/tests/util.py", line
> 73, in wrapper
> >    memo[key] = func(*a, **kw)
> >  File "/sw/lib/python3.2/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',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/foo_free.f90',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/foo_use.f90',
> '/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpfiy1jn/precision.f90']
> >    Reading .f2py_f2cmap ...
> >    Mapping "real(kind=rk)" to "double"
> >
> > Hmm, this should not happen as real(kind=rk) should be mapped to "float".
> > It seems that you have .f2py_f2cmap file lying around. Could you remove
> it and try again.
>
> Yes, it's in the tarball and was installed together with the f2py tests!
>

Indeed, f2py tests suite contains the .f2py_f2cmap file. Its effect should
be local to the corresponding test but it seems not.
I'll look into it..


> building extension "_test_ext_module_5403" sources
> f2py options: []
> f2py:>
> /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum/src.macosx-10.6-x86_64-2.7/_test_ext_module_5403module.c
> creating /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum
> creating
> /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum/src.macosx-10.6-x86_64-2.7
> getctype: "real(kind=rk)" is mapped to C "float" (to override define
> dict(real = dict(rk="<C typespec>")) in
> /private/var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpPo744G/.f2py_f2cmap
> file).
> ...
> gfortran:f77:
> /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum/src.macosx-10.6-x86_64-2.7/_test_ext_module_5403-f2pywrappers.f
>
> /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum/src.macosx-10.6-x86_64-2.7/_test_ext_module_5403-f2pywrappers.f:26.21:
>
>          real :: res
>                     1
> Error: Symbol 'res' at (1) already has basic type of REAL
>
> /var/folders/DC/DC7g9UNr2RWkb++8ZSn1J+++0Dk/-Tmp-/tmpS4KGum/src.macosx-10.6-x86_64-2.7/_test_ext_module_5403-f2pywrappers.f:26.21:
>
>          real :: res
>                     1
> Error: Symbol 'res' at (1) already has basic type of REAL
> ...
>
> f2py is the one installed with this numpy version, gfortran is
> COLLECT_GCC=/sw/bin/gfortran
>
> COLLECT_LTO_WRAPPER=/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin10.6.0/4.5.2/lto-wrapper
> Ziel: x86_64-apple-darwin10.6.0
> Konfiguriert mit: ../gcc-4.5.2/configure --prefix=/sw
> --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.5/info
> --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
> --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
> --with-system-zlib --x-includes=/usr/X11R6/include
> --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.5 --enable-lto
> Thread-Modell: posix
> gcc-Version 4.5.2 (GCC)
>
>
Can you send me the _test_ext_module_5403-f2pywrappers.f file. It should
exist there when the compilation fails.

Pearu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110325/8ce9565f/attachment.html>


More information about the NumPy-Discussion mailing list