[SciPy-dev] Build of newcore on macosX and with mingw32

Pearu Peterson pearu at scipy.org
Tue Oct 4 14:08:21 CDT 2005



On Tue, 4 Oct 2005, Jörgen Stenarson wrote:

>>> gcc: build/src/scipy/base/src/umathmodule.c
>>> build/src/scipy/base/src/umathmodule.c:56: error: static declaration of 
>>> 'acoshf' follows non-static declaration
>>> build/src/scipy/base/src/umathmodule.c:61: error: static declaration of 
>>> 'asinhf' follows non-static declaration
>>> build/src/scipy/base/src/umathmodule.c:66: error: static declaration of 
>>> 'atanhf' follows non-static declaration
>>> build/src/scipy/base/src/umathmodule.c:56: error: static declaration of 
>>> 'acoshf' follows non-static declaration
>>> build/src/scipy/base/src/umathmodule.c:61: error: static declaration of 
>>> 'asinhf' follows non-static declaration
>>> build/src/scipy/base/src/umathmodule.c:66: error: static declaration of 
>>> 'atanhf' follows non-static declaration
>> 
>> 
>> Could you send the contects of build/src/scipy/base/config.h?
>
> /* #define SIZEOF_SHORT 2 */
> /* #define SIZEOF_INT 4 */
> /* #define SIZEOF_LONG 4 */
> /* #define SIZEOF_FLOAT 4 */
> /* #define SIZEOF_DOUBLE 8 */
> #define SIZEOF_LONG_DOUBLE 16
> #define SIZEOF_PY_INTPTR_T 4
> /* #define SIZEOF_LONG_LONG 8 */
> #define SIZEOF_PY_LONG_LONG 8
> /* #define CHAR_BIT 8 */
> #define MATHLIB
> #define HAVE_LONGDOUBLE_FUNCS
> #define HAVE_FLOAT_FUNCS
> #define HAVE_INVERSE_HYPERBOLIC
> #define HAVE_INVERSE_HYPERBOLIC_FLOAT
>
>> 
>> What happens if you add
>> 
>> #define HAVE_INVERSE_HYPERBOLIC_FLOAT
>> 
> as you can see above it is already there.

So, the code that give errors should not be available to the compiler.

> do you have any other ideas?

Hmm, may be the building process picks config.h up from some other place.
Introduce some syntax error to build/src/scipy/base/config.h in order to 
verify this.

Try to remove old scipy.core from your system, that includes also header 
files in include/python2.4/scipy directory, then do `rm -rf build` and
try to rebuild.

Pearu


More information about the Scipy-dev mailing list