dex2oatd error

客制化添加两个jar包,yunovo-common与yunovo-framework,并配置为PRODUCT_BOOT_JAR,编译user-debug能成功,而编译user版本却报错如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
[Compiling] PRIVATE_MODULE = [android-support-v7-cardview], PRIVATE_PATH = [frameworks/support/v7/cardview]
target Java: android-support-v7-cardview (out/target/common/obj/JAVA_LIBRARIES/android-support-v7-cardview_intermediates/classes)
dex2oatd W 48983 55860 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.android.internal.policy.impl.xxPhoneWindowManager from /system/framework/xx-framework.jar previously found in /system/framework/xx-framework.jar
dex2oatd W 48983 55833 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.am.IYOcAMSExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55831 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.pm.IYOcPkgMgrServiceExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55827 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.view.WindowManagerExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55889 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.battery.IYOcBatteryServiceExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55818 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.inputmethodservice.IYOcIMSExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55822 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.media.IYOcAudioServiceExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55824 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.network.IYOcNetworkPolicyMgrServiceExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55872 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.policy.YOcSinglePressActionListener from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55839 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.context.IYOcContextImplExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55844 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.gps.YOcGpsLocProviderCB from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55860 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.pm.YOcPMSCallback from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55819 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.telephony.IYOcSignalStrengthExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55875 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.storage.IYOcMountServiceExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55813 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.power.IYOcShutdownExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55833 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.util.YOcUtils from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55821 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.storage.IYOcMtpDatabaseExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55807 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.view.YOcWindowManagerFuncs from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55851 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.view.WindowManagerExt$LayoutParams from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55831 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.webkit.IYOcWebViewExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55808 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.wm.IYOcWMSExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55828 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.gps.IYOcGpsLocationProviderExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55867 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.view.KeyEventExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55886 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.power.IYOcShutdownThreadExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55820 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.policy.IYOcGlobalActionsExt from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
dex2oatd W 48983 55879 art/compiler/driver/compiler_driver.cc:1581] Skipping class com.xx.common.util.YOcConsts from /system/framework/xx-common.jar previously found in /system/framework/xx-common.jar
target Symbolic: libmedia (out/target/product/magc6580_we_l/symbols/system/lib/libmedia.so)
warning: no entries written for string/permlab_hotwordRecognition (0x010406d1)
warning: no entries written for string/permdesc_hotwordRecognition (0x010406d2)
warning: no entries written for string/mediaSize_iso_a0 (0x010406d3)
warning: no entries written for string/mediaSize_iso_a1 (0x010406d4)
warning: no entries written for string/mediaSize_iso_a2 (0x010406d5)
warning: no entries written for string/mediaSize_iso_a3 (0x010406d6)
warning: no entries written for string/mediaSize_iso_a4 (0x010406d7)
warning: no entries written for string/mediaSize_iso_a5 (0x010406d8)
warning: no entries written for string/mediaSize_iso_a6 (0x010406d9)
warning: no entries written for string/mediaSize_iso_a7 (0x010406da)
warning: no entries written for string/mediaSize_iso_a8 (0x010406db)
warning: no entries written for string/mediaSize_iso_a9 (0x010406dc)
warning: no entries written for string/mediaSize_iso_a10 (0x010406dd)
warning: no entries written for string/mediaSize_iso_b0 (0x010406de)
warning: no entries written for string/mediaSize_iso_b1 (0x010406df)
warning: no entries written for string/mediaSize_iso_b2 (0x010406e0)
warning: no entries written for string/mediaSize_iso_b3 (0x010406e1)
warning: no entries written for string/mediaSize_iso_b4 (0x010406e2)
warning: no entries written for string/mediaSize_iso_b5 (0x010406e3)
warning: no entries written for string/mediaSize_iso_b6 (0x010406e4)
warning: no entries written for string/mediaSize_iso_b7 (0x010406e5)
warning: no entries written for string/mediaSize_iso_b8 (0x010406e6)
warning: no entries written for string/mediaSize_iso_b9 (0x010406e7)
warning: no entries written for string/mediaSize_iso_b10 (0x010406e8)
warning: no entries written for string/mediaSize_iso_c0 (0x010406e9)
warning: no entries written for string/mediaSize_iso_c1 (0x010406ea)
warning: no entries written for string/mediaSize_iso_c2 (0x010406eb)
warning: no entries written for string/mediaSize_iso_c3 (0x010406ec)
warning: no entries written for string/mediaSize_iso_c4 (0x010406ed)
warning: no entries written for string/mediaSize_iso_c5 (0x010406ee)
warning: no entries written for string/mediaSize_iso_c6 (0x010406ef)
warning: no entries written for string/mediaSize_iso_c7 (0x010406f0)
warning: no entries written for string/mediaSize_iso_c8 (0x010406f1)
warning: no entries written for string/mediaSize_iso_c9 (0x010406f2)
warning: no entries written for string/mediaSize_iso_c10 (0x010406f3)
warning: no entries written for string/mediaSize_na_letter (0x010406f4)
warning: no entries written for string/mediaSize_na_gvrnmt_letter (0x010406f5)
warning: no entries written for string/mediaSize_na_legal (0x010406f6)
warning: no entries written for string/mediaSize_na_junior_legal (0x010406f7)
warning: no entries written for string/mediaSize_na_ledger (0x010406f8)
warning: no entries written for string/mediaSize_na_tabloid (0x010406f9)
warning: no entries written for string/transient_navigation_confirmation (0x010406fa)
warning: no entries written for string/transient_navigation_confirmation_long (0x010406fb)
warning: no entries written for dimen/password_keyboard_height (0x010500a8)
Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair-mr1_intermediates/classes.jar
dex2oatd F 48983 48983 art/runtime/safe_map.h:91] Check failed: result.second
dex2oatd E 48983 48983 art/runtime/base/mutex-inl.h:119] Lock level violation: holding "abort lock" (level AbortLock - 5) while locking "mutator lock" (level MutatorLock - 48)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] Runtime aborting...
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] Aborting thread:
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] "main" prio=5 tid=1 Native (still starting up)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | group="" sCount=0 dsCount=0 obj=(nil) self=0x58315bb8
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | sysTid=48983 nice=0 cgrp=default sched=0/0 handle=0x562cdf80
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | state=R schedstat=( 13820554700 295546210 17420 ) utm=1302 stm=79 core=14 HZ=100
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | stack=0xff927000-0xff929000 stackSize=2MB
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | held mutexes= "abort lock" "mutator lock"(shared held)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #00 pc 00006efa /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+82)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #01 pc 00004491 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+33)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #02 pc 00389dc9 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+121)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #03 pc 0035da3a /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+202)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #04 pc 0035d925 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+53)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #05 pc 00352f39 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+41)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #06 pc 00352edf /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+351)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #07 pc 00352d79 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art8DumpableINS_10AbortStateEE4DumpERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE+41)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #08 pc 00351708 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3artlsINS_10AbortStateEEERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEES7_RKNS_8DumpableIT_EE+40)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #09 pc 0034ad68 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7Runtime5AbortEv+168)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #10 pc 000fd8d9 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10LogMessageD1Ev+393)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #11 pc 00339fda /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7SafeMapINS_11StringPieceEPKNS_7OatFile10OatDexFileENSt3__14lessIS1_EENS_17TrackingAllocatorINS6_4pairIS1_S5_EELNS_12AllocatorTagE19EEEE3PutERKS1_RKS5_+186)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #12 pc 00336155 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile5SetupEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE+933)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #13 pc 003376a7 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile11ElfFileOpenEPN9unix_file6FdFileEPhS4_bbPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE+487)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #14 pc 00336eec /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile11OpenElfFileEPN9unix_file6FdFileERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPhSD_bbPSA_+108)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #15 pc 00337058 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile12OpenReadableEPN9unix_file6FdFileERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPSA_+88)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #16 pc 00321a48 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd-compiler.so (_ZN3art11ImageWriter5WriteERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEjS9_S9_b+248)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #17 pc 00010b55 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat15CreateImageFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEjS9_S9_RKNS_14CompilerDriverE+101)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #18 pc 00009b6e /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (_ZN3artL7dex2oatEiPPc+17086)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #19 pc 000058a0 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (main+32)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #20 pc 00019af2 /lib/i386-linux-gnu/libc-2.19.so (__libc_start_main+242)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #21 pc 00004e84 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (???)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] (no managed stack frames)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] Dumping all threads without appropriate locks held: thread list lock mutator lock
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] All threads:
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] DALVIK THREADS (1):
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] "main" prio=5 tid=1 Native (still starting up)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | group="" sCount=0 dsCount=0 obj=(nil) self=0x58315bb8
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | sysTid=48983 nice=0 cgrp=default sched=0/0 handle=0x562cdf80
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | state=R schedstat=( 13826805269 295570339 17437 ) utm=1302 stm=79 core=15 HZ=100
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | stack=0xff927000-0xff929000 stackSize=2MB
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] | held mutexes= "abort lock"
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #00 pc 00006efa /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+82)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #01 pc 00004491 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+33)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #02 pc 00389dc9 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+121)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #03 pc 0035da3a /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+202)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #04 pc 0035d925 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+53)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #05 pc 0036c06e /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10ThreadList10DumpLockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+126)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #06 pc 00353138 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10AbortState14DumpAllThreadsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+248)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #07 pc 00352f06 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+390)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #08 pc 00352d79 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art8DumpableINS_10AbortStateEE4DumpERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE+41)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #09 pc 00351708 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3artlsINS_10AbortStateEEERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEES7_RKNS_8DumpableIT_EE+40)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #10 pc 0034ad68 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7Runtime5AbortEv+168)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #11 pc 000fd8d9 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art10LogMessageD1Ev+393)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #12 pc 00339fda /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7SafeMapINS_11StringPieceEPKNS_7OatFile10OatDexFileENSt3__14lessIS1_EENS_17TrackingAllocatorINS6_4pairIS1_S5_EELNS_12AllocatorTagE19EEEE3PutERKS1_RKS5_+186)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #13 pc 00336155 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile5SetupEPNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE+933)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #14 pc 003376a7 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile11ElfFileOpenEPN9unix_file6FdFileEPhS4_bbPNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE+487)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #15 pc 00336eec /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile11OpenElfFileEPN9unix_file6FdFileERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPhSD_bbPSA_+108)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #16 pc 00337058 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art7OatFile12OpenReadableEPN9unix_file6FdFileERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEPSA_+88)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #17 pc 00321a48 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd-compiler.so (_ZN3art11ImageWriter5WriteERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEjS9_S9_b+248)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #18 pc 00010b55 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (_ZN3art7Dex2Oat15CreateImageFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEjS9_S9_RKNS_14CompilerDriverE+101)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #19 pc 00009b6e /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (_ZN3artL7dex2oatEiPPc+17086)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #20 pc 000058a0 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (main+32)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #21 pc 00019af2 /lib/i386-linux-gnu/libc-2.19.so (__libc_start_main+242)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] native: #22 pc 00004e84 /work/jenkins/jobs/yy/android/out/host/linux-x86/bin/dex2oatd (???)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307] (no managed stack frames)
dex2oatd F 48983 48983 art/runtime/runtime.cc:307]
dex2oatd F 48983 48983 art/runtime/runtime.cc:307]
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] Fatal signal 6 (SIGABRT), code -6 (SI_TKILL)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] OS: Linux 4.4.0-84-generic (x86_64)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] 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/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-file=out/target/common/obj/JAVA_LIBRARIES/xx-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/xx-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/mediatek-telephony-common_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/xx-framework_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/xx-common_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 --dex-location=/system/framework/xx-framework.jar --dex-location=/system/framework/xx-common.jar --dex-location=/system/framework/mediatek-common.jar --dex-location=/system/framework/mediatek-framework.jar --dex-location=/system/framework/mediatek-telephony-common.jar --dex-location=/system/framework/xx-framework.jar --dex-location=/system/framework/xx-common.jar --oat-symbols=out/target/product/magc6580_we_l/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/magc6580_we_l/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/magc6580_we_l/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-features=div --android-root=out/target/product/magc6580_we_l/system --include-patch-information --runtime-arg -Xnorelocate --no-include-debug-symbols
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] Thread: 48983 "main"
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] Registers:
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] eax: 0x00000000 ebx: 0x0000bf57 ecx: 0x0000bf57 edx: 0x00000006
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] edi: 0x559f3710 esi: 0xffffffff ebp: 0x58125981 esp: 0xffb253ac
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] eip: 0x555cdcd9 eflags: 0x00000207 [ CF PF IF ]
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] cs: 0x00000023 ds: 0x0000002b es: 0x0000002b fs: 0x00000007
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] gs: 0x00000063 ss: 0x0000002b
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] Backtrace:
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #00 pc 00006efa /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+82)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #01 pc 00004491 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+33)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #02 pc 00389dc9 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+121)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #03 pc 003d8cdc /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art9Backtrace4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+60)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #04 pc 003d8c99 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZNK3art8DumpableINS_9BacktraceEE4DumpERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEE+41)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #05 pc 003d8b58 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3artlsINS_9BacktraceEEERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEES7_RKNS_8DumpableIT_EE+40)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #06 pc 003d83c1 /work/jenkins/jobs/yy/android/out/host/linux-x86/lib/libartd.so (_ZN3art22HandleUnexpectedSignalEiP7siginfoPv+817)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #07 pc 00000cbf [vdso] (???)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299] #08 pc 0004616e (???)
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:299]
dex2oatd F 48983 48983 art/runtime/runtime_linux.cc:313] Fault message:
make: *** [out/target/product/magc6580_we_l/dex_bootjars/system/framework/arm/boot.art] Aborted
make: *** Waiting for unfinished jobs....

分析log发现,–dex-file重复了,出现了两次,把重复的两次去掉,单独编译一个模块顺利通过,接下来就是要查找为什么–dex-file会出现两次了,按理说系统在编译过中会把packag去重,同理相应的library模块也应该会去重。

最后发现在客制化device.mk中include两次相应的定义PRODUCT_PACKAGE与PRODUCT_BOOT_JAR,修改相应脚本即可编译成功。

关联:
如果include两次,相应的BOOTCLASSPATH变量也会出现两次,路径为:out/target/product/magc6580_we_l/obj/ETC/init.environ.rc_intermediates

目标机器中可cat /init.environ.rc,或者查看环境变量echo $BOOTCLASSPATH


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wilber_bai@hotmail.com

文章标题:dex2oatd error

文章字数:3,989

本文作者:风沉殇史

发布时间:2017-12-12, 12:12:12

最后更新:2020-01-03, 17:30:50

原始链接:http://wilber.win/posts/b69b600a/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