Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build Failure] Unknown reason #9

Open
hitech95 opened this issue Jul 16, 2019 · 0 comments
Open

[Build Failure] Unknown reason #9

hitech95 opened this issue Jul 16, 2019 · 0 comments

Comments

@hitech95
Copy link

I'm not an expert on building android, this is my first try.

I'm facing this issue:

root@servertwo:/home/user/android# make -j
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.0-9-amd64-x86_64-Debian-GNU/Linux-9-(stretch)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ3B.190705.003
OUT_DIR=out
============================================
ninja: no work to do.
ninja: no work to do.
wildcard(out/target/product/generic/clean_steps.mk) was changed, regenerating...
No need to regenerate ninja file
[  1% 9/601] target dex2oat: out/target/product/generic/dex_bootjars/system/framework/arm/boot.art
FAILED: out/target/product/generic/dex_bootjars/system/framework/arm/boot.art
/bin/bash -c "(mkdir -p out/target/product/generic/symbols/system/framework/arm/ ) && (rm -f out/target/product/generic/dex_bootjars/system/framework/arm//*.art out/target/product/generic/dex_bootjars/system/framework/arm//*.oat out/target/product/generic/dex_bootjars/system/framework/arm//*.art.rel ) && (rm -f out/target/product/generic/symbols/system/framework/arm//*.art ) && (rm -f out/target/product/generic/symbols/system/framework/arm//*.oat ) && (rm -f out/target/product/generic/symbols/system/framework/arm//*.art.rel ) && (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m              --runtime-arg -Xmx64m           --compiler-filter=speed-profile --profile-file=out/target/product/generic/dex_bootjars/system/framework/boot.prof           --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/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/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/framework-oahl-backward-compatibility_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.test.base_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/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/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/framework-oahl-backward-compatibility.jar --dex-location=/system/framework/android.test.base.jar            --oat-symbols=out/target/product/generic/symbols/system/framework/arm/boot.oat          --oat-file=out/target/product/generic/dex_bootjars/system/framework/arm/boot.oat            --oat-location=/system/framework/arm/boot.oat           --image=out/target/product/generic/dex_bootjars/system/framework/arm/boot.art --base=0x70000000             --instruction-set=arm           --instruction-set-variant=generic               --instruction-set-features=default              --android-root=out/target/product/generic/system            --runtime-arg -Xnorelocate --compile-pic                --no-generate-debug-info --generate-build-id            --multi-image --no-inline-from=core-oj.jar          --abort-on-hard-verifier-error          --abort-on-soft-verifier-error           --generate-mini-debug-info             || ( echo \"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.\" ; false ) &&  ANDROID_LOG_TAGS=\"*:e\" ANDROID_ROOT=out/target/product/generic/system ANDROID_DATA=out/target/product/generic/dex_bootjars/system/framework/arm/ out/host/linux-x86/bin/patchoatd                 --input-image-location=out/target/product/generic/dex_bootjars/system/framework/boot.art                --output-image-relocation-directory=out/target/product/generic/dex_bootjars/system/framework/arm/           --instruction-set=arm           --base-offset-delta=0x10000000 )"
/bin/bash: riga 1:  4750 Istruzione non consentita ANDROID_LOG_TAGS="*:e" out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=speed-profile --profile-file=out/target/product/generic/dex_bootjars/system/framework/boot.prof --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/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/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/framework-oahl-backward-compatibility_intermediates/javalib.jar --dex-file=out/target/common/obj/JAVA_LIBRARIES/android.test.base_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/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/android.hidl.base-V1.0-java.jar --dex-location=/system/framework/android.hidl.manager-V1.0-java.jar --dex-location=/system/framework/framework-oahl-backward-compatibility.jar --dex-location=/system/framework/android.test.base.jar --oat-symbols=out/target/product/generic/symbols/system/framework/arm/boot.oat --oat-file=out/target/product/generic/dex_bootjars/system/framework/arm/boot.oat --oat-location=/system/framework/arm/boot.oat --image=out/target/product/generic/dex_bootjars/system/framework/arm/boot.art --base=0x70000000 --instruction-set=arm --instruction-set-variant=generic --instruction-set-features=default --android-root=out/target/product/generic/system --runtime-arg -Xnorelocate --compile-pic --no-generate-debug-info --generate-build-id --multi-image --no-inline-from=core-oj.jar --abort-on-hard-verifier-error --abort-on-soft-verifier-error --generate-mini-debug-info
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.
[  2% 14/601] Proguard: out/target/common/obj/APPS/ContactsProvider_intermediates/classes-proguard.jar
ProGuard, version 5.1
Reading input...
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-header.jar]
Reading program jar [/home/user/android/out/target/common/obj/APPS/ContactsProvider_intermediates/classes.jar]
Initializing...
Ignoring unused library classes...
  Original number of library classes: 16429
  Final number of library classes:    16429
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 2150
  Final number of program classes:    616
Writing output...
Preparing output jar [/home/user/android/out/target/common/obj/APPS/ContactsProvider_intermediates/classes-proguard.jar]
  Copying resources from program jar [/home/user/android/out/target/common/obj/APPS/ContactsProvider_intermediates/classes.jar]
[  2% 17/601] Proguard: out/target/common/obj/APPS/Contacts_intermediates/classes-proguard.jar
ProGuard, version 5.1
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]
Reading program jar [/home/user/android/out/target/common/obj/APPS/Contacts_intermediates/classes.jar]
Preparing output jar [/home/user/android/out/target/common/obj/APPS/Contacts_intermediates/classes-proguard.jar]
  Copying resources from program jar [/home/user/android/out/target/common/obj/APPS/Contacts_intermediates/classes.jar]
[  2% 18/601] Proguard: out/target/common/obj/APPS/messaging_intermediates/classes-proguard.jar
ProGuard, version 5.1
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes-header.jar]
Reading system jar [/home/user/android/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes-header.jar]
Reading program jar [/home/user/android/out/target/common/obj/APPS/messaging_intermediates/classes.jar]
Preparing output jar [/home/user/android/out/target/common/obj/APPS/messaging_intermediates/classes-proguard.jar]
  Copying resources from program jar [/home/user/android/out/target/common/obj/APPS/messaging_intermediates/classes.jar]
ninja: build stopped: subcommand failed.
19:19:22 ninja failed with: exit status 1
build/make/core/main.mk:21: set di istruzioni per l'obiettivo "run_soong_ui" non riuscito
make: *** [run_soong_ui] Errore 1
root@servertwo:/home/user/android#

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant