Git Product home page Git Product logo

build's Issues

Dex2oat failed to compile a boot

https://github.com/Evolution-X/build/blob/a9b26c26e96645d67567e7a92ea08396ed294913/core/Makefile#L2570

[ 30% 266/885] //frameworks/base/boot:platform-bootclasspath dexpreopt boot jars arm64 [common]
FAILED: Evo/out/soong/veux/dex_bootjars/android/system/framework/arm64/boot-core-icu4j.art

native: #39 pc 0000000000420f28 /mnt/FREE_USB/alex/Evo/out/host/linux-x86/bin/dex2oatd64 (???)
(no managed stack frames)
Aborted (core dumped)
ERROR: Dex2oat failed to compile a boot image.It is likely that the boot classpath is inconsistent.Rebuild with ART_BOOT
_IMAGE_EXTRA_ARGS="--runtime-arg -verbose:verifier" to see verification errors.

For me, the build breaks.
Then I run the build again, and so it is possible several times. in the end, the ROM is built successfully.
probably these are some dependencies, when the boot dexpreopt is started at the same time and something on which this boot depends.

maybe it helped me. now the ROM is build from the first time.

diff --git a/core/Makefile b/core/Makefile
index 6ab6bc189..bfe9a35ea 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2567,7 +2567,7 @@ endif
.
 ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true)
 $(foreach b,$(INSTALLED_BOOTIMAGE_TARGET), $(eval $(call add-dependency,$(b),$(call bootimage-to-kernel,$(b)))))
-$(INSTALLED_BOOTIMAGE_TARGET): $(recoveryimage-deps)
+$(INSTALLED_BOOTIMAGE_TARGET): $(recoveryimage-deps) $(INTERNAL_RECOVERY_RAMDISK_FILES_TIMESTAMP)
 <----->$(call pretty,"Target boot image from recovery: $@")
 <----->$(call build-recoveryimage-target, $@, $(PRODUCT_OUT)/$(subst .img,,$(subst boot,kernel,$(notdir $@))))
.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.