dex2oatd boot.art error in building AOSP 5.0.x on Mac 10.11

640 views
Skip to first unread message

awes...@gmail.com

unread,
Nov 9, 2015, 7:22:41 PM11/9/15
to Android Building
I tried to build AOSP 5.0.x for Z2 as guide in http://developer.sonymobile.com/knowledge-base/open-source/open-devices/aosp-build-instructions/how-to-build-aosp-lollipop-for-unlocked-xperia-devices/ on my Mac 10.11 with Xcode SDK 10.8. After solving many build errors, I got stuck for generating boot.art with following error. I have googled for long time to figure out what this error means and how it happened. Also tried some changes, like upgrading art & system/core & bionic to 5.1.0_r1, updating some art related make files to 5.1.0_r1 in build, the error is always there. Does any body have any idea about that?
Please advise and thank you!

================ ERROR IN BUILD ====================

dex2oatd I 42664 2649344 art/dex2oat/dex2oat.cc:1329] out/host/darwin-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --image-classes=frameworks/base/preloaded-classes --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/core-junit_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/mms-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.policy_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/core-junit.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/mms-common.jar --dex-location=/system/framework/android.policy.jar --dex-location=/system/framework/apache-xml.jar --oat-symbols=out/target/product/sirius/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/sirius/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/sirius/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-features=div --android-root=out/target/product/sirius/system --include-patch-information --runtime-arg -Xnorelocate --no-include-debug-symbols --compile-pic --compiler-filter=verify-none

target Strip: libmedia (out/target/product/sirius/obj/lib/libmedia.so)

Compiling SDK Stubs: out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar

Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v4-honeycomb-mr2_intermediates/classes-jarjar.jar

InitializeSignalChain is not exported by the main executable.

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] Fatal signal 6 (SIGABRT), code 0 (?)

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] OS: Darwin 15.0.0 (x86_64)

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] Cmdline: out/host/darwin-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --image-classes=frameworks/base/preloaded-classes --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/core-junit_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/mms-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.policy_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-location=/system/framework/core-libart.jar --dex-location=/system/framework/conscrypt.jar --dex-location=/system/framework/okhttp.jar --dex-location=/system/framework/core-junit.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/mms-common.jar --dex-location=/system/framework/android.policy.jar --dex-location=/system/framework/apache-xml.jar --oat-symbols=out/target/product/sirius/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/sirius/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/sirius/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-features=div --android-root=out/target/product/sirius/system --include-patch-information --runtime-arg -Xnorelocate --no-include-debug-symbols --compile-pic --compiler-filter=verify-none

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] Thread: 2649344 "<unknown>"

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] Registers:

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299]     eax: 0x00000000    ebx: 0x7c90c200    ecx: 0xbffa749c    edx: 0x00000000

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299]     edi: 0xa30c0000    esi: 0x00000006    ebp: 0xbffa74b8    esp: 0xbffa749c

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299]     eip: 0x9ad9562a                    eflags: 0x00000206 [ PF IF ]

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299]      cs: 0x0000000b     ds: 0x00000023     es: 0x00000023     fs: 0x00000000

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299]      gs: 0x0000000f     ss: 0x00000023

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] Backtrace:

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:299] 

dex2oatd F 42664 2649344 art/runtime/runtime_linux.cc:313] Fault message: 

make: *** [out/target/product/sirius/dex_bootjars/system/framework/arm/boot.art] Error 1

make: *** Waiting for unfinished jobs....


===========================================

Jake Whatley

unread,
Nov 12, 2015, 8:24:00 PM11/12/15
to Android Building
Try updating your distribution's kernel.
Reply all
Reply to author
Forward
0 new messages