-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Python 3.6 numpy 1.16.1
g++ -fPIC -DNDEBUG -O2 -I/usr/include/python3.6 -I/usr/local/lib/python3.6/site-packages/numpy/core/include/ -I/usr/local/include -I/usr/include/python3.6 -I/usr/local/lib/python3.6/site-packages/numpy/core/include/ -I./src -I/usr/local/cuda/include -c src/knn.cpp -o build/knn.o
In file included from /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:0,
from /usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from src/knn.cpp:3:
/usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^
[...]
src/knn.cpp: In function 'void init_module_knn()':
/usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1541:35: error: return-statement with a value, in function returning 'void' [-fpermissive]
#define NUMPY_IMPORT_ARRAY_RETVAL NULL
^
/usr/local/lib/python3.6/site-packages/numpy/core/include/numpy/__multiarray_api.h:1546:151: note: in expansion of macro 'NUMPY_IMPORT_ARRAY_RETVAL'
#define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NUMPY_IMPORT_ARRAY_RETVAL; } }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels