Found the reason. I was using PRODUCT_SYSTEM_DEFAULT_PROPERTIES := in 
device tree after including core_minimal.mk. Thanks for pointing me to 
runtime_libart.mk!


W dniu poniedziałek, 4 grudnia 2017 16:06:17 UTC+1 użytkownik Tomasz Witke 
napisał:
>
> Well, I checked it twice, and values in runtime_libart.mk 
> <http://www.google.com/url?q=http%3A%2F%2Fruntime_libart.mk&sa=D&sntz=1&usg=AFQjCNHk5R4j4AXcgBPdBRUoE6u1iBAqvA>
>  
> are present, and I follow core_minimal.mk. Digging deeper I notices that, 
> boot frameworks are 0 bytes in size. What could possible happen?
>
> kyvaith@ubuntu:~/android-x86/out/target/product/x86/dex_bootjars/system/framework/x86$
>  
> ls -la
> total 8
> drwxr-xr-x 2 kyvaith kyvaith 4096 Dec  4 01:01 .
> drwxr-xr-x 3 kyvaith kyvaith 4096 Dec  4 01:01 ..
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-android.hidl.base-V1.0-java.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-android.hidl.base-V1.0-java.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-android.hidl.manager-V1.0-java.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-android.hidl.manager-V1.0-java.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-apache-xml.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-apache-xml.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-bouncycastle.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-bouncycastle.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-conscrypt.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-conscrypt.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-core-libart.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-core-libart.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-ext.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-ext.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-framework.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-framework.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-ims-common.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-ims-common.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-legacy-test.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-legacy-test.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-okhttp.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-okhttp.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-org.apache.http.legacy.boot.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 
> boot-org.apache.http.legacy.boot.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-telephony-common.oat
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-telephony-common.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot.vdex
> -rw-r--r-- 1 kyvaith kyvaith    0 Dec  4 01:01 boot-voip-common.oat
>
>
>
> W dniu niedziela, 3 grudnia 2017 01:14:13 UTC+1 użytkownik Colin Cross 
> napisał:
>>
>> The -Xms and -Xmx options being passed to dex2oat by the build are 
>> blank.  The build system gets the values to use there from 
>> https://android.googlesource.com/platform/build/+/b8e08222d9798c4f39d4d2c37bcd111bbc02f2ba/target/product/runtime_libart.mk?pli=1#62,
>>  
>> which is included by 
>> https://android.googlesource.com/platform/build/+/b8e08222d9798c4f39d4d2c37bcd111bbc02f2ba/target/product/core_minimal.mk.
>>   
>> My guess your product is somehow not inheriting from core_minimal.mk.
>>
>> On Sat, Dec 2, 2017 at 5:48 AM, Tomasz Witke <[email protected]> wrote:
>>
>>> Everything was good til yesterday. I do't know what is going on..
>>>
>>> [  0% 23/12072] target dex2oat: 
>>> out/target/product/atv/dex_bootjars/system/framework/x86/boot.art
>>> FAILED: 
>>> out/target/product/atv/dex_bootjars/system/framework/x86/boot.art 
>>> /bin/bash -c "(mkdir -p 
>>> out/target/product/atv/symbols/system/framework/x86/ ) && (rm -f 
>>> out/target/product/atv/dex_bootjars/system/framework/x86//*.art 
>>> out/target/product/atv/dex_bootjars/system/framework/x86//*.oat ) && (rm -f 
>>> out/target/product/atv/symbols/system/framework/x86//*.art ) && (rm -f 
>>> out/target/product/atv/symbols/system/framework/x86//*.oat ) && 
>>> (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg 
>>> -Xms --runtime-arg -Xmx --image-classes=frameworks/base/preloaded-classes 
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache.http.legacy.boot_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar
>>>  
>>> --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.hidl.manager-V1.0-java_intermediates/javalib.jar
>>>  
>>> --dex-location=/system/framework/core-oj.jar 
>>> --dex-location=/system/framework/core-libart.jar 
>>> --dex-location=/system/framework/conscrypt.jar 
>>> --dex-location=/system/framework/okhttp.jar 
>>> --dex-location=/system/framework/legacy-test.jar 
>>> --dex-location=/system/framework/bouncycastle.jar 
>>> --dex-location=/system/framework/ext.jar 
>>> --dex-location=/system/framework/framework.jar 
>>> --dex-location=/system/framework/telephony-common.jar 
>>> --dex-location=/system/framework/voip-common.jar 
>>> --dex-location=/system/framework/ims-common.jar 
>>> --dex-location=/system/framework/apache-xml.jar 
>>> --dex-location=/system/framework/org.apache.http.legacy.boot.jar 
>>> --dex-location=/system/framework/android.hidl.base-V1.0-java.jar 
>>> --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar 
>>> --oat-symbols=out/target/product/atv/symbols/system/framework/x86/boot.oat 
>>> --oat-file=out/target/product/atv/dex_bootjars/system/framework/x86/boot.oat
>>>  
>>> --oat-location=/system/framework/x86/boot.oat 
>>> --image=out/target/product/atv/dex_bootjars/system/framework/x86/boot.art 
>>> --base=0x70000000 --instruction-set=x86 --instruction-set-variant=x86 
>>> --instruction-set-features=default 
>>> --android-root=out/target/product/atv/system --runtime-arg -Xnorelocate 
>>> --compile-pic --no-generate-debug-info --generate-build-id --multi-image 
>>> --no-inline-from=core-oj.jar --generate-mini-debug-info  
>>> --compiled-classes=frameworks/base/compiled-classes-phone )"
>>> not a valid memory value, or not divisible by 1024
>>>
>>>
>>> I'm exporting _JAVA_OPTIONS="-Xmx7g"
>>>
>>> Please Help.
>>>
>>> -- 
>>> -- 
>>> 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].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to