Hi,
It looks liike waf build works on pypy, the python bindings themselves do not build because of the error below, I wonder how possible it is to get this working with pypy?
I guess at worst it could be reimplementing using cffi, on the other hand it might just be tweaking the bindings a bit ..
$ ./setup.py build
running build
running build_py
running build_ext
building 'aubio._aubio' extension
cc -O2 -fPIC -Wimplicit -DUSE_LOCAL_AUBIO=1 -Iext -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -Igen -I../src -I../build/src -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -c ext/aubiomodule.c -o build/temp.linux-x86_64-2.7/ext/aubiomodule.o
ext/aubiomodule.c: In function ‘init_aubio’:
ext/aubiomodule.c:215:3: warning: implicit declaration of function ‘_import_array’ [-Wimplicit-function-declaration]
err = _import_array ();
^
cc -O2 -fPIC -Wimplicit -DUSE_LOCAL_AUBIO=1 -Iext -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -Igen -I../src -I../build/src -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -c ext/aubioproxy.c -o build/temp.linux-x86_64-2.7/ext/aubioproxy.o
cc -O2 -fPIC -Wimplicit -DUSE_LOCAL_AUBIO=1 -Iext -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -Igen -I../src -I../build/src -I/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include -c ext/ufuncs.c -o build/temp.linux-x86_64-2.7/ext/ufuncs.o
In file included from /usr/include/numpy/ufuncobject.h:4:0,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/npy_math.h: In function ‘__npy_inff’:
/usr/include/numpy/npy_math.h:26:17: error: unknown type name ‘npy_uint32’
const union { npy_uint32 __i; float __f;} __bint = {0x7f800000UL};
^
/usr/include/numpy/npy_math.h: In function ‘__npy_nanf’:
/usr/include/numpy/npy_math.h:32:17: error: unknown type name ‘npy_uint32’
const union { npy_uint32 __i; float __f;} __bint = {0x7fc00000UL};
^
/usr/include/numpy/npy_math.h: In function ‘__npy_pzerof’:
/usr/include/numpy/npy_math.h:38:17: error: unknown type name ‘npy_uint32’
const union { npy_uint32 __i; float __f;} __bint = {0x00000000UL};
^
/usr/include/numpy/npy_math.h: In function ‘__npy_nzerof’:
/usr/include/numpy/npy_math.h:44:17: error: unknown type name ‘npy_uint32’
const union { npy_uint32 __i; float __f;} __bint = {0x80000000UL};
^
In file included from ext/aubio-types.h:18:0,
from ext/ufuncs.c:2:
/usr/include/numpy/ufuncobject.h: At top level:
/usr/include/numpy/ufuncobject.h:29:17: error: unknown type name ‘NpyAuxData’
NpyAuxData *innerloopdata);
^
/usr/include/numpy/ufuncobject.h:41:17: error: unknown type name ‘NpyAuxData’
NpyAuxData *innerloopdata);
^
/usr/include/numpy/ufuncobject.h:73:33: error: unknown type name ‘NPY_CASTING’
NPY_CASTING casting,
^
/usr/include/numpy/ufuncobject.h:118:29: error: unknown type name ‘PyUFunc_StridedInnerLoopFunc’
PyUFunc_StridedInnerLoopFunc **out_innerloop,
^
/usr/include/numpy/ufuncobject.h:119:29: error: unknown type name ‘NpyAuxData’
NpyAuxData **out_innerloopdata,
^
/usr/include/numpy/ufuncobject.h:127:29: error: unknown type name ‘PyUFunc_MaskedStridedInnerLoopFunc’
PyUFunc_MaskedStridedInnerLoopFunc **out_innerloop,
^
/usr/include/numpy/ufuncobject.h:128:29: error: unknown type name ‘NpyAuxData’
NpyAuxData **out_innerloopdata,
^
/usr/include/numpy/ufuncobject.h:197:9: error: unknown type name ‘PyUFunc_TypeResolutionFunc’
PyUFunc_TypeResolutionFunc *type_resolver;
^
/usr/include/numpy/ufuncobject.h:210:9: error: unknown type name ‘PyUFunc_InnerLoopSelectionFunc’
PyUFunc_InnerLoopSelectionFunc *inner_loop_selector;
^
/usr/include/numpy/ufuncobject.h:214:9: error: unknown type name ‘PyUFunc_MaskedInnerLoopSelectionFunc’
PyUFunc_MaskedInnerLoopSelectionFunc *masked_inner_loop_selector;
^
/usr/include/numpy/ufuncobject.h:221:9: error: unknown type name ‘npy_uint32’
npy_uint32 *op_flags;
^
/usr/include/numpy/ufuncobject.h:228:9: error: unknown type name ‘npy_uint32’
npy_uint32 iter_flags;
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:59:6: error: nested redefinition of ‘enum NPY_TYPES’
enum NPY_TYPES { NPY_BOOL=0,
^
/usr/include/numpy/ndarraytypes.h:59:6: error: redeclaration of ‘enum NPY_TYPES’
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:50:6: note: originally defined here
enum NPY_TYPES { NPY_BOOL=0,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:59:21: error: redeclaration of enumerator ‘NPY_BOOL’
enum NPY_TYPES { NPY_BOOL=0,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:50:21: note: previous definition of ‘NPY_BOOL’ was here
enum NPY_TYPES { NPY_BOOL=0,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:60:21: error: redeclaration of enumerator ‘NPY_BYTE’
NPY_BYTE, NPY_UBYTE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:51:21: note: previous definition of ‘NPY_BYTE’ was here
NPY_BYTE, NPY_UBYTE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:60:31: error: redeclaration of enumerator ‘NPY_UBYTE’
NPY_BYTE, NPY_UBYTE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:51:31: note: previous definition of ‘NPY_UBYTE’ was here
NPY_BYTE, NPY_UBYTE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:61:21: error: redeclaration of enumerator ‘NPY_SHORT’
NPY_SHORT, NPY_USHORT,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:52:21: note: previous definition of ‘NPY_SHORT’ was here
NPY_SHORT, NPY_USHORT,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:61:32: error: redeclaration of enumerator ‘NPY_USHORT’
NPY_SHORT, NPY_USHORT,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:52:32: note: previous definition of ‘NPY_USHORT’ was here
NPY_SHORT, NPY_USHORT,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:62:21: error: redeclaration of enumerator ‘NPY_INT’
NPY_INT, NPY_UINT,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:53:21: note: previous definition of ‘NPY_INT’ was here
NPY_INT, NPY_UINT,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:62:30: error: redeclaration of enumerator ‘NPY_UINT’
NPY_INT, NPY_UINT,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:53:30: note: previous definition of ‘NPY_UINT’ was here
NPY_INT, NPY_UINT,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:63:21: error: redeclaration of enumerator ‘NPY_LONG’
NPY_LONG, NPY_ULONG,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:54:21: note: previous definition of ‘NPY_LONG’ was here
NPY_LONG, NPY_ULONG,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:63:31: error: redeclaration of enumerator ‘NPY_ULONG’
NPY_LONG, NPY_ULONG,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:54:31: note: previous definition of ‘NPY_ULONG’ was here
NPY_LONG, NPY_ULONG,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:64:21: error: redeclaration of enumerator ‘NPY_LONGLONG’
NPY_LONGLONG, NPY_ULONGLONG,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:55:21: note: previous definition of ‘NPY_LONGLONG’ was here
NPY_LONGLONG, NPY_ULONGLONG,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:64:35: error: redeclaration of enumerator ‘NPY_ULONGLONG’
NPY_LONGLONG, NPY_ULONGLONG,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:55:35: note: previous definition of ‘NPY_ULONGLONG’ was here
NPY_LONGLONG, NPY_ULONGLONG,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:65:21: error: redeclaration of enumerator ‘NPY_FLOAT’
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:56:21: note: previous definition of ‘NPY_FLOAT’ was here
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:65:32: error: redeclaration of enumerator ‘NPY_DOUBLE’
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:56:32: note: previous definition of ‘NPY_DOUBLE’ was here
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:65:44: error: redeclaration of enumerator ‘NPY_LONGDOUBLE’
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:56:44: note: previous definition of ‘NPY_LONGDOUBLE’ was here
NPY_FLOAT, NPY_DOUBLE, NPY_LONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:66:21: error: redeclaration of enumerator ‘NPY_CFLOAT’
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:57:21: note: previous definition of ‘NPY_CFLOAT’ was here
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:66:33: error: redeclaration of enumerator ‘NPY_CDOUBLE’
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:57:33: note: previous definition of ‘NPY_CDOUBLE’ was here
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:66:46: error: redeclaration of enumerator ‘NPY_CLONGDOUBLE’
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:57:46: note: previous definition of ‘NPY_CLONGDOUBLE’ was here
NPY_CFLOAT, NPY_CDOUBLE, NPY_CLONGDOUBLE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:67:21: error: redeclaration of enumerator ‘NPY_OBJECT’
NPY_OBJECT=17,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:58:21: note: previous definition of ‘NPY_OBJECT’ was here
NPY_OBJECT=17,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:68:21: error: redeclaration of enumerator ‘NPY_STRING’
NPY_STRING, NPY_UNICODE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:59:21: note: previous definition of ‘NPY_STRING’ was here
NPY_STRING, NPY_UNICODE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:68:33: error: redeclaration of enumerator ‘NPY_UNICODE’
NPY_STRING, NPY_UNICODE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:59:33: note: previous definition of ‘NPY_UNICODE’ was here
NPY_STRING, NPY_UNICODE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:69:21: error: redeclaration of enumerator ‘NPY_VOID’
NPY_VOID,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:60:21: note: previous definition of ‘NPY_VOID’ was here
NPY_VOID,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:74:21: error: redeclaration of enumerator ‘NPY_DATETIME’
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:65:21: note: previous definition of ‘NPY_DATETIME’ was here
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:74:35: error: redeclaration of enumerator ‘NPY_TIMEDELTA’
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:65:35: note: previous definition of ‘NPY_TIMEDELTA’ was here
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:74:50: error: redeclaration of enumerator ‘NPY_HALF’
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:65:50: note: previous definition of ‘NPY_HALF’ was here
NPY_DATETIME, NPY_TIMEDELTA, NPY_HALF,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:76:21: error: redeclaration of enumerator ‘NPY_NTYPES’
NPY_NTYPES,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:67:21: note: previous definition of ‘NPY_NTYPES’ was here
NPY_NTYPES,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:77:21: error: redeclaration of enumerator ‘NPY_NOTYPE’
NPY_NOTYPE,
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:68:21: note: previous definition of ‘NPY_NOTYPE’ was here
NPY_NOTYPE,
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:78:21: error: redeclaration of enumerator ‘NPY_CHAR’
NPY_CHAR, /* special flag */
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:69:21: note: previous definition of ‘NPY_CHAR’ was here
NPY_CHAR, /* special flag */
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:79:21: error: redeclaration of enumerator ‘NPY_USERDEF’
NPY_USERDEF=256, /* leave room for characters */
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:70:21: note: previous definition of ‘NPY_USERDEF’ was here
NPY_USERDEF=256, /* leave room for characters */
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:82:21: error: redeclaration of enumerator ‘NPY_NTYPES_ABI_COMPATIBLE’
NPY_NTYPES_ABI_COMPATIBLE=21
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:73:21: note: previous definition of ‘NPY_NTYPES_ABI_COMPATIBLE’ was here
NPY_NTYPES_ABI_COMPATIBLE=21
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:423:3: error: conflicting types for ‘PyArray_Dims’
} PyArray_Dims;
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:45:3: note: previous declaration of ‘PyArray_Dims’ was here
} PyArray_Dims;
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:21:23: error: conflicting types for ‘PyObject’
#define PyArray_Descr PyObject
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:86:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/object.h:35:3: note: previous declaration of ‘PyObject’ was here
} PyObject;
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:20:23: error: conflicting types for ‘PyObject’
#define PyArrayObject PyObject
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:21:23: note: previous declaration of ‘PyObject’ was here
#define PyArray_Descr PyObject
^
In file included from /usr/include/numpy/ndarrayobject.h:17:0,
from /usr/include/numpy/arrayobject.h:4,
from /usr/include/numpy/ufuncobject.h:231,
from ext/aubio-types.h:18,
from ext/ufuncs.c:2:
/usr/include/numpy/ndarraytypes.h:738:9: error: unknown type name ‘npy_int32’
npy_int32 month, day, hour, min, sec, us, ps, as;
^
/usr/include/numpy/ndarraytypes.h:744:9: error: unknown type name ‘npy_int32’
npy_int32 sec, us, ps, as;
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:46:23: error: conflicting types for ‘_PyPyArray_NDIM’
#define _PyArray_NDIM _PyPyArray_NDIM
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:46:23: note: previous declaration of ‘_PyPyArray_NDIM’ was here
#define _PyArray_NDIM _PyPyArray_NDIM
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:506:17: note: in expansion of macro ‘_PyArray_NDIM’
PyAPI_FUNC(int) _PyArray_NDIM(PyObject *arg0);
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:158:23: error: conflicting types for ‘_PyPyArray_DATA’
#define _PyArray_DATA _PyPyArray_DATA
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:158:23: note: previous declaration of ‘_PyPyArray_DATA’ was here
#define _PyArray_DATA _PyPyArray_DATA
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:498:20: note: in expansion of macro ‘_PyArray_DATA’
PyAPI_FUNC(void *) _PyArray_DATA(PyObject *arg0);
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:188:30: error: expected identifier or ‘(’ before ‘char’
#define PyArray_BYTES(arr) ((char *)PyArray_DATA(arr))
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:158:23: error: expected ‘)’ before ‘_PyPyArray_DATA’
#define _PyArray_DATA _PyPyArray_DATA
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:475:22: error: conflicting types for ‘_PyPyArray_DIM’
#define _PyArray_DIM _PyPyArray_DIM
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:475:22: note: previous declaration of ‘_PyPyArray_DIM’ was here
#define _PyArray_DIM _PyPyArray_DIM
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:499:24: note: in expansion of macro ‘_PyArray_DIM’
PyAPI_FUNC(Py_ssize_t) _PyArray_DIM(PyObject *arg0, Py_ssize_t arg1);
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:233:25: error: conflicting types for ‘_PyPyArray_STRIDE’
#define _PyArray_STRIDE _PyPyArray_STRIDE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:233:25: note: previous declaration of ‘_PyPyArray_STRIDE’ was here
#define _PyArray_STRIDE _PyPyArray_STRIDE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:509:24: note: in expansion of macro ‘_PyArray_STRIDE’
PyAPI_FUNC(Py_ssize_t) _PyArray_STRIDE(PyObject *arg0, Py_ssize_t arg1);
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:239:24: error: conflicting types for ‘_PyPyArray_FLAGS’
#define _PyArray_FLAGS _PyPyArray_FLAGS
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:239:24: note: previous declaration of ‘_PyPyArray_FLAGS’ was here
#define _PyArray_FLAGS _PyPyArray_FLAGS
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:501:17: note: in expansion of macro ‘_PyArray_FLAGS’
PyAPI_FUNC(int) _PyArray_FLAGS(PyObject *arg0);
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:265:27: error: conflicting types for ‘_PyPyArray_ITEMSIZE’
#define _PyArray_ITEMSIZE _PyPyArray_ITEMSIZE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:265:27: note: previous declaration of ‘_PyPyArray_ITEMSIZE’ was here
#define _PyArray_ITEMSIZE _PyPyArray_ITEMSIZE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:504:17: note: in expansion of macro ‘_PyArray_ITEMSIZE’
PyAPI_FUNC(int) _PyArray_ITEMSIZE(PyObject *arg0);
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:299:23: error: conflicting types for ‘_PyPyArray_TYPE’
#define _PyArray_TYPE _PyPyArray_TYPE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:299:23: note: previous declaration of ‘_PyPyArray_TYPE’ was here
#define _PyArray_TYPE _PyPyArray_TYPE
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:513:17: note: in expansion of macro ‘_PyArray_TYPE’
PyAPI_FUNC(int) _PyArray_TYPE(PyObject *arg0);
^
In file included from ext/aubio-types.h:14:0,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/numpy/arrayobject.h:147:54: error: expected ‘)’ before ‘&’ token
#define PyArray_CHKFLAGS(m, flags) (PyArray_FLAGS(m) & (flags))
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/usr/include/numpy/__ufunc_api.h: In function ‘_import_umath’:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:410:31: warning: initialization from incompatible pointer type [enabled by default]
#define PyImport_ImportModule PyPyImport_ImportModule
^
ext/ufuncs.c: In function ‘add_ufuncs’:
ext/ufuncs.c:95:3: warning: passing argument 1 of ‘PyPyModule_GetDict’ from incompatible pointer type [enabled by default]
dict = PyModule_GetDict(m);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:473:26: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyModule_GetDict PyPyModule_GetDict
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:243:24: note: in expansion of macro ‘PyModule_GetDict’
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *arg0);
^
ext/ufuncs.c:95:8: warning: assignment from incompatible pointer type [enabled by default]
dict = PyModule_GetDict(m);
^
ext/ufuncs.c:99:3: warning: passing argument 1 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "unwrap2pi", f);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:99:3: warning: passing argument 3 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "unwrap2pi", f);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:100:3: warning: passing argument 1 of ‘PyPy_DecRef’ from incompatible pointer type [enabled by default]
Py_DECREF(f);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:274:19: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define Py_DecRef PyPy_DecRef
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:472:18: note: in expansion of macro ‘Py_DecRef’
PyAPI_FUNC(void) Py_DecRef(PyObject *arg0);
^
ext/ufuncs.c:106:3: warning: passing argument 1 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "freqtomidi", g);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:106:3: warning: passing argument 3 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "freqtomidi", g);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:107:3: warning: passing argument 1 of ‘PyPy_DecRef’ from incompatible pointer type [enabled by default]
Py_DECREF(g);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:274:19: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define Py_DecRef PyPy_DecRef
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:472:18: note: in expansion of macro ‘Py_DecRef’
PyAPI_FUNC(void) Py_DecRef(PyObject *arg0);
^
ext/ufuncs.c:113:3: warning: passing argument 1 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "miditofreq", h);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:113:3: warning: passing argument 3 of ‘PyPyDict_SetItemString’ from incompatible pointer type [enabled by default]
PyDict_SetItemString(dict, "miditofreq", h);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:220:30: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define PyDict_SetItemString PyPyDict_SetItemString
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:91:17: note: in expansion of macro ‘PyDict_SetItemString’
PyAPI_FUNC(int) PyDict_SetItemString(PyObject *arg0, const char *arg1, PyObject *arg2);
^
ext/ufuncs.c:114:3: warning: passing argument 1 of ‘PyPy_DecRef’ from incompatible pointer type [enabled by default]
Py_DECREF(h);
^
In file included from /mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/Python.h:81:0,
from ext/aubio-types.h:1,
from ext/ufuncs.c:2:
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_macros.h:274:19: note: expected ‘struct PyObject *’ but argument is of type ‘struct PyObject *’
#define Py_DecRef PyPy_DecRef
^
/mnt/data/home/stu/.virtualenvs/shoebot-pgi-pypy/include/pypy_decl.h:472:18: note: in expansion of macro ‘Py_DecRef’
PyAPI_FUNC(void) Py_DecRef(PyObject *arg0);
^
error: command 'cc' failed with exit status 1
pending