I finalty managed to compile:

For info, I removed the layout part to avoid the memory problem, by removing mentions of it in the following files:

 modified:   configure.ac
 modified:   doc/draw.rst
 modified:   src/graph/Makefile.am


Guillaume


Le 04/10/2012 12:09, Tiago Peixoto [via Main discussion list for the graph-tool project] a écrit :
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 <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
http://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (563 bytes) Download Attachment
--
Tiago de Paula Peixoto [hidden email]



If you reply to this email, your message will be added to the discussion below:
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Strange-save-load-graph-behaviour-tp4024788p4024795.html
To unsubscribe from Strange save / load_graph behaviour, click here.
NAML



View this message in context: [solved] virtual memory exhausted
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.