On 3 Mar 2014, at 09:26, Miroslav Kuchta <[email protected]> wrote:

> Hi,
> 
> I am trying to compile dolfin pulled from master branch at bitbucket but I am
> getting *virtual memory exhaused* error when building 
> PolyhedralMeshGenerator.cpp.o.
> I have 4GB of RAM + 4GB of swap available and the error occurs when 3.4GB of 
> RAM
> and about 2.4GB of swap are used. I use *gcc (Ubuntu 4.8.2-16ubuntu4) 4.8.2*.
> Does anyone have similar problems and what are some options to reduce the 
> memory
> usage?

Unfortunately, compiling CGAL uses a lot of memory. You can disable CGAL in 
DOLFIN using the CMake option

    -DDOLFIN_ENABLE_CGAL=off

Garth


> At the moment I can only compile dolfin if I don't include -Wall -Werror 
> -pedantic -g
> flags. Thanks for help.
> 
> Regards, Miro
> 
> _______________________________________________
> fenics-support mailing list
> [email protected]
> http://fenicsproject.org/mailman/listinfo/fenics-support

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to