[SciPy-user] Compiler problem with Weave

Robert Kern rkern at ucsd.edu
Sun Aug 21 07:09:57 CDT 2005


Ganesh V wrote:

>   On the Website it was put up that weave has been tested only with
>   gcc 2.95. Mine is gcc4. Can that be a problem?

Checking with gcc 4.0 indeed confirms that gcc 4.0 doesn't like the old
blitz headers that we use. We should try to upgrade, but my initial
attempt to use the latest blitz (0.6) hasn't worked, yet. I'm sure I'm
screwing something up, though.

Using the old headers and gcc 4.0:

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy_complete-0.3.3_309.4626-py2.4-darwin-8.1.0-Power_Macintosh.egg/weave/blitz-20001213/blitz/mathfunc.h:
In static member function `static int
blitz::_bz_blitz_isnan<P_numtype1>::apply(P_numtype1)':
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy_complete-0.3.3_309.4626-py2.4-darwin-8.1.0-Power_Macintosh.egg/weave/blitz-20001213/blitz/mathfunc.h:1351:
error: ‘::isnan’ has not been declared

[etc. -- Useful tip: when GCC spits out pages and pages of error
messages, the important error is usually at the very top, and you can
ignore everything that follows.]

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter



More information about the SciPy-user mailing list