I had the same problem trying to compile graph-tool in Ubuntu. At
first I tried to simply buy more memory, and went all the way up
to 12 G.
Unfortunately the exhausted memory problem was still there (so
this might more be some kind of a bug, no?). I then followed the
advice given in jully on a similar thread:
g.venkatasubramaniyan | 1 Jul 23:52
I noticed that the temp file( ccwxyz.s) getting bigger and
bigger before shooting this error.
So i did a "make -n" in the directory were did this error is
reported to get the exact compilation syntax and hand created
the .lo file myself (maually) for that file alone.
After that I was able to proceed with compilation successfully
and able to do examples. seems to a problem with the tools
libtool, etc ...
May be you can also try that way.
So I did this and it worked. More precisely, in the
graph-tool directory (after a make clean or on a fresh copy of
the source):
graph-tool $ ./autogen.sh
graph-tool $ ./configure
This last command issues several chunks of bash code (one for each
.cc files). Just copy-paste the section corresponding to
sfdp_layout and wait until it compiles that part. After that go
back to the source tree root and
It worked for me. I haven't tried with less memory of course, but
I suspect it should work.