Out of memory compiling cling on WSL2

Some instructions for ROOT on WSL2 can be found at Complete ROOT Installation Instructions for WSL (Ubuntu 18.04 on Windows 10) (and other posts linked from there).
As Bertrand mentions you should not need to compile ROOT from source.