I met this error too,Have you solved this error? 在 2017年10月26日星期四 UTC+8下午11:37:52,[email protected]写道: > > When I compiling android O on 16.04, error happened, the Log as blow. I > have tried to serach all google and couldn't found any usfull information, > Could > you help me to find out the reason ? Thanks very much. > > ubuntu:16.04 > kernel: > 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 > x86_64 GNU/Linux > ============================================ > PLATFORM_VERSION_CODENAME=REL > PLATFORM_VERSION=8.0.0 > TARGET_PRODUCT=msm8937_64 > TARGET_BUILD_VARIANT=userdebug > TARGET_BUILD_TYPE=release > TARGET_ARCH=arm64 > TARGET_ARCH_VARIANT=armv8-a > TARGET_CPU_VARIANT=generic > TARGET_2ND_ARCH=arm > TARGET_2ND_ARCH_VARIANT=armv7-a-neon > TARGET_2ND_CPU_VARIANT=cortex-a53 > HOST_ARCH=x86_64 > HOST_2ND_ARCH=x86 > HOST_OS=linux > HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial > HOST_CROSS_OS=windows > HOST_CROSS_ARCH=x86 > HOST_CROSS_2ND_ARCH=x86_64 > HOST_BUILD_TYPE=release > BUILD_ID=OPR1.170623.026 > OUT_DIR=out > ============================================ > > [ 2% 722/24364] target dex2oat: > out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art > > FAILED: > out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art > > /bin/bash -c "(mkdir -p > out/target/product/msm8937_64/symbols/system/framework/arm/ ) && (rm -f > out/target/product/msm8937_64/dex_bootjars/system/framework/arm//*.art > out/target/product/msm8937_64/dex_bootjars/system/framework/arm//*.oat ) && > (rm -f out/target/product/msm8937_64/symbols/system/framework/arm//*.art ) && > (rm -f out/target/product/msm8937_64/symbols/system/framework/arm//*.oat ) && > (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg > -Xms64m > --runtime-arg -Xmx64m --image-classes=frameworks/base/preloaded-classes > --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.nxp.nfc.nq_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.qualcomm.qti.camera_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/QPerformance_intermediates/javalib.jar > > --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-file=out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/oem-services_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/javalib.jar > > --dex-location=/system/framework/com.nxp.nfc.nq.jar > --dex-location=/system/framework/com.qualcomm.qti.camera.jar > --dex-location=/system/framework/QPerformance.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 > --dex-location=/system/framework/tcmiface.jar > --dex-location=/system/framework/WfdCommon.jar > --dex-location=/system/framework/oem-services.jar > --dex-location=/system/framework/qcom.fmradio.jar > --dex-location=/system/framework/telephony-ext.jar > --oat-symbols=out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat > > --oat-file=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.oat > > --oat-location=/system/framework/arm/boot.oat > --image=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art > --base=0x70000000 > --instruction-set=arm --instruction-set-variant=cortex-a53 > --instruction-set-features=default > --android-root=out/target/product/msm8937_64/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 )" > > dex2oatd E 10-24 21:10:34 1311 1311 dex2oat.cc:2034] Failed to copy oat > file to file: > out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat: Invalid > argument > > dex2oatd E 10-24 21:10:34 1311 1311 fd_file.cc:67] File > out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat wasn't > explicitly flushed before destruction. > > dex2oatd E 10-24 21:10:34 1311 1311 fd_file.cc:70] File > out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat wasn't > explicitly closed before destruction. > > dex2oatd F 10-24 21:10:34 1311 1311 fd_file.cc:72] Check failed: > guard_state_ >= GuardState::kClosed (guard_state_=Base, > GuardState::kClosed=Closed) > Runtime aborting... > Aborting thread: > > dex2oatd E 10-24 21:10:34 1311 1311 mutex-inl.h:95] Lock level violation: > holding "mutator lock" (level MutatorLock - 61) while locking "mutator lock" > (level MutatorLock - 61) > > dex2oatd E 10-24 21:10:34 1311 1311 thread-inl.h:163] holding "abort lock" > at point where thread suspension is expected > "main" prio=5 tid=1 Native (still starting up) > | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x561754e38250 > | sysTid=1311 nice=0 cgrp=user.slice sched=0/0 handle=0x7f1090965740 > > | state=R schedstat=( 67579221852 9248421052 4417 ) utm=6640 stm=116 > core=15 HZ=100 > | stack=0x7ffcd2e6b000-0x7ffcd2e6d000 stackSize=7MB > | held mutexes= "abort lock" > > native: #00 pc 00000000004a7cd9 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217) > > native: #01 pc 00000000005887f6 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342) > > native: #02 pc 0000000000570d5d > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+93) > > native: #03 pc 0000000000570ce2 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+450) > > native: #04 pc 0000000000562163 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art7Runtime5AbortEPKc+99) > > native: #05 pc 0000000000562588 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art7Runtime7AborterEPKc+8) > > native: #06 pc 00000000000099fb > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libbase.so > (_ZN7android4base10LogMessageD2Ev+987) > > native: #07 pc 0000000000198337 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN9unix_file6FdFile7DestroyEv+439) > > native: #08 pc 0000000000198647 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN9unix_file6FdFileD0Ev+23) > > native: #09 pc 000000000002818e > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd > (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006) > > native: #10 pc 000000000000b825 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd > (main+1013) > native: #11 pc 000000000002082f /lib/x86_64-linux-gnu/libc-2.23.so > (__libc_start_main+239) > > native: > std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) > const > native: external/libcxx/include/memory:2399 (discriminator 1) > > native: std::__1::unique_ptr<unix_file::FdFile, > std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*) > native: external/libcxx/include/memory:2608 (discriminator 1) > native: ~unique_ptr > native: external/libcxx/include/memory:2576 (discriminator 1) > native: art::Dex2Oat::CopyStrippedToUnstripped() > native: art/dex2oat/dex2oat.cc:2042 (discriminator 1) > native: art::CompileImage(art::Dex2Oat&) > native: art/dex2oat/dex2oat.cc:2852 > native: art::Dex2oat(int, char**) > native: art/dex2oat/dex2oat.cc:2955 > native: main > native: art/dex2oat/dex2oat.cc:2966 > native: __libc_start_main > native: /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291 > > native: #12 pc 000000000000b308 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (???) > (no managed stack frames) > > Dumping all threads without appropriate locks held: thread list lock mutator > lock > All threads: > DALVIK THREADS (1): > "main" prio=5 tid=1 Runnable (still starting up) > | group="" sCount=0 dsCount=0 flags=0 obj=(nil) self=0x561754e38250 > | sysTid=1311 nice=0 cgrp=user.slice sched=0/0 handle=0x7f1090965740 > > | state=R schedstat=( 67615375775 9248508968 4466 ) utm=6641 stm=119 core=8 > HZ=100 > | stack=0x7ffcd2e6b000-0x7ffcd2e6d000 stackSize=7MB > | held mutexes= "abort lock" "mutator lock"(shared held) > > native: #00 pc 00000000004a7cd9 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+217) > > native: #01 pc 00000000005887f6 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMapb+342) > > native: #02 pc 00000000005a1b35 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+629) > > native: #03 pc 0000000000599373 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureES2_+675) > > native: #04 pc 0000000000598e99 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+409) > > native: #05 pc 0000000000562163 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art7Runtime5AbortEPKc+99) > > native: #06 pc 0000000000562588 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN3art7Runtime7AborterEPKc+8) > > native: #07 pc 00000000000099fb > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libbase.so > (_ZN7android4base10LogMessageD2Ev+987) > > native: std::__1::function<void (char const*)>::operator()(char const*) > const > native: external/libcxx/include/functional:1915 (discriminator 1) > native: ~LogMessage > native: system/core/base/logging.cpp:433 (discriminator 1) > > native: #08 pc 0000000000198337 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN9unix_file6FdFile7DestroyEv+439) > > native: #09 pc 0000000000198647 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/lib64/libartd.so > (_ZN9unix_file6FdFileD0Ev+23) > > native: #10 pc 000000000002818e > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd > (_ZN3art7Dex2Oat24CopyStrippedToUnstrippedEv+1006) > > native: > std::__1::default_delete<unix_file::FdFile>::operator()(unix_file::FdFile*) > const > native: external/libcxx/include/memory:2399 (discriminator 1) > > native: std::__1::unique_ptr<unix_file::FdFile, > std::__1::default_delete<unix_file::FdFile> >::reset(unix_file::FdFile*) > native: external/libcxx/include/memory:2608 (discriminator 1) > native: ~unique_ptr > native: external/libcxx/include/memory:2576 (discriminator 1) > native: art::Dex2Oat::CopyStrippedToUnstripped() > native: art/dex2oat/dex2oat.cc:2042 (discriminator 1) > > native: #11 pc 000000000000b825 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd > (main+1013) > native: art::CompileImage(art::Dex2Oat&) > native: art/dex2oat/dex2oat.cc:2852 > native: art::Dex2oat(int, char**) > native: art/dex2oat/dex2oat.cc:2955 > native: main > native: art/dex2oat/dex2oat.cc:2966 > native: #12 pc 000000000002082f /lib/x86_64-linux-gnu/libc-2.23.so > (__libc_start_main+239) > native: __libc_start_main > native: /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291 > > native: #13 pc 000000000000b308 > /data/sdc/hls/rf3.0/r1_00006.0/android/out/host/linux-x86/bin/dex2oatd (???) > (no managed stack frames) > > > dex2oatd E 10-24 21:10:47 1311 1311 thread-inl.h:163] holding "abort lock" > at point where thread suspension is expected > *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** > Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) > OS: Linux 4.4.0-57-generic (x86_64) > > Cmdline: out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg > -Xmx64m --image-classes=frameworks/base/preloaded-classes > --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.nxp.nfc.nq_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/com.qualcomm.qti.camera_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/QPerformance_intermediates/javalib.jar > > --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-file=out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/WfdCommon_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/oem-services_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/qcom.fmradio_intermediates/javalib.jar > > --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony-ext_intermediates/javalib.jar > --dex-location=/system/framework/com.nxp.nfc.nq.jar > --dex-location=/system/framework/com.qualcomm.qti.camera.jar > --dex-location=/system/framework/QPerformance.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 > --dex-location=/system/framework/tcmiface.jar > --dex-location=/system/framework/WfdCommon.jar > --dex-location=/system/framework/oem-services.jar > --dex-location=/system/framework/qcom.fmradio.jar > --dex-location=/system/framework/telephony-ext.jar > --oat-symbols=out/target/product/msm8937_64/symbols/system/framework/arm/boot.oat > > --oat-file=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.oat > --oat-location=/system/framework/arm/boot.oat > --image=out/target/product/msm8937_64/dex_bootjars/system/framework/arm/boot.art > --base=0x70000000 --instruction-set=arm --instruction-set-variant=cortex-a53 > --instruction-set-features=default > --android-root=out/target/product/msm8937_64/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 > Thread: 1311 "dex2oatd" > Registers: > > rax: 0x0000000000000000 rbx: 0x000000000000051f rcx: > 0x00007f1090efa499 rdx: 0x0000000000000006 > > rdi: 0x000000000000051f rsi: 0x000000000000051f rbp: > 0x00007ffcd36675b0 rsp: 0x00007ffcd3667558 > > r8 : 0x00007ffcd3667568 r9 : 0x00007ffcd3667568 r10: > 0x0000000000000001 r11: 0x0000000000000246 > > r12: 0x0000561754ca4170 r13: 0x0000000000000001 r14: > 0x0000561754ac3350 r15: 0x00007ffcd3667650 > rip: 0x00007f1090efa499 eflags: 0x00000246 [ PF ZF IF ] > cs: 0x00000033 gs: 0x00000000 fs: 0x00000000 >
-- -- 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.
