We have noticed that large projects requiring more than 1GB of RAM cause the build to freeze.
This issue can be fixed by creating a Swap file.
First time setting up the swapfile: sudo fallocate -l 1g /myswapfile (or slower: sudo dd if=/dev/zero of=/myswapfile bs=1g) sudo chmod 600 /myswapfile sudo mkswap /swapfile
Then, whenever you want to use the swapfile: sudo swapon /myswapfile
To verify the swapfile is being used: free -k # You should see a bottom line “Swap:” sudo swapon -s # You should see /myswapfile, size, and space used