Android dex2oat build:错误:Dex2oat 无法编译启动映像

2024-02-13

构建安卓9.0

错误:Dex2oat 无法编译启动映像。引导类路径可能不一致。使用 ART_BOOT_IMAGE_EXTRA_ARGS=–runtime-arg -verbose 重建:验证程序以查看验证错误。


只需禁用优化sse4.2/popcount在文件中./art/build/Android.bp:

        host: {
        cflags: [
            // Bug: 15446488. We don't omit the frame pointer to work around
            // clang/libunwind bugs that cause SEGVs in run-test-004-ThreadStress.
            "-fno-omit-frame-pointer",
            // The build assumes that all our x86/x86_64 hosts (such as buildbots and developer
            // desktops) support at least sse4.2/popcount. This firstly implies that the ART
            // runtime binary itself may exploit these features. Secondly, this implies that
            // the ART runtime passes these feature flags to dex2oat and JIT by calling the
            // method InstructionSetFeatures::FromCppDefines(). Since invoking dex2oat directly
            // does not pick up these flags, cross-compiling from a x86/x86_64 host to a
            // x86/x86_64 target should not be affected.
            //"-msse4.2",
            //"-mpopcnt",
        ],
    },
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android dex2oat build:错误:Dex2oat 无法编译启动映像 的相关文章

随机推荐