[General Questions and Answers] QuBeX:
Hi guys, i'm trying to build AOKP ICS for my nexus one in a Ubuntu 10.04 VM with 4GB RAM and 4 cores assigned. But, think, when trying to build framework it stops and gives me a RAM error. Anyway here is the log:

jorge@jorge-desktop:~$ sudo -i
root@jorge-desktop:~# . build/envsetup.sh
including device/acer/picasso/vendorsetup.sh
including device/amazon/otter/vendorsetup.sh
including device/asus/tf201/vendorsetup.sh
including device/hp/tenderloin/vendorsetup.sh
including device/htc/bravo/vendorsetup.sh
including device/htc/inc/vendorsetup.sh
including device/htc/passion/vendorsetup.sh
including device/htc/supersonic/vendorsetup.sh
including device/htc/vivow/vendorsetup.sh
including device/lge/p999/vendorsetup.sh
including device/moto/stingray/vendorsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/crespo4g/vendorsetup.sh
including device/samsung/crespo/vendorsetup.sh
including device/samsung/d2tmo/vendorsetup.sh
including device/samsung/espressowifi/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/p5/vendorsetup.sh
including device/samsung/p5wifi/vendorsetup.sh
including device/samsung/skyrocket/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/samsung/vibrantmtd/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
root@jorge-desktop:~# lunch

You're building on Linux

Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. aokp_passion-userdebug
5. aokp_passion-eng
6. cm_d2tmo-eng
7. full_panda-eng
8. aokp_maguro-userdebug
9. aokp_toro-userdebug
10. aokp_toroplus-userdebug
11. aokp_crespo-userdebug
12. aokp_crespo4g-userdebug
13. aokp_captivatemtd-userdebug
14. aokp_d2tmo-userdebug
15. aokp_espressowifi-userdebug
16. aokp_fascinatemtd-userdebug
17. aokp_galaxysmtd-userdebug
18. aokp_hercules-userdebug
19. aokp_mesmerizemtd-userdebug
20. aokp_n7000-userdebug
21. aokp_p1c-userdebug
22. aokp_p4-userdebug
23. aokp_p4vzw-userdebug
24. aokp_p4wifi-userdebug
25. aokp_p5-userdebug
26. aokp_p5wifi-userdebug
27. aokp_p990-userdebug
28. aokp_p999-userdebug
29. aokp_picasso-userdebug
30. aokp_pyramid-userdebug
31. aokp_showcasemtd-userdebug
32. aokp_skyrocket-userdebug
33. aokp_stingray-userdebug
34. aokp_tf101-userdebug
35. aokp_tf201-userdebug
36. aokp_vibrantmtd-userdebug
37. aokp_ville-userdebug
38. aokp_vivow-userdebug
39. aokp_wingray-userdebug

Which would you like? [full-eng] 4

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=aokp_passion
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76I
============================================

root@jorge-desktop:~# make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=aokp_passion
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76I
============================================
build/core/Makefile:36: atención: se imponen comandos para el objetivo `out/target/product/passion/system/bin/e2fsck'
build/core/base_rules.mk:523: atención: se ignoran las instrucciones viejas para el objetivo `out/target/product/passion/system/bin/e2fsck'
build/core/Makefile:36: atención: se imponen comandos para el objetivo `out/target/product/passion/system/lib/libOmxVidEnc.so'
build/core/base_rules.mk:523: atención: se ignoran las instrucciones viejas para el objetivo `out/target/product/passion/system/lib/libOmxVidEnc.so'
build/core/Makefile:36: atención: se imponen comandos para el objetivo `out/target/product/passion/system/app/Superuser.apk'
build/core/base_rules.mk:523: atención: se ignoran las instrucciones viejas para el objetivo `out/target/product/passion/system/app/Superuser.apk'
No private recovery resources for TARGET_DEVICE passion
build/core/tasks/kernel.mk:26: ***************************************************************
build/core/tasks/kernel.mk:27: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:28: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:29: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:30: * source repository to kernel/htc/qsd8k
build/core/tasks/kernel.mk:31: * See http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building
build/core/tasks/kernel.mk:32: * for more information *
build/core/tasks/kernel.mk:33: ***************************************************************
build/core/tasks/kernel.mk:140: atención: se imponen comandos para el objetivo `out/target/product/passion/kernel'
build/core/Makefile:36: atención: se ignoran las instrucciones viejas para el objetivo `out/target/product/passion/kernel'
target Dex: framework

UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.HashSet.<init>(HashSet.java:125)
at com.android.dx.dex.code.OutputFinisher.getAllConstants(OutputFinisher.java:153)
at com.android.dx.dex.code.DalvCode.getInsnConstants(DalvCode.java:176)
at com.android.dx.dex.file.CodeItem.addContents(CodeItem.java:132)
at com.android.dx.dex.file.MixedItemSection.prepare0(MixedItemSection.java:280)
at com.android.dx.dex.file.Section.prepare(Section.java:214)
at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:504)
at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216)
at com.android.dx.command.dexer.Main.writeDex(Main.java:574)
at com.android.dx.command.dexer.Main.run(Main.java:218)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:95)
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Error 3