I'm building aosp in GCP cloud build with E2_HIGHCPU_32. . build/envsetup.sh lunch aosp_cf_x86_64_phone-userdebug m -j16 Sometimes build fails with out/target/product/vsoc_x86_64/obj/PACKAGING/proguard_dictionary_intermediates/out/target/common/obj/APPS/Stk_intermediates/classes.jar Step #2 - "build AOSP": [ 99% 184289/185981] //packages/services/AlternativeNetworkAccess:ONS signapk [common] Step #2 - "build AOSP": [ 99% 184290/185981] Copy: out/target/product/vsoc_x86_64/obj/APPS/ONS_intermediates/package.apk Step #2 - "build AOSP": [ 99% 184291/185981] Install: out/target/product/vsoc_x86_64/system/priv-app/ONS/ONS.apk Step #2 - "build AOSP": [ 99% 184292/185981] //frameworks/base/libs/WindowManager/Shell:WindowManager-Shell jar [common] Step #2 - "build AOSP": [ 99% 184293/185981] //frameworks/base/libs/WindowManager/Shell:WindowManager-Shell for resources [common] Step #2 - "build AOSP": [ 99% 184294/185981] //frameworks/base/packages/SystemUI:SystemUI-core for resources [common] Step #2 - "build AOSP": [ 99% 184295/185981] //frameworks/opt/telephony:telephony-common for javac [common] Step #2 - "build AOSP": [ 99% 184296/185981] //packages/apps/Launcher3:Launcher3QuickStep javac [common] Step #2 - "build AOSP": [ 99% 184297/185981] //packages/modules/Media/apex/framework:updatable-media align [common apex31] Step #2 - "build AOSP": 13:39:39 ninja failed with: exit status 137 (the build logs might vary but exit status code remains 137) This happens <10% of times but is there any tricks that could prevent the error completely? My assumption is that this is out of memory. GCP cloud build offers only machine with fairly low RAM-CPU ratio (e.g. E2_HIGHCPU_32 is 32vCPU 32GB machine) and I have tried to reduce number of jobs (by -j16) to offer more RAM per job, but not sure if that helps anything.
-- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/f7decf00-1c0b-4de1-9600-febeafbf6554n%40googlegroups.com.
