On 10/04/2012 11:51 AM, Guillaume Gay wrote:
Hi Tiago, hi list,
Trying to compile from the github repo, I run into this error with make:
make[4]: entrant dans le répertoire « /home/guillaume/Python/src/graph-tool/src/graph/layout » CXX graph_sfdp.lo virtual memory exhausted: Cannot allocate memory make[4]: *** [graph_sfdp.lo] Erreur 1
It takes quite a bit of memory to compile graph-tool, due to the heavy use of template metaprogramming. Current compilers such as GCC still use much more memory than optimal... However if you have more than 4G ram, you should be able to compile it with a current GCC version. Just make sure there are no other programs using significant amounts of memory. If you still don't have enough ram, you can try compiling with clang which manages to use less memory than GCC. If you want to artificially increase the amount of virtual memory you have, you have to increase your swap. But note that if you rely too heavily on this, the compilation time will become very, very high. Cheers, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>