There's also another solution, using ninja builder instead of make one (ninja should be easy to install from your distro's packages).

Once installed, you need to generate a CMake build, specifying ninja as builder (instead of the default, make option), and enabling  WITH_NINJA_POOL_JOBS:

cd my/new/builddir
cmake -G Ninja -D WITH_NINJA_POOL_JOBS=ON path/to/blender/source

You can then try to build and see if that works. If not, you can try to tweak the NINJA_MAX_NUM_PARALLEL_ options (e.g. set _LINK_JOBS and _COMPILE_HEAVY_JOBS to 1).

Those options try to be smart be enabling optimal parallelization for regular compile tasks, while enforcing heavy ones (and linking, which also eats a lot of RAM) to only run one at a time.

As a side note, it would indeed be interesting to know which module actually fails to build with 8GB.

Cheers,
Bastien

On 28/02/2020 09:58, Brecht Van Lommel wrote:
There's a few possible solutions:

* Enable WITH_CYCLES_NATIVE_ONLY and disable
WITH_LIBMV_SCHUR_SPECIALIZATIONS
* If it's running out of memory building a particular module, you can
disable that module in CMake (e.g. WITH_MOD_FLUID, ...). It would be
interesting to know which one.
* As a last resort, you can build with fewer threads.


On Fri, Feb 28, 2020 at 9:48 AM Deep Majumder<[email protected]>
wrote:

Hello everyone,

I am trying to build Blender (from its source on Git) so as to apply for
Google Suumer of Code 2020. However, when the build process (make) reaches
to 57%, the whole of my 8 GB RAM is consumed and my system starts thrashing
(eventually the build process gets killed). I am using Pop OS 19.10 64-bit
(which is based on Ubuntu 19.10 Eoan Ermine 64-bit), on an Intel Core i5
8th Gen processor, 8gb of RAM, and 4 GB of swap space on a 7200 rpm HDD.
Is there a workaround this or do I need to buy more RAM?

Regards,
Deep
_______________________________________________
Bf-committers mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-committers

_______________________________________________
Bf-committers mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-committers

_______________________________________________
Bf-committers mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to