[SciPy-Dev] scipy build failure

Nils Wagner nwagner at iam.uni-stuttgart.de
Mon Mar 12 14:06:06 EDT 2012


Hi all,

I cannot build the most recent scipy.
...

/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: 
warning: #warning "Using deprecated NumPy API, disable it 
by #defining NPY_NO_DEPRECATED_API" [-Wcpp]
In file included from 
scipy/sparse/sparsetools/py3k.h:23:0,
                  from 
scipy/sparse/sparsetools/csr_wrap.cxx:2835:
/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h: 
In function ‘PyObject* npy_PyFile_OpenFile(PyObject*, 
char*)’:
/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:258:60: 
warning: deprecated conversion from string constant to 
‘char*’ [-Wwrite-strings]
/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h: 
In function ‘PyObject* npy_PyFile_CloseFile(PyObject*)’:
/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:266:50: 
warning: deprecated conversion from string constant to 
‘char*’ [-Wwrite-strings]
/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_3kcompat.h:268:17: 
error: invalid conversion from ‘int’ to ‘PyObject* {aka 
_object*}’ [-fpermissive]
error: Command "g++ -fno-strict-aliasing -g -O2 -DNDEBUG 
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 
-fstack-protector -funwind-tables 
-fasynchronous-unwind-tables -g -fPIC 
-D__STDC_FORMAT_MACROS=1 
-I/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/include 
-I/usr/include/python2.7 -c 
scipy/sparse/sparsetools/csr_wrap.cxx -o 
build/temp.linux-x86_64-2.7/scipy/sparse/sparsetools/csr_wrap.o" 
failed with exit status 1

Nils



More information about the SciPy-Dev mailing list