-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--pysparse --inline
failures
#294
Comments
Moved .../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp: In function ‘PyObject* compiled_func(PyObject*, PyObject*)’:
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: error: ambiguous overload for ‘operator*’ in ‘py::object::operator[](int)(((j * ni) + i)) *#### pyobject::operator[](int)(((j * ni) + i))’
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: candidates are: operator*(int, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(int, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(int, double) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, double) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, double) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp: In function ‘PyObject* compiled_func(PyObject*, PyObject*)’:
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: error: ambiguous overload for ‘operator*’ in ‘py::object::operator[](int)(((j * ni) + i)) *#### pyobject::operator[](int)(((j * ni) + i))’
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: candidates are: operator*(int, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(int, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(int, double) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(float, double) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, int) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, float) <built-in>
.../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp:706: note: operator*(double, double) <built-in>
Traceback (most recent call last):
File "examples/diffusion/variable.py", line 65, in <module>
mesh = Tri2D(dx, dy, nx, ny)
File ".../fipy/meshes/tri2D.py", line 100, in __init__
Mesh2D.__init__(self, vertices, faces, cells)
File ".../fipy/meshes/mesh.py", line 84, in __init__
self._setGeometry(scaleLength = 1.)
File ".../fipy/meshes/mesh.py", line 157, in _setGeometry
self._faceAreas = self._calcFaceAreas()
File ".../fipy/meshes/mesh2D.py", line 79, in _calcFaceAreas
return numerix.sqrtDot(tangent, tangent)
File ".../fipy/tools/numerix.py", line 421, in sqrtDot
""",result1=result1, a1=a1, a2=a2, ni=ni, NJ=NJ)
File ".../fipy/tools/inline.py", line 111, in _runInline
extra_compile_args =['-O3'])
File "/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave/inline_tools.py", line 355, in inline
**kw)
File "/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave/inline_tools.py", line 482, in compile_function
verbose=verbose, **kw)
File "/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave/ext_tools.py", line 367, in compile
verbose = verbose, **kw)
File "/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave/build_tools.py", line 272, in build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
File "/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/numpy/distutils/core.py", line 186, in setup
return old_setup(**new_attr)
File "/Users/guyer/.homebrew/Cellar/python/2.7.2/lib/python2.7/distutils/core.py", line 169, in setup
raise SystemExit, "error: " + str(msg)
scipy.weave.build_tools.CompileError: error: Command "/usr/bin/g++-4.2 -fno-strict-aliasing -O3 -march=core2 -msse4.1 -w -pipe -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave -I/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/scipy/weave/scxx -I/Users/guyer/.virtualenvs/virtualbrew/lib/python2.7/site-packages/numpy/core/include -I/Users/guyer/.homebrew/Cellar/python/2.7.2/include/python2.7 -c .../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.cpp -o .../fipy/tools/sc_8be0cdeed8d598d898ca8ab97055fc790.o -O3" failed with exit status 1 I've run back to r3000 and still get the same error, so I think something has changed in SciPy (I'm running 0.9.0 now). Trac comment by guyer on 12-03-2011 at 17:38 |
Replying to guyer:
@@ -420,6 +430,11 @@
and, indeed,
which seems to happen with Trac comment by guyer on 12-03-2011 at 17:51 |
Inline issues have been fixed with changset:5095 and changset:5103. Trac comment by wd15 on 01-10-2012 at 13:07 |
There are at least six
--inline
failures (there appear to be more on OS X, plus it [segfaults before it finishes](issue #293))Imported from trac ticket #395, created by guyer on 12-02-2011 at 18:47, last modified: 01-10-2012 at 13:07
The text was updated successfully, but these errors were encountered: