google android oreo源代码构建失败
很多人都有同样的问题
#java -version openjdk版本" 1.8.0_45-internal" OpenJDK运行时环境(build 1.8.0_45-internal-b14) OpenJDK 64位服务器VM(版本25.45-b02,混合模式)
电脑:
i7和16G
操作系统:
ubuntu 14.04
#构建失败并记录日志:
native:__ libc_start_main native:/build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287 原生:#11 pc 000000000000b4d8 / home / xinsi / code / go_edition / out / host / linux-x86 / bin / dex2oatd(???) (没有托管堆栈帧)
致命信号6(SIGABRT),代码-6(SI_TKILL) 操作系统:Linux 3.13.0-24-generic(x86_64) Cmdline:out / host / linux-x86 / bin / dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiled-classes = frameworks / base / config / compiled-classes-phone --image-classes = frameworks / base / config / preloaded-classes --dirty-image-objects = frameworks / base / config / dirty-image-objects --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 / bouncycastle_intermediates / javalib.jar --dex-file = out / target / common / obj /JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / legacy-test_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / ext_intermediates /javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / framework_i ntermediates / 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 / 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 / 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 / mediatek-telephony-base_intermediates / javalib.jar --dex-file = out / target / c ommon / obj / JAVA_LIBRARIES / mediatek-ims-common_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / mediatek-telecom-common_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / mediatek-cta_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 / bouncycastle.jar --dex-location = / system / framework / apache- xml.jar --dex-location = / system / framework / legacy-test.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 / org.apache.http.legacy.boot.jar --dex-location = / system / framework / android.hidl.base-V1.0-java.jar --dex-location = / system /框架/ android.hi dl.manager-V1.0-java.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 / mediatek-telephony-base.jar --dex-location = / system / framework / mediatek-ims-common.jar --dex -location = / system / framework / mediatek-telecom-common.jar --dex-location = / system / framework / mediatek-cta.jar --oat-symbols = out / target / product / k39tv1_bsp / symbols / system / framework /arm/boot.oat --oat-file = out / target / product / k39tv1_bsp / dex_bootjars / system / framework / arm / boot.oat --oat-location = / system / framework / arm / boot.oat --image = out / target / product / k39tv1_bsp / 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 / k39tv1_bsp / system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-直列从= core-oj.jar --generate-mini-debug-info 线程:4741" dex2oatd" 寄存器: rax:0x0000000000000000 rbx:0x0000000000001285 rcx:0xffffffffffffffff rdx:0x0000000000000006 rdi:0x0000000000001285 rsi:0x0000000000001285 rbp:0x00007fff2b1acce0 rsp:0x00007fff2b1acc98 r8:0x00007f4c18f3d491 r9:0x00007f4c18f3d491 r10:0x00007f4c1708a871 r11:0x0000000000000246 r12:0x00007f4c1911daf0 r13:0x00007f4c1911daf0 r14:0x00007f4c18f3d3e0 r15:0x00007fff2b1acd50 rip:0x00007f4c153ba389标志:0x00000246 [PF ZF IF] cs:0x00000033 gs:0x00000000 fs:0x00000000
回溯: #00 pc 00000000000f8389 /lib/x86_64-linux-gnu/libc-2.19.so(syscall + 25) 系统调用 /build/eglibc-SvCtMH/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/syscall.S:38 #01 pc 00000000005b7102 /home/xinsi/code/go_edition/out/host/linux-x86/lib64/libartd.so(art :: Runtime :: Abort(char const *)+ 498) art :: Runtime :: Abort(char const *) 艺术/运行/ runtime.cc:548 #02 pc 00000000000095ba /home/xinsi/code/go_edition/out/host/linux-x86/lib64/libbase.so(android :: base :: LogMessage :: ~LogMessage()+ 858) std :: __ 1 :: function :: operator()(char const *)const 外部/ libcxx /包括/功能:1915年 〜的LogMessage 系统/核心/碱/ logging.cpp:433 #03 pc 0000000000197eb0 /home/xinsi/code/go_edition/out/host/linux-x86/lib64/libartd.so(unix_file :: FdFile :: Destroy()+ 448) unix_file :: FdFile :: destroy()方法 艺术/运行/碱/ unix_file / fd_file.cc:72 #04 pc 00000000001981b7 /home/xinsi/code/go_edition/out/host/linux-x86/lib64/libartd.so(unix_file :: FdFile :: ~FdFile()+ 23) 〜FdFile 艺术/运行/碱/ unix_file / fd_file.cc:101 〜FdFile 艺术/运行/碱/ unix_file / fd_file.cc:100 #05 pc 0000000000024bad / home / xinsi / code / go_edition / out / host / linux-x86 / bin / dex2oatd(art :: Dex2Oat :: CopyStrippedToUnstripped()+ 941) std :: __ 1 :: default_delete :: operator()(unix_file :: FdFile *)const 外部/ libcxx /包含/存储:2399 std :: __ 1 :: unique_ptr> :: reset(unix_file :: FdFile *) 外部/ libcxx /包含/存储:2608 〜的unique_ptr 外部/ libcxx /包含/存储:2576 技术:: Dex2Oat :: CopyStrippedToUnstripped() 艺术/ dex2oat / dex2oat.cc:2220 #06 pc 000000000000bc1f / home / xinsi / code / go_edition / out / host / linux-x86 / bin / dex2oatd(main + 1567) 技术:: CompileImage(第:: Dex2Oat&安培) 艺术/ dex2oat / dex2oat.cc:3024 art :: Dex2oat(int,char **) 艺术/ dex2oat / dex2oat.cc:3129 主要 艺术/ dex2oat / dex2oat.cc:3139 #07 pc 0000000000021f44 /lib/x86_64-linux-gnu/libc-2.19.so(__libc_start_main + 244) __libc_start_main /build/eglibc-SvCtMH/eglibc-2.19/csu/libc-start.c:287 #08 pc 000000000000b4d8 / home / xinsi / code / go_edition / out / host / linux-x86 / bin / dex2oatd(???)
故障信息 / bin / bash:行1:4741已放弃(核心已转储)(out / host / linux-x86 / bin / dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiled-classes = frameworks / base / config / compiled-classes-phone --image-classes = frameworks / base / config / preloaded-classes --dirty-image-objects = frameworks / base / config / dirty-image-objects --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 / bouncycastle_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / apache-xml_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / legacy-test_intermediates / javalib.jar - -dex文件=输出/目标/普通/ 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 / 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 / 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 / mediatek-telep hony-base_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / mediatek-ims-common_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / mediatek- telecom-common_intermediates / javalib.jar --dex-file = out / target / common / obj / JAVA_LIBRARIES / mediatek-cta_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 /bouncycastle.jar --dex-location = / system / framework / apache-xml.jar --dex-location = / system / framework / legacy-test.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 / org.apache.http.legacy.boot.jar --dex-location = / system / framework / android.hidl.bas e-V1.0-java.jar --dex-location = / system / framework / android.hidl.manager-V1.0-java.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 / mediatek-telephony-base。 jar --dex-location = / system / framework / mediatek-ims-common.jar --dex-location = / system / framework / mediatek-telecom-common.jar --dex-location = / system / framework / mediatek- cta.jar --oat-symbols = out / target / product / k39tv1_bsp / symbols / system / framework / arm / boot.oat --oat-file = out / target / product / k39tv1_bsp / dex_bootjars / system / framework / arm / boot.oat --oat-location = / system / framework / arm / boot.oat --image = out / target / product / k39tv1_bsp / 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 / k39tv1_bsp / system --runtime-arg -Xnorelocate --compile- pic --no-generate-deb ug-info --generate-build-id --multi-image --no-inline-from = core-oj.jar --generate-mini-debug-info) [79%64599/80927] // frameworks / av / media / libmedia:libmedia_omx header-abi-dumper omx / 1.0 / WOmxNode.cpp 忍者:构建停止:子命令失败。 17:26:34 ninja失败了:退出状态1
未能建立一些目标(01:19:28(hh:mm:ss))答案 0 :(得分:0)
来自mtk,我们标记以下代码 /art/dex2oat/dex2oat.cc raw_options.push_back(std :: make_pair(“ - Xnoimage-dex2oat”,nullptr));
答案 1 :(得分:0)
您可以不使用dex2oat进行构建。 像这样:
export WITH_DEXPREOPT=false
source build/envsetup.sh
lunch 2
#export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
make -j4
或者您可以使用自己的jdk1.8代替aosp工具中的 像这样:
#export WITH_DEXPREOPT=false
source build/envsetup.sh
lunch 2
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
make -j4