[SciPy-Dev] scipy build failure

Charles R Harris charlesr.harris@gmail....
Mon Mar 12 13:35:55 CDT 2012


On Mon, Mar 12, 2012 at 12:06 PM, Nils Wagner
<nwagner@iam.uni-stuttgart.de>wrote:

> 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
>

I suspect the g++ compiler is the reason I didn't see this. Try the
attached patch on numpy.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20120312/16f60d1e/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boo-boo.patch
Type: text/x-diff
Size: 761 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-dev/attachments/20120312/16f60d1e/attachment.bin 


More information about the SciPy-Dev mailing list