[SciPy-user] weave, new scipy, and ubuntu

Ryan Krauss ryanlists at gmail.com
Thu Dec 8 14:43:51 EST 2005


I replaced what was in scipy/weave/blitz/blitz with the latest blitz
download and my error message got a lot shorter.  Here it is now:

In [19]: run fortran_dev.py
<weave: compiling>
Compiling code...
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.cpp:
In function 'PyObject* compiled_func(PyObject*, PyObject*)':
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.cpp:722:
error: no match for call to '(py::object) (int&, int&)'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.cpp:
In function 'PyObject* compiled_func(PyObject*, PyObject*)':
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.cpp:722:
error: no match for call to '(py::object) (int&, int&)'
---------------------------------------------------------------------------
build_tools.CompileError                              Traceback (most
recent call last)

/home/ryan/control_design/fortran_test/fortran_dev.py
     71 rwkbode.GenBodePlot(1,freq,mybode1)
     72
---> 73 mybodes=mysystem.BodeResponse(freq)
     74 rwkbode.GenBodePlot(1,freq,mybodes[0],clear=False)
     75

/home/ryan/rwkpython/TMM/__init__.py in BodeResponse(self, fvect)
   1099             elif bodedict.post.lower()=='vel':
   1100                 tempcomp=tempcomp*svect
-> 1101            
bodes.append(rwkbode.rwkbode(bodedict.output,bodedict.input,compin=tempcomp))
   1102         return bodes
   1103

/home/ryan/rwkpython/rwkbode/__init__.py in __init__(self, output,
input, mag, phase, coh, freqlim, maglim, phaselim, averaged, seedfreq,
seedphase, labels, legloc, compin)
     45             self.mag=colwise(abs(compin))
     46 #           
self.phase=colwise(mat_atan2(imag(compin),real(compin))*180.0/pi)
---> 47            
self.phase=colwise(mat_atan2_c(imag(compin),real(compin))*180.0/pi)
     48         else:
     49             self.mag=mag

/home/ryan/rwkpython/rwkdataproc.py in mat_atan2_c(y, x)
    673                         type_converters = cblitz,
    674                         compiler='gcc',
--> 675                         verbose = 1)
    676     return outmat
    677

/usr/lib/python2.4/site-packages/scipy/weave/inline_tools.py in
inline(code, arg_names, local_dict, global_dict, force, compiler,
verbose, support_code, headers, customize, type_converters,
auto_downcast, **kw)
    332                                     customize=customize,
    333                                     type_converters = type_converters,
--> 334                                     auto_downcast = auto_downcast,
    335                                     **kw)
    336

/usr/lib/python2.4/site-packages/scipy/weave/inline_tools.py in
compile_function(code, arg_names, local_dict, global_dict, module_dir,
compiler, verbose, support_code, headers, customize, type_converters,
auto_downcast, **kw)
    440     # setting.  All input keywords are passed through to distutils
    441     mod.compile(location=storage_dir,compiler=compiler,
--> 442                 verbose=verbose, **kw)
    443
    444     # import the module and return the function.  Make sure

/usr/lib/python2.4/site-packages/scipy/weave/ext_tools.py in
compile(self, location, compiler, verbose, **kw)
    351         success = build_tools.build_extension(file, temp_dir = temp,
    352                                               compiler_name = compiler,
--> 353                                               verbose = verbose, **kw)
    354         if not success:
    355             raise SystemError, 'Compilation failed'

/usr/lib/python2.4/site-packages/scipy/weave/build_tools.py in
build_extension(module_path, compiler_name, build_dir, temp_dir,
verbose, **kw)
    272         environ = copy.deepcopy(os.environ)
    273         try:
--> 274             setup(name = module_name, ext_modules = [ext],verbose=verb)
    275         finally:
    276             # restore state

/usr/lib/python2.4/site-packages/scipy/distutils/core.py in setup(**attr)
     91         new_attr['data_files'] = new_data_files
     92
---> 93     return old_setup(**new_attr)
     94
     95 def _check_append_library(libraries, item):

/usr/lib/python2.4/distutils/core.py in setup(**attrs)
    164                 raise
    165             else:
--> 166                 raise SystemExit, "error: " + str(msg)
    167
    168     return dist

CompileError: error: Command "g++ -pthread -fno-strict-aliasing
-DNDEBUG -g -O3 -Wstrict-prototypes -fPIC
-I/usr/lib/python2.4/site-packages/scipy/weave
-I/usr/lib/python2.4/site-packages/scipy/weave/scxx
-I/usr/lib/python2.4/site-packages/scipy/weave/blitz
-I/usr/lib/python2.4/site-packages/scipy/base/include
-I/usr/include/python2.4 -c
/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.cpp
-o /tmp/ryan/python24_intermediate/compiler_fcf4821de2ee87a8ad4d6579aeaebbc9/home/ryan/.python24_compiled/sc_01e1613eb6e39ff39d2e56ac7cc755122.o"
failed with exit status 1
WARNING: Failure executing file: <fortran_dev.py>

In [20]:




More information about the SciPy-User mailing list