Compiling scipy.sparse.sparsetools extension throws g++ internal error
![](https://secure.gravatar.com/avatar/6e298cec0f82936920673d521345ec0e.jpg?s=120&d=mm&r=g)
Dear scipy-user members, I am trying to build Scipy for my 32bit Redhat server and I am running into serious trouble, both with scipy 0.7.1 and the latest SVN version. I get the following error: building 'scipy.sparse.sparsetools._csr' extension compiling C++ sources C compiler: g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -fPIC creating build/temp.linux-i686-2.6/scipy/sparse/sparsetools compile options: '-I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/python2.6 -c' g++: scipy/sparse/sparsetools/csr_wrap.cxx g++: Internal error: Terminated (program cc1plus) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. g++: Internal error: Terminated (program cc1plus) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/python2.6 -c scipy/sparse/sparsetools/csr_wrap.cxx -o build/temp.linux-i686-2.6/scipy/sparse/sparsetools/csr_wrap.o" failed with exit status 1 and I really don't know how to fix this. I have tried both Numpy 1.3.0 and the latest Numpy SVN version but to no avail. I hope someone can point me in the right direction. Thanks so much, Best regards, Diederik
![](https://secure.gravatar.com/avatar/0c95cd90aef753bc89f1c48370eeb8b7.jpg?s=120&d=mm&r=g)
Diederik van Liere wrote:
error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/lib/python2.6/site-packages/numpy/core/include -I/usr/local/include/python2.6 -c scipy/sparse/sparsetools/csr_wrap.cxx -o build/temp.linux-i686-2.6/scipy/sparse/sparsetools/csr_wrap.o" failed with exit status 1
What's the version of g++ ?
and I really don't know how to fix this. I have tried both Numpy 1.3.0 and the latest Numpy SVN version but to no avail. I hope someone can point me in the right direction.
Changing numpy version is unlikely to fix anything here, as the error is a crash from the C++ compiler. One solution would be to update gcc (by compiling your own version), or more simply, if you don't need scipy.sparse to disable it in scipy/setup.py by commenting the sparse line. David
participants (2)
-
David Cournapeau
-
Diederik van Liere