2562-10-18 23:46 GMT+07:00, 'Colin Cross' via Android Building
<android-building@googlegroups.com>:
> You'll need to pass a lower -j value to m.  The parallelism selection only
> takes the number of CPUs into account, and not the total memory.  This is
> something we are looking to improve on.
>
> On Fri, Oct 18, 2019 at 8:46 AM Zelong <gongzel...@gmail.com> wrote:
>
>> zelong@zelong-ThinkPad-T430:/media/zelong/2828a0f1-cc41-4428-854d-a7a18c59f5c6/android_source$
>> m
>> ============================================
>> PLATFORM_VERSION_CODENAME=R
>> PLATFORM_VERSION=R
>> TARGET_PRODUCT=aosp_arm
>> TARGET_BUILD_VARIANT=eng
>> TARGET_BUILD_TYPE=release
>> TARGET_ARCH=arm
>> TARGET_ARCH_VARIANT=armv7-a-neon
>> TARGET_CPU_VARIANT=generic
>> HOST_ARCH=x86_64
>> HOST_2ND_ARCH=x86
>> HOST_OS=linux
>> HOST_OS_EXTRA=Linux-4.15.0-65-generic-x86_64-Ubuntu-16.04.6-LTS
>> HOST_CROSS_OS=windows
>> HOST_CROSS_ARCH=x86
>> HOST_CROSS_2ND_ARCH=x86_64
>> HOST_BUILD_TYPE=release
>> BUILD_ID=QT
>> OUT_DIR=out
>> ============================================
>> [ 47% 627/1310] //packages/apps/CarrierConfig:CarrierConfig r8
>> FAILED:
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex/CarrierConfig.jar
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/proguard_dictionary
>> rm -rf
>> "out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex"
>> && mkdir -p
>> "out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex"
>> && rm -f
>> "out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/proguard_dictionary"
>> && out/soong/host/linux-x86/bin/r8-compat-proguard -JXX:OnError='cat
>> hs_err_pid%p.log' -JXX:CICompilerCount=6
>> -JXX:+UseDynamicNumberOfGCThreads
>> -injars
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/javac/CarrierConfig.jar
>> --output
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex
>> --force-proguard-compatibility --no-data-resources -printmapping
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/proguard_dictionary
>> --min-api 10000  -libraryjars
>> out/soong/.intermediates/libcore/mmodules/core_platform_api/core.platform.api.stubs/android_common/turbine-combined/core.platform.api.stubs.jar:out/soong/.intermediates/libcore/core-lambda-stubs/android_common/turbine-combined/core-lambda-stubs.jar
>> -libraryjars
>> out/soong/.intermediates/frameworks/base/ext/android_common/turbine-combined/ext.jar:out/soong/.intermediates/frameworks/base/framework/android_common/turbine-jarjar/framework.jar:out/soong/.intermediates/frameworks/base/media/updatable_media_stubs/android_common/turbine-combined/updatable_media_stubs.jar:out/soong/.intermediates/frameworks/opt/telephony/telephony-common/android_common/turbine-jarjar/telephony-common.jar
>> -forceprocessing -include build/make/core/proguard.flags -include
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/gen/proguard.options
>> -include packages/apps/CarrierConfig/proguard.flags -dontoptimize
>> -dontobfuscate --debug && touch
>> "out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/proguard_dictionary"
>> && out/soong/host/linux-x86/bin/soong_zip --ignore_missing_files -L 0 -o
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex/classes.dex.jar
>> -C
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex
>> -f
>> "out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex/classes*.dex"
>> && out/soong/host/linux-x86/bin/merge_zips -D -stripFile "**/*.class"
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex/CarrierConfig.jar
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/dex/classes.dex.jar
>> out/soong/.intermediates/packages/apps/CarrierConfig/CarrierConfig/android_common/javac/CarrierConfig.jar
>> OpenJDK 64-Bit Server VM warning: INFO:
>> os::commit_memory(0x00000000aef00000, 272629760, 0) failed; error='Not
>> enough space' (errno=12)
>> #
>> *# There is insufficient memory for the Java Runtime Environment to
>> continue.*
>> *# Native memory allocation (mmap) failed to map 272629760 bytes for
>> committing reserved memory.*
>> *# An error report file with more information is saved as:*
>> *#
>> /media/zelong/2828a0f1-cc41-4428-854d-a7a18c59f5c6/android_source/hs_err_pid3639.log*
>> #
>> # -XX:OnError="cat hs_err_pid%p.log"
>> #   Executing /bin/sh -c "cat hs_err_pid3639.log" ...
>> os::fork_and_exec failed: Not enough space (ENOMEM=12)
>> [ 48% 631/1310] R8:
>> out/target/common/obj/APPS/Dialer_intermediates/dex/classes.dex
>> Stripped invalid locals information from 1 method.
>> In
>> ./out/target/common/obj/APPS/Dialer_intermediates/classes.jar:android/support/v7/widget/Toolbar.class:
>>   Methods with invalid locals information:
>>   void android.support.v7.widget.Toolbar.onLayout(boolean, int, int, int,
>> int)
>>   Type information in locals-table is inconsistent. Cannot constrain
>> type:
>> INT for value: v419 by constraint OBJECT.
>> Some warnings are typically a sign of using an outdated Java toolchain.
>> To
>> fix, recompile the source with an updated toolchain.
>> 15:09:51 ninja failed with: exit status 1
>>
>> *#### failed to build some targets (12:22 (mm:ss)) ####*
>>
>> zelong@zelong-ThinkPad-T430:/media/zelong/2828a0f1-cc41-4428-854d-a7a18c59f5c6/android_source$
>> free -m
>>               total        used        free      shared  buff/cache
>> available
>> Mem:          15742        8030        6376         575        1335
>> 6795
>> Swap:           975         861         114
>>
>> Here is my Ubuntu configuration:
>> Memory 15.4 GiB
>>
>> Processor Intel® Core™ i7-3520M CPU @ 2.90GHz × 4
>>
>> Intel® Ivybridge Mobile
>>
>> 64-bit
>>
>> 250.9 GB
>>
>> Here is my revision:
>>
>> zelong@zelong-ThinkPad-T430:/media/zelong/2828a0f1-cc41-4428-854d-a7a18c59f5c6/android_source$
>> repo info
>> Manifest branch: master
>> Manifest merge branch: refs/heads/master
>> Manifest groups: all,-notdefault
>> ----------------------------
>> Project: platform/art
>> Mount path:
>> /media/zelong/2828a0f1-cc41-4428-854d-a7a18c59f5c6/android_source/art
>> Current revision: 70f2314b46bb98f80de38d3217c2bdad3adaba9b
>> Local Branches: 0
>> ----------------------------
>>
>> --
>> --
>> You received this message because you are subscribed to the "Android
>> Building" mailing list.
>> To post to this group, send email to android-building@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-building+unsubscr...@googlegroups.com
>> 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 android-building+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/android-building/03c7362b-2cac-478e-14c8-4320b4dfc8c8%40gmail.com
>> <https://groups.google.com/d/msgid/android-building/03c7362b-2cac-478e-14c8-4320b4dfc8c8%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> 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 android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/CAMbhsRQGia3_xRmY3tbMf9igzRfOSLByr6c1rChnVcnrUizF4Q%40mail.gmail.com.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
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 android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALZYGG_UAoLPTc9uocxAgdPdETTeg5wx3wh%2BD-Vfpn45ybBhVQ%40mail.gmail.com.

Reply via email to