Created
April 2, 2014 14:21
-
-
Save jseabold/9935135 to your computer and use it in GitHub Desktop.
Failure of Cython build. `cython3 -a mwe.pyx && gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python3.3m -I/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include -o mwe.so mwe.c`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In file included from /home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0, | |
from /home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/ndarrayobject.h:17, | |
from /home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/arrayobject.h:4, | |
from mwe.c:346: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] | |
#warning "Using deprecated NumPy API, disable it by " \ | |
^ | |
In file included from /usr/include/python3.3m/pytime.h:6:0, | |
from /usr/include/python3.3m/Python.h:65, | |
from mwe.c:16: | |
/usr/include/python3.3m/object.h:117:44: error: expected ‘)’ before ‘*’ token | |
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) | |
^ | |
/usr/include/python3.3m/object.h:653:36: note: in definition of macro ‘PyType_HasFeature’ | |
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) | |
^ | |
/usr/include/python3.3m/longobject.h:15:9: note: in expansion of macro ‘PyType_FastSubclass’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
/usr/include/python3.3m/longobject.h:15:29: note: in expansion of macro ‘Py_TYPE’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
mwe.c:223:40: note: in expansion of macro ‘PyLong_Check’ | |
#define PyInt_Check(op) PyLong_Check(op) | |
^ | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:35:23: note: in expansion of macro ‘PyInt_Check’ | |
static NPY_INLINE int PyInt_Check(PyObject *op) { | |
^ | |
/usr/include/python3.3m/object.h:117:46: error: expected ‘)’ before ‘(’ token | |
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) | |
^ | |
/usr/include/python3.3m/object.h:653:36: note: in definition of macro ‘PyType_HasFeature’ | |
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) | |
^ | |
/usr/include/python3.3m/longobject.h:15:9: note: in expansion of macro ‘PyType_FastSubclass’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
/usr/include/python3.3m/longobject.h:15:29: note: in expansion of macro ‘Py_TYPE’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
mwe.c:223:40: note: in expansion of macro ‘PyLong_Check’ | |
#define PyInt_Check(op) PyLong_Check(op) | |
^ | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:35:23: note: in expansion of macro ‘PyInt_Check’ | |
static NPY_INLINE int PyInt_Check(PyObject *op) { | |
^ | |
/usr/include/python3.3m/object.h:117:51: error: expected ‘)’ before ‘->’ token | |
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) | |
^ | |
/usr/include/python3.3m/object.h:653:36: note: in definition of macro ‘PyType_HasFeature’ | |
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) | |
^ | |
/usr/include/python3.3m/longobject.h:15:9: note: in expansion of macro ‘PyType_FastSubclass’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
/usr/include/python3.3m/longobject.h:15:29: note: in expansion of macro ‘Py_TYPE’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
mwe.c:223:40: note: in expansion of macro ‘PyLong_Check’ | |
#define PyInt_Check(op) PyLong_Check(op) | |
^ | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:35:23: note: in expansion of macro ‘PyInt_Check’ | |
static NPY_INLINE int PyInt_Check(PyObject *op) { | |
^ | |
/usr/include/python3.3m/object.h:653:38: error: expected ‘)’ before ‘->’ token | |
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) | |
^ | |
/usr/include/python3.3m/object.h:655:35: note: in expansion of macro ‘PyType_HasFeature’ | |
#define PyType_FastSubclass(t,f) PyType_HasFeature(t,f) | |
^ | |
/usr/include/python3.3m/longobject.h:15:9: note: in expansion of macro ‘PyType_FastSubclass’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
mwe.c:223:40: note: in expansion of macro ‘PyLong_Check’ | |
#define PyInt_Check(op) PyLong_Check(op) | |
^ | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:35:23: note: in expansion of macro ‘PyInt_Check’ | |
static NPY_INLINE int PyInt_Check(PyObject *op) { | |
^ | |
/usr/include/python3.3m/object.h:653:56: error: expected ‘)’ before ‘!=’ token | |
#define PyType_HasFeature(t,f) (((t)->tp_flags & (f)) != 0) | |
^ | |
/usr/include/python3.3m/object.h:655:35: note: in expansion of macro ‘PyType_HasFeature’ | |
#define PyType_FastSubclass(t,f) PyType_HasFeature(t,f) | |
^ | |
/usr/include/python3.3m/longobject.h:15:9: note: in expansion of macro ‘PyType_FastSubclass’ | |
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS) | |
^ | |
mwe.c:223:40: note: in expansion of macro ‘PyLong_Check’ | |
#define PyInt_Check(op) PyLong_Check(op) | |
^ | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:35:23: note: in expansion of macro ‘PyInt_Check’ | |
static NPY_INLINE int PyInt_Check(PyObject *op) { | |
^ | |
In file included from mwe.c:348:0: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:46:0: warning: "PyInt_AS_LONG" redefined [enabled by default] | |
#define PyInt_AS_LONG PyLong_AsLong | |
^ | |
mwe.c:231:0: note: this is the location of the previous definition | |
#define PyInt_AS_LONG PyLong_AS_LONG | |
^ | |
In file included from mwe.c:348:0: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:62:0: warning: "PyString_Type" redefined [enabled by default] | |
#define PyString_Type PyBytes_Type | |
^ | |
mwe.c:182:0: note: this is the location of the previous definition | |
#define PyString_Type PyUnicode_Type | |
^ | |
In file included from mwe.c:348:0: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:63:0: warning: "PyString_Check" redefined [enabled by default] | |
#define PyString_Check PyBytes_Check | |
^ | |
mwe.c:183:0: note: this is the location of the previous definition | |
#define PyString_Check PyUnicode_Check | |
^ | |
In file included from mwe.c:348:0: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/npy_3kcompat.h:64:0: warning: "PyStringObject" redefined [enabled by default] | |
#define PyStringObject PyBytesObject | |
^ | |
mwe.c:181:0: note: this is the location of the previous definition | |
#define PyStringObject PyUnicodeObject | |
^ | |
In file included from /home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/ufuncobject.h:327:0, | |
from mwe.c:347: | |
/home/skipper/.local/lib/python3.3/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘_import_umath’ defined but not used [-Wunused-function] | |
_import_umath(void) | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment