[SciPy-dev] Build of newcore on macosX and with mingw32
Jörgen Stenarson
jorgen.stenarson at bostream.nu
Tue Oct 4 16:01:43 EDT 2005
Hi,
thanks for looking into this.
Pearu Peterson 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.
> to build/src/scipy/base/config.h? The code probably builds then.
> Then it's not clear to me why
>
> kws_args = {'libraries':libs,'decl':0,'headers':['math.h']}
> config_cmd.check_func('atanhf', **kws_args)
>
> fails in your platform when atanhf seems to be available.
>
> Pearu
...
do you have any other ideas?
/Jörgen
More information about the SciPy-Dev
mailing list