[Numpy-tickets] [NumPy] #305: Warning messages compiling on 64-bit system, python 2.5

NumPy numpy-tickets at scipy.net
Mon Oct 2 16:22:12 CDT 2006


#305: Warning messages compiling on 64-bit system, python 2.5
------------------------+---------------------------------------------------
 Reporter:  gpk         |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  low         |    Milestone:          
Component:  numpy.core  |      Version:          
 Severity:  minor       |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Old description:

> Compiler warnings with gcc 3.3.5
> on Suse opteron x86_64 2.6.11 kernel.
> Numpy-1.0rc1.
>
> The following warnings were returned following
> python setup.py build, using python 2.5 .
>
> gcc: _configtest.c
> _configtest.c: In function `main':
> _configtest.c:50: warning: int format, different type arg (arg 3)
> _configtest.c:57: warning: int format, different type arg (arg 3)
> _configtest.c:72: warning: int format, different type arg (arg 3)
>
> gcc: _configtest.c
> gcc -pthread _configtest.o -o _configtest
> _configtest.o(.text+0xd): In function `main':
> /users/gpk/DOWNLOADS/numpy-1.0rc1/_configtest.c:5: undefined reference to
> `exp'
>

> gcc: numpy/core/src/multiarraymodule.c
> In file included from numpy/core/src/multiarraymodule.c:66:
> numpy/core/src/arrayobject.c: In function `PyArray_Item_INCREF':
> numpy/core/src/arrayobject.c:167: warning: passing arg 2 of `PyDict_Next'
> from incompatible pointer type
> numpy/core/src/arrayobject.c: In function `PyArray_Item_XDECREF':
> numpy/core/src/arrayobject.c:194: warning: passing arg 2 of `PyDict_Next'
> from incompatible pointer type
> In file included from numpy/core/src/arrayobject.c:508,
>                  from numpy/core/src/multiarraymodule.c:66:
> numpy/core/src/scalartypes.inc.src: At top level:
> numpy/core/src/scalartypes.inc.src:1651: warning: initialization from
> incompatible pointer type
> numpy/core/src/scalartypes.inc.src:1652: warning: initialization from
> incompatible pointer type
> numpy/core/src/scalartypes.inc.src:1653: warning: initialization from
> incompatible pointer type
> numpy/core/src/scalartypes.inc.src:1654: warning: initialization from
> incompatible pointer type
> numpy/core/src/scalartypes.inc.src: In function
> `object_arrtype_getsegcount':
> numpy/core/src/scalartypes.inc.src:2124: warning: passing arg 2 of
> pointer to function from incompatible pointer type
> numpy/core/src/scalartypes.inc.src: In function
> `initialize_numeric_types':
> numpy/core/src/scalartypes.inc.src:2345: warning: assignment from
> incompatible pointer type
>

> gcc: numpy/core/src/multiarraymodule.c
> In file included from numpy/core/src/arrayobject.c:509,
>                  from numpy/core/src/multiarraymodule.c:66:
> numpy/core/src/arraytypes.inc.src: In function `STRING_setitem':
> numpy/core/src/arraytypes.inc.src:328: warning: passing arg 3 of
> `PyString_AsStringAndSize' from incompatible pointer type
> numpy/core/src/arraytypes.inc.src: In function `VOID_copyswapn':
> numpy/core/src/arraytypes.inc.src:1236: warning: passing arg 2 of
> `PyDict_Next' from incompatible pointer type
> numpy/core/src/arraytypes.inc.src: In function `VOID_copyswap':
> numpy/core/src/arraytypes.inc.src:1264: warning: passing arg 2 of
> `PyDict_Next' from incompatible pointer type
> numpy/core/src/arraytypes.inc.src: In function `VOID_nonzero':
> numpy/core/src/arraytypes.inc.src:1487: warning: passing arg 2 of
> `PyDict_Next' from incompatible pointer type
> In file included from numpy/core/src/multiarraymodule.c:66:
> numpy/core/src/arrayobject.c: In function `_void_compare':
> numpy/core/src/arrayobject.c:4526: warning: passing arg 2 of
> `PyDict_Next' from incompatible pointer type
>

> gcc: build/src.linux-x86_64-2.5/numpy/core/src/umathmodule.c
> In file included from numpy/core/src/umathmodule.c.src:2023:
> numpy/core/src/ufuncobject.c: In function `PyUFunc_GetPyValues':
> numpy/core/src/ufuncobject.c:795: warning: long int format, different
> type arg (arg 4)
> numpy/core/src/ufuncobject.c:795: warning: long int format, different
> type arg (arg 5)
> numpy/core/src/ufuncobject.c: In function `ufunc_frompyfunc':
> numpy/core/src/ufuncobject.c:2987: warning: passing arg 3 of
> `PyString_AsStringAndSize' from incompatible pointer type
>

