[webkit-gtk] Compiling the lib w/ 4GB RAM

Carlos Alberto Lopez Perez clopez at igalia.com
Mon Nov 15 04:25:15 PST 2021


On 15/11/2021 08:40, René wrote:
> Hi,
> I spent this weekend trying to build the lib from the source code.
> Unfortunately I can't compile the file Unifiedxxx_767013ce-4.cpp,
> because the HDD is swappin like crazy. It seems 4 GB is not enough for
> the process although I'm running on console only so I can free some
> memory.. Is there any possibility to split these huge source files so
> gcc can handle the process w/ "only" ,) 4 GB RAM. Thanks..
> Rene
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk
> 

You can try pass '-DENABLE_UNIFIED_BUILDS=OFF' to CMake, that why it
will compile each c++ file individually. However, you may run into build
errors due to missing headers because this build is not much tested as
the other.

You can also try to lower the number of parallel build process, so they
don't need to compete for the scarce RAM.

In any case, I'm not sure that you would be able to build with only 4GB.
If you can get a build host with more RAM that would be better.


More information about the webkit-gtk mailing list