[Scipy-tickets] [SciPy] #739: scipy.weave.converters.blitz fails with g++4.3

SciPy scipy-tickets@scipy....
Thu Sep 18 09:52:22 CDT 2008


#739: scipy.weave.converters.blitz fails with g++4.3
-------------------------+--------------------------------------------------
 Reporter:  jwolter      |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:          
Component:  scipy.weave  |     Version:          
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 A script using converters.blitz in an scipy.weave.inline statement stopped
 working lately.
 {{{
 #!python
 from scipy.weave import inline, converters
 ...
 inline(code,
         ['hs', 'lumBlur', 'lumImg',
          'img'],
         type_converters = converters.blitz,
         support_code = support,
         libraries = ['m'],
         verbose=0
       )
 }}}
 Suddenly I got the following error:
 {{{
 ...
 In file included from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/applics.h:400,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/vecexpr.h:32,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/vecpick.cc:16,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/vecpick.h:293,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/vector.h:449,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/tinyvec.h:430,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array-impl.h:44,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array.h:32,
                  from
 /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp:11:
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/mathfunc.h: In
 static member function 'static long int blitz::_bz_abs<long
 int>::apply(long int)':
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/mathfunc.h:45:
 error: 'labs' is not a member of 'std'
 In file included from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array/funcs.h:29,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array/newet.h:29,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array/et.h:27,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array-impl.h:2515,
                  from /usr/lib/python2.5/site-
 packages/scipy/weave/blitz/blitz/array.h:32,
                  from
 /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp:11:
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h: In
 static member function 'static int blitz::Fn_abs<int>::apply(int)':
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h:509:
 error: call of overloaded 'abs(int&)' is ambiguous
 /usr/include/c++/4.3/cmath:99: note: candidates are: double
 std::abs(double)
 /usr/include/c++/4.3/cmath:103: note:                 float
 std::abs(float)
 /usr/include/c++/4.3/cmath:107: note:                 long double
 std::abs(long double)
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h: In
 static member function 'static long int blitz::Fn_abs<long
 int>::apply(long int)':
 /usr/lib/python2.5/site-packages/scipy/weave/blitz/blitz/funcs.h:530:
 error: 'labs' is not a member of 'std'
 /home/jw/.python25_compiled/sc_ef45038834ace16052d05de4cc06f8523.cpp: In
 function 'char* find_type(PyObject*)':
 ...
 }}}

 In the Debian BTS I found a small patch which is supposed to solve this
 issue:
  * http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455661
  * http://bugs.debian.org/cgi-
 bin/bugreport.cgi?msg=10;filename=blitz%2B%2B.patch;att=1;bug=455661

 Maybe this patch should also be applied to the scipy-blitz sources.

 I'm using scipy 0.6.0 (Debian package 0.6.0-12) and g++4.3.1.

 Regards,
 Johannes Wolter

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/739>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list