[SciPy-Dev] scipy build failure

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Mar 12 14:10:31 CDT 2012


On Mon, 12 Mar 2012 12:35:55 -0600
  Charles R Harris <charlesr.harris@gmail.com> wrote:
> 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

Hi Chuck,

I have applied your patch. It works fine for me. Thank you 
very much.

Cheers,
                         Nils


More information about the SciPy-Dev mailing list