• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

[International / GSM] AOSP source code build: virtual memory exhausted

I'm trying to build the AOSP source code, but I'm getting a "virtual memory exhausted: Cannot allocate memory" error part way through the build. I didn't specify the build target via lunch. Rather, I went straight to make -j4.

I'm running the build on Ubuntu 12.04 LTS (x86) that's mounted on VirtualBox. The VM base memory is set at 1GB, but I've also created a 20GB swap partition. The drive is set to dynamically allocate/expand, with the cap set at 150GB.

Based on the above settings, I would think that it satisfies the requirements needed for a single build.

Thoughts?
 
I'm trying to build the AOSP source code, but I'm getting a "virtual memory exhausted: Cannot allocate memory" error part way through the build. I didn't specify the build target via lunch. Rather, I went straight to make -j4.

I'm running the build on Ubuntu 12.04 LTS (x86) that's mounted on VirtualBox. The VM base memory is set at 1GB, but I've also created a 20GB swap partition. The drive is set to dynamically allocate/expand, with the cap set at 150GB.

Based on the above settings, I would think that it satisfies the requirements needed for a single build.

Thoughts?

thehybridkiwi,

Not done this myself, but this page (outside of the bickering you'll see in there ;)) has a few suggestions that might help you:

php-fpm on vds6.net FreeBSD - LowEndTalk

Cheers and good luck!
 
Upvote 0
"I also make unrelated posts about unrelated posts." ... interesting thread lol

Well, I tried it again - this time specifying the target via lunch full-eng - the memory seemed to be in check while the build was progressing. Then, I hit a fatal road block that tells me Linux 64-bit is required. I re-read the ASOP build initialization page and, under "Installing required packages (Ubuntu 10.04 -- 11.10)", it says that a 64-bit version of Linux is required. But I'm using 12.04 so I simply skipped to the next section, which didn't say 64-bit is required.

I wish I had just gone with 64-bit to begin with. The whole process leading up to the build took sooo long... and I guess I have to do it all over again now.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones