Compiling ROOT with 12 GB of RAM is challenging


since couple of releases, compiling ROOT on a machine with 12 GB of RAM is impossible. Linking of RIO takes more than 11 GB of RAM. I am speaking about using g++ compiler.

I was finally able to link it by changing linker to mold. Do you have perhaps similar observations?


Never seen this (but I’m working on Windows). Can you try maybe to use less cores (just guessing here)?

When it comes to linking RIO, all other cores are already done and the single job is running.

Then I don’t know. And FYI, I just built ROOT on Windows with 8 Gb of RAM…

Hmm are you using ninja to build? maybe switching to unix-makefile solves the issue?