It think 4GB is not enough, especially using a VM (where the host needs a big chunk of mem to run the VM). The min I have heard of is 8GB, and thats not using a VM. But I would search and read the thread
Hello Everyone....:D:D Today I will present you all the ultimate guide for ROM development starting from Source to End. This guide will be applicable to all devices. So lets Start :D What is Android? :rolleyes: Android is the...
forum.xda-developers.com
And more specifically to compile a kernel. Maybe that takes less mem.
Introduction Hello everyone, I will be going over how to compile a kernel from beginning to end! Prerequisites: A Linux environment (preferably 64-bit) Knowledge of how to navigate the command line Common sense A learning spirit, there will be...
forum.xda-developers.com
I personally build on Win7 64 running Oracle VBox on a pc with 24GB.
This thread may not be the best, but it is "ask anything" and I have seen even more PC closed questions handled eagerly (I was surprised myself), and his question IS about compiling ANDROID. Just the wrong thread.