[SciPy-User] Building problem - scipy/sparse/sparsetools/csr_wrap.cxx:2917: error: expected `)' before ‘PRIdPTR’

Ralf Gommers ralf.gommers@googlemail....
Wed Sep 15 08:51:01 CDT 2010


On Thu, Sep 9, 2010 at 1:15 AM, Nicolau Werneck <nwerneck@gmail.com> wrote:

> Hello, I am trying to build numpy and scipy for my newly built
> Python 2.7, and I am getting this error message that seems to be a
> classic problem happening again:
>
> compile options:
> '-I/usr/local/lib/python2.7/site-packages/numpy/core/include
> -I/usr/local/include/python2.7 -c' g++:
> scipy/sparse/sparsetools/csr_wrap.cxx
> scipy/sparse/sparsetools/csr_wrap.cxx: In function ‘int
> require_size(PyArrayObject*, npy_intp*, int)’:
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: error: expected `)' before
> ‘PRIdPTR’
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: warning: spurious trailing
> ‘%’ in format
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: warning: too many
> arguments for format
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: error: expected `)' before
> ‘PRIdPTR’
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: warning: spurious trailing
> ‘%’ in format
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: warning: too many
> arguments for format
> scipy/sparse/sparsetools/csr_wrap.cxx: In function ‘int
> require_size(PyArrayObject*, npy_intp*, int)’:
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: error: expected `)' before
> ‘PRIdPTR’
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: warning: spurious trailing
> ‘%’ in format
> scipy/sparse/sparsetools/csr_wrap.cxx:2910: warning: too many
> arguments for format
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: error: expected `)' before
> ‘PRIdPTR’
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: warning: spurious trailing
> ‘%’ in format
> scipy/sparse/sparsetools/csr_wrap.cxx:2917: warning: too many
> arguments for format
> error: Command "g++ -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g
> -fwrapv -O3 -Wall -fPIC
> -I/usr/local/lib/python2.7/site-packages/numpy/core/include
> -I/usr/local/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
>
>
> Numpy seems to have compiled fine. Any ideas of how to fix that?
>

This should be fixed in trunk (r6645), the fix is not in 0.8.0.

If that doesn't work for you, it would be helpful to know your OS, compiler
versions and exact numpy/scipy you're trying to build.

Cheers,
Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100915/1d3937a3/attachment.html 


More information about the SciPy-User mailing list