> gcc: numpy/numarray/_capi.c
> numpy/numarray/_capi.c: In function `getBufferSize':
> numpy/numarray/_capi.c:131: warning: passing arg 2 of pointer to function
> from incompatible pointer type
>

> gcc: numpy/random/mtrand/mtrand.c
> numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_cont0_array':
> numpy/random/mtrand/mtrand.c:238: warning: label `__pyx_L4' defined but
> not used
> numpy/random/mtrand/mtrand.c:236: warning: label `__pyx_L3' defined but
> not used
> numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_cont1_array':
> numpy/random/mtrand/mtrand.c:440: warning: label `__pyx_L12' defined but
> not used
> numpy/random/mtrand/mtrand.c:438: warning: label `__pyx_L11' defined but
> not used
> numpy/random/mtrand/mtrand.c:395: warning: label `__pyx_L9' defined but
> not used
> numpy/random/mtrand/mtrand.c:393: warning: label `__pyx_L8' defined but
> not used
> numpy/random/mtrand/mtrand.c:351: warning: label `__pyx_L6' defined but
> not used
> numpy/random/mtrand/mtrand.c:349: warning: label `__pyx_L5' defined but
> not used
> ...and similar warnings in other __pyx_f_6mtrand functions
>

> numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_discd_array':
> numpy/random/mtrand/mtrand.c:1460: warning: `__pyx_v_oa_data' might be
> used uninitialized in this function
> numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_discnp_array':
> numpy/random/mtrand/mtrand.c:1013: warning: `__pyx_v_op_data' might be
> used uninitialized in this function
> ... and other similar warnings in mtrand.c.

New description:

 Compiler warnings with gcc 3.3.5
 on Suse opteron x86_64 2.6.11 kernel.
 Numpy-1.0rc1.

 The following warnings were returned following
 python setup.py build, using python 2.5 .

 {{{
 gcc: _configtest.c
 _configtest.c: In function `main':
 _configtest.c:50: warning: int format, different type arg (arg 3)
 _configtest.c:57: warning: int format, different type arg (arg 3)
 _configtest.c:72: warning: int format, different type arg (arg 3)

 gcc: _configtest.c
 gcc -pthread _configtest.o -o _configtest
 _configtest.o(.text+0xd): In function `main':
 /users/gpk/DOWNLOADS/numpy-1.0rc1/_configtest.c:5: undefined reference to
 `exp'


 gcc: numpy/core/src/multiarraymodule.c
 In file included from numpy/core/src/multiarraymodule.c:66:
 numpy/core/src/arrayobject.c: In function `PyArray_Item_INCREF':
 numpy/core/src/arrayobject.c:167: warning: passing arg 2 of `PyDict_Next'
 from incompatible pointer type
 numpy/core/src/arrayobject.c: In function `PyArray_Item_XDECREF':
 numpy/core/src/arrayobject.c:194: warning: passing arg 2 of `PyDict_Next'
 from incompatible pointer type
 In file included from numpy/core/src/arrayobject.c:508,
                  from numpy/core/src/multiarraymodule.c:66:
 numpy/core/src/scalartypes.inc.src: At top level:
 numpy/core/src/scalartypes.inc.src:1651: warning: initialization from
 incompatible pointer type
 numpy/core/src/scalartypes.inc.src:1652: warning: initialization from
 incompatible pointer type
 numpy/core/src/scalartypes.inc.src:1653: warning: initialization from
 incompatible pointer type
 numpy/core/src/scalartypes.inc.src:1654: warning: initialization from
 incompatible pointer type
 numpy/core/src/scalartypes.inc.src: In function
 `object_arrtype_getsegcount':
 numpy/core/src/scalartypes.inc.src:2124: warning: passing arg 2 of pointer
 to function from incompatible pointer type
 numpy/core/src/scalartypes.inc.src: In function
 `initialize_numeric_types':
 numpy/core/src/scalartypes.inc.src:2345: warning: assignment from
 incompatible pointer type


 gcc: numpy/core/src/multiarraymodule.c
 In file included from numpy/core/src/arrayobject.c:509,
                  from numpy/core/src/multiarraymodule.c:66:
 numpy/core/src/arraytypes.inc.src: In function `STRING_setitem':
 numpy/core/src/arraytypes.inc.src:328: warning: passing arg 3 of
 `PyString_AsStringAndSize' from incompatible pointer type
 numpy/core/src/arraytypes.inc.src: In function `VOID_copyswapn':
 numpy/core/src/arraytypes.inc.src:1236: warning: passing arg 2 of
 `PyDict_Next' from incompatible pointer type
 numpy/core/src/arraytypes.inc.src: In function `VOID_copyswap':
 numpy/core/src/arraytypes.inc.src:1264: warning: passing arg 2 of
 `PyDict_Next' from incompatible pointer type
 numpy/core/src/arraytypes.inc.src: In function `VOID_nonzero':
 numpy/core/src/arraytypes.inc.src:1487: warning: passing arg 2 of
 `PyDict_Next' from incompatible pointer type
 In file included from numpy/core/src/multiarraymodule.c:66:
 numpy/core/src/arrayobject.c: In function `_void_compare':
 numpy/core/src/arrayobject.c:4526: warning: passing arg 2 of `PyDict_Next'
 from incompatible pointer type


 gcc: build/src.linux-x86_64-2.5/numpy/core/src/umathmodule.c
 In file included from numpy/core/src/umathmodule.c.src:2023:
 numpy/core/src/ufuncobject.c: In function `PyUFunc_GetPyValues':
 numpy/core/src/ufuncobject.c:795: warning: long int format, different type
 arg (arg 4)
 numpy/core/src/ufuncobject.c:795: warning: long int format, different type
 arg (arg 5)
 numpy/core/src/ufuncobject.c: In function `ufunc_frompyfunc':
 numpy/core/src/ufuncobject.c:2987: warning: passing arg 3 of
 `PyString_AsStringAndSize' from incompatible pointer type


 gcc: numpy/numarray/_capi.c
 numpy/numarray/_capi.c: In function `getBufferSize':
 numpy/numarray/_capi.c:131: warning: passing arg 2 of pointer to function
 from incompatible pointer type


 gcc: numpy/random/mtrand/mtrand.c
 numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_cont0_array':
 numpy/random/mtrand/mtrand.c:238: warning: label `__pyx_L4' defined but
 not used
 numpy/random/mtrand/mtrand.c:236: warning: label `__pyx_L3' defined but
 not used
 numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_cont1_array':
 numpy/random/mtrand/mtrand.c:440: warning: label `__pyx_L12' defined but
 not used
 numpy/random/mtrand/mtrand.c:438: warning: label `__pyx_L11' defined but
 not used
 numpy/random/mtrand/mtrand.c:395: warning: label `__pyx_L9' defined but
 not used
 numpy/random/mtrand/mtrand.c:393: warning: label `__pyx_L8' defined but
 not used
 numpy/random/mtrand/mtrand.c:351: warning: label `__pyx_L6' defined but
 not used
 numpy/random/mtrand/mtrand.c:349: warning: label `__pyx_L5' defined but
 not used
 ...and similar warnings in other __pyx_f_6mtrand functions


 numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_discd_array':
 numpy/random/mtrand/mtrand.c:1460: warning: `__pyx_v_oa_data' might be
 used uninitialized in this function
 numpy/random/mtrand/mtrand.c: In function `__pyx_f_6mtrand_discnp_array':
 numpy/random/mtrand/mtrand.c:1013: warning: `__pyx_v_op_data' might be
 used uninitialized in this function
 }}}

 ... and other similar warnings in mtrand.c.

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/305#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list