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

Nicolau Werneck nwerneck@gmail....
Wed Sep 8 12:15:01 CDT 2010


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?

Thanks,
   ++nicolau



-- 
Nicolau Werneck <nwerneck@gmail.com>         25A1 1BCB 714C 29E7 D84C
http://www.lti.pcs.usp.br/~nwerneck                   8514 152D 103F B001 8740
Linux user #460716


More information about the SciPy-User mailing list