matplotlib install error

matplotlib install error

Posted by: bgeigie
Posted on: 2007-03-01 22:52:00

i have custom python 2.5 installation, successfully installed numpy-1.0.1. but failed in install matplotlib-0.90.0

[catalina]$ ../python2.5/bin/python setup.py install
GTK requires pygtk
GTKAgg requires pygtk
TKAgg requires TkInter
running install
running build
running build_py
running build_ext
building ' matplotlib.backends._ns_backend_agg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC

compile options: '-I/home/.makayla/codev/python2.5/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I. -I/home/.makayla/codev/python2.5/lib/python2.5/site-packages/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/home/.makayla/codev/python2.5/include/python2.5 -c'
extra options: '-DSCIPY=1'
gcc: src/_image.cpp
In file included from /home/.makayla/codev/python2.5/include/python2.5/Python.h:8,
from src/_image.cpp:7:
/home/.makayla/codev/python2.5/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.3/i486-linux/bits/os_defines.h:39,
from /usr/include/c++/3.3/i486-linux/bits/c++config.h:35,
from /usr/include/c++/3.3/iostream:44,
from src/_image.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
gcc: src/ft2font.cpp
In file included from /home/.makayla/codev/python2.5/include/python2.5/Python.h:8,
from CXX/Objects.hxx:9,
from CXX/Extensions.hxx:19,
from src/ft2font.h:18,
from src/ft2font.cpp:2:
/home/.makayla/codev/python2.5/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.3/i486-linux/bits/os_defines.h:39,
from /usr/include/c++/3.3/i486-linux/bits/c++config.h:35,
from /usr/include/c++/3.3/iosfwd:45,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/istream:44,
from /usr/include/c++/3.3/sstream:44,
from src/ft2font.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
gcc: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

In file included from /home/.makayla/codev/python2.5/include/python2.5/Python.h:8,
from CXX/Objects.hxx:9,
from CXX/Extensions.hxx:19,
from src/ft2font.h:18,
from src/ft2font.cpp:2:
/home/.makayla/codev/python2.5/include/python2.5/pyconfig.h:932:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/c++/3.3/i486-linux/bits/os_defines.h:39,
from /usr/include/c++/3.3/i486-linux/bits/c++config.h:35,
from /usr/include/c++/3.3/iosfwd:45,
from /usr/include/c++/3.3/ios:44,
from /usr/include/c++/3.3/istream:44,
from /usr/include/c++/3.3/sstream:44,
from src/ft2font.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the previous definition
gcc: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.

error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/home/.makayla/codev/python2.5/lib/python2.5/site-packages/numpy/core/include -I/usr/local/include -I/usr/include -I. -Isrc -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I. -I/home/.makayla/codev/python2.5/lib/python2.5/site-packages/numpy/core/include/freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 -I/home/.makayla/codev/python2.5/include/python2.5 -c src/ft2font.cpp -o build/temp.linux- i686-2.5/src/ft2font.o -DSCIPY=1" failed with exit status 1
[catalina]$

Re: matplotlib install error

Posted by: Se7enOf9
Posted on: 2007-03-02 02:15:00

Do you have question? cool

> gcc: Internal error: Killed (program cc1plus)
> gcc: Internal error: Killed (program cc1plus)

I guess dreamhost process killer is killing process. You could ask support.

.......

Re: matplotlib install error

Posted by: snapteam
Posted on: 2007-03-29 03:03:00

I'm getting the same error. In my case, I'm using the stock python. It crashes on the file src/agg.cxx instead of src/ft2font.cpp (as in your case). If I figure out a solution, I'll post it here.

Re: matplotlib install error

Posted by: wholly
Posted on: 2007-03-29 18:17:00

Don't forget to use "nice" in front of the command to encourage the system to let your process continue.

Wholly - Use promo code WhollyMindless for full 97$ credit. Let me know if you want something else!

Re: matplotlib install error

Posted by: snapteam
Posted on: 2007-03-29 18:27:00

It turns out (so support tells me) that the process is getting killed for memory usage not CPU. So, really, the only solution is to compile the package on some other computer or install a binary package.

Re: matplotlib install error

Posted by: ersinesen
Posted on: 2008-09-09 03:57:00


It is somewhat an old post, but in case anyone still needs a workaround:

Just compile the problematic source separately. In my case ft2font.cpp caused memory problem, hence build it separately as:

"gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ersinesen/local/lib/python2.4/site-packages/numpy/core/include -I/usr/include/freetype2 -I/usr/local/include -I/usr/include -I. -I/usr/include/python2.4 -c src/ft2font.cpp -o build/temp.linux-i686-2.4/src/ft2font.o"

Then continue setup.py build.

Tags: usrpythongccpylibsuccessfully installed