Skip to content

error: incompatible integer to pointer conversion assigning to 'PyObject *' #118

@yurivict

Description

@yurivict

Build fails:

./numpoly/cfunctions/cdispach.c:3036:13: warning: call to undeclared function 'PyDataType_ELSIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3036 |   __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3070:13: warning: call to undeclared function 'PyDataType_ALIGNMENT'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3070 |   __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3108:15: warning: call to undeclared function 'PyDataType_FIELDS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3108 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
      |               ^
./numpoly/cfunctions/cdispach.c:3108:13: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
 3108 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
      |             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./numpoly/cfunctions/cdispach.c:3150:15: warning: call to undeclared function 'PyDataType_NAMES'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3150 |   __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
      |               ^
./numpoly/cfunctions/cdispach.c:3150:13: error: incompatible integer to pointer conversion assigning to 'PyObject *' (aka 'struct _object *') from 'int' [-Wint-conversion]
 3150 |   __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
      |             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./numpoly/cfunctions/cdispach.c:3188:13: warning: call to undeclared function 'PyDataType_SUBARRAY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3188 |   __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3188:11: error: incompatible integer to pointer conversion assigning to 'PyArray_ArrayDescr *' (aka 'struct _arr_descr *') from 'int' [-Wint-conversion]
 3188 |   __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
      |           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./numpoly/cfunctions/cdispach.c:3222:13: warning: call to undeclared function 'PyDataType_FLAGS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3222 |   __pyx_r = PyDataType_FLAGS(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3256:13: warning: call to undeclared function 'PyArray_MultiIter_NUMITER'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3256 |   __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3290:13: warning: call to undeclared function 'PyArray_MultiIter_SIZE'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3290 |   __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3324:13: warning: call to undeclared function 'PyArray_MultiIter_INDEX'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3324 |   __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3358:13: warning: call to undeclared function 'PyArray_MultiIter_NDIM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3358 |   __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3392:13: warning: call to undeclared function 'PyArray_MultiIter_DIMS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3392 |   __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3392:11: error: incompatible integer to pointer conversion assigning to 'npy_intp *' (aka 'long *') from 'int' [-Wint-conversion]
 3392 |   __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
      |           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./numpoly/cfunctions/cdispach.c:3426:13: warning: call to undeclared function 'PyArray_MultiIter_ITERS'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 3426 |   __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
      |             ^
./numpoly/cfunctions/cdispach.c:3426:11: error: incompatible integer to pointer conversion assigning to 'void **' from 'int' [-Wint-conversion]
 3426 |   __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
      |           ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 warnings and 5 errors generated.
error: command '/usr/local/libexec/ccache/cc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

Version: 1.3.0
Python-3.11
numpy-1.26.4
FreeBSD 14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions