Arrowos compilation fails on 8gb memory device - Android Q&A, Help & Troubleshooting

I'm trying to compile arrow os for android 12.1 for my device, but I'm having some problems with the last point, can anyone help me? The log file is as follows.
Code:
FAILED: //frameworks/base/packages/SystemUI:SystemUI-core kapt [common]
Outputs: /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/kapt-sources.jar /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/kapt-res.jar
Error: exited with code: 1
Command: rm -rf "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars" "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/build.xml" "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen" && mkdir -p "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars" "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/sources" "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/classes" && /home/dulin/arrow/out/soong/host/linux-x86/bin/zipsync -d /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars -l /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars/list -f "*.java" /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/gen/aidl/aidl0.srcjar /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/gen/android/R.srcjar && /home/dulin/arrow/out/soong/host/linux-x86/bin/gen-kotlin-build-file.py --classpath "/home/dulin/arrow/out/soong/.intermediates/libcore/mmodules/core_platform_api/legacy.core.platform.api.stubs/android_common/turbine-combined/legacy.core.platform.api.stubs.jar:/home/dulin/arrow/out/soong/.intermediates/libcore/core-lambda-stubs/android_common/turbine-combined/core-lambda-stubs.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/ext/android_common/turbine-combined/ext.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/framework/android_common/turbine-combined/framework.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/libs/WindowManager/Shell/WindowManager-Shell/android_common/combined/WindowManager-Shell.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/animation/SystemUIAnimationLib/android_common/turbine-combined/SystemUIAnimationLib.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/plugin/SystemUIPluginLib/android_common/turbine-combined/SystemUIPluginLib.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/shared/SystemUISharedLib/android_common/turbine-combined/SystemUISharedLib.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/shared/SystemUI-statsd/android_common/turbine-combined/SystemUI-statsd.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SettingsLib/SettingsLib/android_common/turbine-combined/SettingsLib.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.viewpager2_viewpager2/android_common/turbine-combined/androidx.viewpager2_viewpager2.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx-legacy/androidx.legacy_legacy-support-v4/android_common/turbine-combined/androidx.legacy_legacy-support-v4.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.recyclerview_recyclerview/android_common/turbine-combined/androidx.recyclerview_recyclerview.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.preference_preference/android_common/turbine-combined/androidx.preference_preference.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.appcompat_appcompat/android_common/turbine-combined/androidx.appcompat_appcompat.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.concurrent_concurrent-futures/android_common/turbine-combined/androidx.concurrent_concurrent-futures.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.mediarouter_mediarouter/android_common/turbine-combined/androidx.mediarouter_mediarouter.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.palette_palette/android_common/turbine-combined/androidx.palette_palette.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx-legacy/androidx.legacy_legacy-preference-v14/android_common/turbine-combined/androidx.legacy_legacy-preference-v14.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.leanback_leanback/android_common/turbine-combined/androidx.leanback_leanback.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.slice_slice-core/android_common/turbine-combined/androidx.slice_slice-core.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.slice_slice-view/android_common/turbine-combined/androidx.slice_slice-view.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.slice_slice-builders/android_common/turbine-combined/androidx.slice_slice-builders.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.arch.core_core-runtime/android_common/turbine-combined/androidx.arch.core_core-runtime.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx-legacy/androidx.lifecycle_lifecycle-extensions/android_common/turbine-combined/androidx.lifecycle_lifecycle-extensions.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.dynamicanimation_dynamicanimation/android_common/turbine-combined/androidx.dynamicanimation_dynamicanimation.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/extras/constraint-layout-x/androidx-constraintlayout_constraintlayout/android_common/turbine-combined/androidx-constraintlayout_constraintlayout.jar:/home/dulin/arrow/out/soong/.intermediates/prebuilts/sdk/current/androidx/androidx.exifinterface_exifinterface/android_common/turbine-combined/androidx.exifinterface_exifinterface.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinx.coroutines/kotlinx_coroutines_android/android_common/turbine-combined/kotlinx_coroutines_android.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinx.coroutines/kotlinx_coroutines/android_common/turbine-combined/kotlinx_coroutines.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/libs/systemui/iconloaderlib/iconloader_base/android_common/turbine-combined/iconloader_base.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-tags/android_common/turbine-combined/SystemUI-tags.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-proto/android_common/turbine-combined/SystemUI-proto.jar:/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/monet/monet/android_common/turbine-combined/monet.jar:/home/dulin/arrow/out/soong/.intermediates/external/dagger2/dagger2/android_common/turbine-combined/dagger2.jar:/home/dulin/arrow/out/soong/.intermediates/external/jsr330/jsr330/android_common/turbine-combined/jsr330.jar:/home/dulin/arrow/out/soong/.intermediates/external/lottie/lottie/android_common/turbine-combined/lottie.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinc/kotlin-stdlib/android_common/combined/kotlin-stdlib.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinc/kotlin-stdlib-jdk7/android_common/combined/kotlin-stdlib-jdk7.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinc/kotlin-stdlib-jdk8/android_common/combined/kotlin-stdlib-jdk8.jar:/home/dulin/arrow/out/soong/.intermediates/external/kotlinc/kotlin-annotations/android_common/combined/kotlin-annotations.jar" --name "frameworks__base__packages__SystemUI__android_common__SystemUI-core" --srcs "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/kapt-sources.jar.rsp" --srcs "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars/list" --out "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/build.xml" && external/kotlinc/bin/kotlinc -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED -J--add-opens=java.base/sun.net.www.protocol.jar=ALL-UNNAMED -J--add-opens=java.base/java.util=ALL-UNNAMED -J-Xmx1024M -Xjvm-default=enable -Xuse-ir -no-stdlib -no-jdk -Xplugin=external/kotlinc/lib/kotlin-annotation-processing.jar -P plugin:org.jetbrains.kotlin.kapt3:sources=/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/sources -P plugin:org.jetbrains.kotlin.kapt3:classes=/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/classes -P plugin:org.jetbrains.kotlin.kapt3:stubs=/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/stubs -P plugin:org.jetbrains.kotlin.kapt3:correctErrorTypes=true -P plugin:org.jetbrains.kotlin.kapt3:aptMode=stubsAndApt -P plugin:org.jetbrains.kotlin.kapt3:javacArguments=rO0ABXcgAAAAAgAHLXNvdXJjZQADMS45AActdGFyZ2V0AAMxLjk= -P plugin:org.jetbrains.kotlin.kapt3:apclasspath=/home/dulin/arrow/out/soong/.intermediates/external/dagger2/dagger2-compiler/linux_glibc_common/withres/dagger2-compiler.jar -P plugin:org.jetbrains.kotlin.kapt3:processors=dagger.internal.codegen.ComponentProcessor -Xbuild-file=/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/build.xml && /home/dulin/arrow/out/soong/host/linux-x86/bin/soong_zip -jar -o /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/kapt-sources.jar -C /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/sources -D /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/sources && /home/dulin/arrow/out/soong/host/linux-x86/bin/soong_zip -jar -o /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/kapt-res.jar -C /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/classes -D /home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/gen/classes && rm -rf "/home/dulin/arrow/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/kapt/srcJars"
Output:
WARN: The registry key 'java.correct.class.type.by.place.resolve.scope' accessed, but not loaded yet
warning: some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath
out/soong/.intermediates/external/kotlinx.coroutines/kotlinx_coroutines/android_common/turbine-combined/kotlinx_coroutines.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/external/kotlinx.coroutines/kotlinx_coroutines_android/android_common/turbine-combined/kotlinx_coroutines_android.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/external/lottie/lottie/android_common/turbine-combined/lottie.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/libs/WindowManager/Shell/WindowManager-Shell/android_common/combined/WindowManager-Shell.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/packages/SettingsLib/SettingsLib/android_common/turbine-combined/SettingsLib.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/packages/SystemUI/animation/SystemUIAnimationLib/android_common/turbine-combined/SystemUIAnimationLib.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/packages/SystemUI/monet/monet/android_common/turbine-combined/monet.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/packages/SystemUI/plugin/SystemUIPluginLib/android_common/turbine-combined/SystemUIPluginLib.jar: warning: library has Kotlin runtime bundled into it
out/soong/.intermediates/frameworks/base/packages/SystemUI/shared/SystemUISharedLib/android_common/turbine-combined/SystemUISharedLib.jar: warning: library has Kotlin runtime bundled into it
exception: java.lang.IllegalStateException: failed to analyze: java.lang.OutOfMemoryError: Java heap space
at org.jetbrains.kotlin.analyzer.AnalysisResult.throwIfError(AnalysisResult.kt:56)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:193)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:154)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:169)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:76)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:45)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit(CLITool.kt:227)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMainNoExit$default(CLITool.kt:222)
at org.jetbrains.kotlin.cli.common.CLITool$Companion.doMain(CLITool.kt:214)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion.main(K2JVMCompiler.kt:271)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.main(K2JVMCompiler.kt)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jetbrains.kotlin.preloading.Preloader.run(Preloader.java:87)
at org.jetbrains.kotlin.preloading.Preloader.main(Preloader.java:44)
Caused by: java.lang.OutOfMemoryError: Java heap space
at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl$$Lambda$533/0x00000001007f4c40.get$Lambda(Unknown Source)
at java.base/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder)
at java.base/java.lang.invoke.Invokers$Holder.linkToTargetMethod(Invokers$Holder)
at jdk.compiler/com.sun.tools.javac.code.Scope$ScopeImpl.getSymbolsByName(Scope.java:629)
at jdk.compiler/com.sun.tools.javac.code.Scope.getSymbolsByName(Scope.java:106)
at jdk.compiler/com.sun.tools.javac.code.Scope.getSymbolsByName(Scope.java:92)
at jdk.compiler/com.sun.tools.javac.comp.Check.checkTransparentVar(Check.java:344)
at jdk.compiler/com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:299)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:956)
at jdk.compiler/com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:163)
at jdk.compiler/com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:175)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$MembersPhase.finishClass(TypeEnter.java:958)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:942)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:282)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$MembersPhase.doCompleteEnvs(TypeEnter.java:877)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:251)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:266)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:266)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:266)
at jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:198)
at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:642)
at jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1326)
at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:583)
at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:560)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1066)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing(annotationProcessing.kt:74)
at org.jetbrains.kotlin.kapt3.base.AnnotationProcessingKt.doAnnotationProcessing$default(annotationProcessing.kt:31)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.runAnnotationProcessing(Kapt3Extension.kt:229)
at org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.analysisCompleted(Kapt3Extension.kt:192)
at org.jetbrains.kotlin.kapt3.ClasspathBasedKapt3Extension.analysisCompleted(Kapt3Extension.kt:100)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$invokeExtensionsOnAnalysisComplete(TopDownAnalyzerFacadeForJVM.kt:108)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:118)

I am getting this error while compiling the cm14.1 version of lineageos, can anyone help me?
Code:
[ 7% 530/6795] ----- Making recovery ramdisk ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat '/home/dulin/los/out/target/product/X504F/root/init.recovery.*.rc': No such file or directory
----- Making uncompressed recovery ramdisk ------
[ 7% 532/6795] ----- Making recovery image ------
+/home/dulin/los/out/target/product/X504F/recovery.img maxsize=68395008 blocksize=135168 total=31393792 reserve=811008
----- Made recovery image: /home/dulin/los/out/target/product/X504F/recovery.img --------
[ 7% 535/6795] Construct recovery from boot
FAILED: /bin/bash -c "(mkdir -p /home/dulin/los/out/target/product/X504F/obj/PACKAGING/recovery_patch_intermediates/ ) && (PATH=/home/dulin/los/out/host/linux-x86/bin:\$PATH /home/dulin/los/out/host/linux-x86/bin/imgdiff /home/dulin/los/out/target/product/X504F/boot.img /home/dulin/los/out/target/product/X504F/recovery.img /home/dulin/los/out/target/product/X504F/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p )"
source and target don't have same number of chunks!
source chunks:
chunk 0: type 0 start 0 len 2058
chunk 1: type 2 start 2058 len 22152192
chunk 2: type 0 start 9041991 len 16396217
target chunks:
chunk 0: type 0 start 0 len 2058
chunk 1: type 2 start 2058 len 22152192
chunk 2: type 0 start 9041991 len 16396227
chunk 3: type 2 start 25438218 len 11374336
chunk 4: type 0 start 31393350 len 442
[ 7% 535/6795] target Export Resources: framework-res (/home/dulin/los/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
warning: string 'candidates_style' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'wfcSpnFormat' has no default translation.
nothing matches overlay file default_wallpaper.png, for flavor hdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxhdpi-v4
nothing matches overlay file default_wallpaper.png, for flavor xxxhdpi-v4
[ 7% 535/6795] Building with Jack: /home/dulin/los/out/target/common/obj/JAVA_LIBRARIES/apache-harmony-tests_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (06:53 (mm:ss)) ####

Related

Help with zImage kernel compilation

This is my first time trying to compile my own kernel, i am dealing some problems and need help
i get these messages when executing the commang "make"
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC kernel/bounds.s
CC scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1
': execvp: make: *** [prepare0] Error 2
make: No such file or directory
*** Waiting for unfinished jobs....make[2]:
*** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
i red quite many webpages and i follow this guides
http://lanrat.com/how-to-compile-a-linux-kernel-for-android/
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much
any help ?
spkraul said:
This is my first time trying to compile my own kernel, i am dealing some problems and need help
i get these messages when executing the commang "make"
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC kernel/bounds.s
CC scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1
': execvp: make: *** [prepare0] Error 2
make: No such file or directory
*** Waiting for unfinished jobs....make[2]:
*** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
i red quite many webpages and i follow this guides
http://lanrat.com/how-to-compile-a-linux-kernel-for-android/
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much
any help ?
Click to expand...
Click to collapse
Which toolchain and version of the toolchain are you using? I would recommend checking out this information on someone who ran into the same problem as you and how they fixed it. Let me know if you still have questions.
i execute <<cd linux>>, <<make mrproper>>, <<make V=1 all>> and i get the following messages
[email protected]:~$ cd linux
bash: cd: linux: No such file or directory
[email protected]:~$ make mrproper
make: *** No rule to make target `mrproper'. Stop.
[email protected]:~$ cd /home/alex/o2droid/kern_2.6.32
[email protected]:~/o2droid/kern_2.6.32$ make prproper
make: *** No rule to make target `prproper'. Stop.
[email protected]:~/o2droid/kern_2.6.32$ make V=1 all
set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132640; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' < /home/alex/o2droid/kern_2.6.32/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
make -f scripts/Makefile.build obj=arch/arm/tools include/asm-arm/mach-types.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
rm -f include/config/kernel.release
echo 2.6.32.9-00163-g4c4becf-dirty > include/config/kernel.release
set -e; : ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.32.9-00163-g4c4becf-dirty" | wc -c ` -gt 64 ]; then echo '"2.6.32.9-00163-g4c4becf-dirty" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.32.9-00163-g4c4becf-dirty\" < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else : ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi
set -e; if [ -L include/asm ]; then asmlink=`readlink include/asm | cut -d '-' -f 2`; if [ "$asmlink" != "arm" ]; then echo "ERROR: the symlink include/asm points to asm-$asmlink but asm-arm was expected"; echo " set ARCH or save .config and run 'make mrproper' to fix it"; exit 1; fi; test -e $asmlink || rm include/asm; elif [ -d include/asm ]; then echo "ERROR: include/asm is a directory but a symlink was expected"; exit 1; fi
if [ ! -L include/asm ]; then : ' SYMLINK include/asm -> include/asm-arm'; if [ ! -d include/asm-arm ]; then mkdir -p include/asm-arm; fi; ln -fsn asm-arm include/asm; fi
mkdir -p .tmp_versions ; rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=scripts/basic
(cat /dev/null; ) > scripts/basic/modules.order
make -f scripts/Makefile.build obj=.
(cat /dev/null; ) > modules.order
mkdir -p kernel/
/opt/cross/bin/arm-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem include -Iinclude -I/home/alex/o2droid/kern_2.6.32/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-s3c6400/include -Iarch/arm/mach-s3c6410/include -Iarch/arm/plat-s3c64xx/include -Iarch/arm/plat-s3c/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -msoft-float -Uarm -fomit-frame-pointer -g -O3 -marm -march=armv6zk -mfpu=vfp -mtune=arm1176jzf-s -mtune=arm1136j-s -mfloat-abi=softfp -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
i am using toolchain arm-eabi 4.6
i red the documentation
i have nothing like <<cc1>> under usr/bin
I don't have a /usr/local/libexec directory
i installed anything about cc1 from package manager and still nothing changed.
i did something wrong with <<make menuconfig>> or else ?
i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32
i use the wrong toolchain ?
spkraul said:
i am using toolchain arm-eabi 4.6
i red the documentation
i have nothing like <<cc1>> under usr/bin
I don't have a /usr/local/libexec directory
i installed anything about cc1 from package manager and still nothing changed.
i did something wrong with <<make menuconfig>> or else ?
i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32
i use the wrong toolchain ?
Click to expand...
Click to collapse
If you follow the guide in the repository that is meant for a pure Linux kernel, what def config under arch/arm/configs did you use?
Try using a procedure similar to the following:
Code:
export TOP= [where you installed the toolchain or top of android AOSP code base]
export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path)
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
make NAMEOFDEVICE_defconfig
make -jx (Where x is the number of jobs you want -j4 is a safe option)
i followed your commands and no result yet. same problems
i checked this guide http://ubuntuforums.org/showthread.php?t=2213325
and got the following
[email protected]:~$ arm-none-linux-gnueabi-gcc -print-prog-name=cc1
arm-none-linux-gnueabi-gcc: command not found
[email protected]:~$ arm-linux-gnueabi-gcc -print-prog-name=cc1
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/cc1
[email protected]:~$ arm-linux-gnueabihf-gcc -print-prog-name=cc1
The program 'arm-linux-gnueabihf-gcc' is currently not installed. You can install it by typing:
sudo apt-get install gcc-arm-linux-gnueabihf
[email protected]:~$ dpkg -l | grep '\<gcc'
ii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compiler
ii gcc-4.6 4.6.4-6ubuntu2 amd64 GNU C compiler
ii gcc-4.6-base:amd64 4.6.4-6ubuntu2 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.6-base:i386 4.6.4-6ubuntu2 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.6-multilib 4.6.4-6ubuntu2 amd64 GNU C compiler (multilib files)
ii gcc-4.7-arm-linux-gnueabi 4.7.3-12ubuntu1cross1.85 amd64 GNU C compiler
ii gcc-4.7-arm-linux-gnueabi-base 4.7.3-12ubuntu1cross1.85 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8 4.8.2-19ubuntu1 amd64 GNU C compiler
ii gcc-4.8-arm-linux-gnueabihf-base 4.8.2-16ubuntu4cross0.11 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-base:amd64 4.8.2-19ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-base:i386 4.8.2-19ubuntu1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-multilib 4.8.2-19ubuntu1 amd64 GNU C compiler (multilib files)
ii gcc-4.9-base:amd64 4.9-20140406-0ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.9-base:i386 4.9-20140406-0ubuntu1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-arm-linux-gnueabi 4:4.7.2-1 amd64 The GNU C compiler for armel architecture
ii gcc-multilib 4:4.8.2-1ubuntu6 amd64 GNU C compiler (multilib files)
i am using omniaII_defconfig
upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ?
spkraul said:
upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ?
Click to expand...
Click to collapse
After looking more into it I noticed there is a script included in the files for building the kernel called make_kernel, you should be able to build the kernel running the script, "./make_kernel -k" with the -k option being defined by the script to make the kernel. You may have to tweak the script to suite your build environment.
thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!"
i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ?
i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case.
i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable]
"
you follow any specific procedure to deal with these errors ?
spkraul said:
thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!"
i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ?
i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case.
i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable]
"
you follow any specific procedure to deal with these errors ?
Click to expand...
Click to collapse
In the error messages you will see what file the error is in and which line the error occurs going to that file and line(s) the error occurred at is the best place to start. Instead of using the script take the commands in the script and do them manually in the order the script would execute them in, until you get an error you can troubleshoot or it compiles successfully.

AOSP cannot find libmincrypt when building recovery binary

I am compiling Marshmallow 6.0.1 release. I run:
Code:
$ . build/envsetup.sh
$ lunch # select arm_64 eng
$ make dist
Everything works fine until it tries to build the recovery binary:
Code:
target StaticExecutable: recovery (out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
out/target/product/generic_arm64/obj/STATIC_LIBRARIES/libminadbd_intermediates/libminadbd.a(adb_auth_client.o): In function `adb_auth_verify(unsigned char*, unsigned char*, int)':
/home/tyler/AOSP/system/core/adb/adb_auth_client.cpp:154: undefined reference to `RSA_verify'
out/target/product/generic_arm64/obj/STATIC_LIBRARIES/libfusesideload_intermediates/libfusesideload.a(fuse_sideload.o): In function `fetch_block':
/home/tyler/AOSP/bootable/recovery/fuse_sideload.c:276: undefined reference to `SHA256_hash'
collect2: error: ld returned 1 exit status
build/core/executable_internal.mk:75: recipe for target 'out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery' failed
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
I tried searching for it using
Code:
$ find . | grep libmincrypt
and I found that I only have the static library built (libmincrypt.a). Do I need the shared lib version of libmincrypt for the Android.mk in $AOSP/bootable/recovery to work? If so, how can I rebuild and get the shared lib?

Error Building system image for Android development board

Hi, I have a Hikey 970 development board. When I tried to build system image for the device, some strange error occurred and I have no idea of what is going on. I am pretty new to AOSP and kernel, so I hope someone can help me, Thanks!
I followed procedures in Android source website to set up the environment, and after I finish downloading the AOSP source code for Hikey 970, i used
(1) source ./build/envsetup.sh
(2) lunch hikey970-userdebug
(3) make systemimage -j32
to build system image. However, error occurred as follow:
[ 60% 34434/56804] //frameworks/base/core/res:framework-res aapt2 link
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages
out/soong/host/linux-x86/bin/aapt2 link -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk --private-symbols com.android.internal --no-auto-version --no-static-lib-packages --manifest out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/manifest_fixer/AndroidManifest.xml -A frameworks/base/core/res/assets --min-sdk-version Q --target-sdk-version Q --version-code 27 --version-name Q --product emulator -c en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el_GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_CA,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO,nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh_HK,zh_TW,am_ET,hi_IN,en_US,af_ZA,am_ET,ar_EG,ar_XB,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK,de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es_ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_ES,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT,iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo_LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_MM,nb_NO,ne_NP,nl_NL,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA --java out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R --proguard out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options --output-text-symbols out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/res.list -R @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/overlay.list && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -C out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R -D out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R &&out/soong/host/linux-x86/bin/extract_jar_packages -i out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages --prefix '--extra-packages '
out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/drawable-hd_common/aapt2/frameworks/base/core/res/res/drawable-hdpi_progressbar_indeterminate_holo8.png.flat: error: failed to open.
error: failed parsing input.
20:08:20 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
I couldn't find an answer to this error. Any help will be appreciated, thanks!

Error Building system image for Android development board!!!

Hi, I have a Hikey 970 development board. When I tried to build system image for the device, some strange error occurred and I have no idea of what is going on. I am pretty new to AOSP and kernel, so I hope someone can help me, Thanks!
I followed procedures in Android source website to set up the environment, and after I finish downloading the AOSP source code for Hikey 970, i used
(1) source ./build/envsetup.sh
(2) lunch hikey970-userdebug
(3) make systemimage -j32
to build system image. However, error occurred as follow:
[ 60% 34434/56804] //frameworks/base/core/res:framework-res aapt2 link
FAILED: out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages
out/soong/host/linux-x86/bin/aapt2 link -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/package-res.apk --private-symbols com.android.internal --no-auto-version --no-static-lib-packages --manifest out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/manifest_fixer/AndroidManifest.xml -A frameworks/base/core/res/assets --min-sdk-version Q --target-sdk-version Q --version-code 27 --version-name Q --product emulator -c en_US,en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el _GR,en_AU,en_CA,en_GB,en_NZ,en_SG,eo_EU,es_ES,fr_C A,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO, nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh _HK,zh_TW,am_ET,hi_IN,en_US,af_ZA,am_ET,ar_EG,ar_X B,az_AZ,be_BY,bg_BG,bn_BD,bs_BA,ca_ES,cs_CZ,da_DK, de_DE,el_GR,en_AU,en_CA,en_GB,en_IN,en_XA,en_XC,es _ES,es_US,et_EE,eu_ES,fa_IR,fi_FI,fr_CA,fr_FR,gl_E S,gu_IN,hi_IN,hr_HR,hu_HU,hy_AM,in_ID,is_IS,it_IT, iw_IL,ja_JP,ka_GE,kk_KZ,km_KH,kn_IN,ko_KR,ky_KG,lo _LA,lt_LT,lv_LV,mk_MK,ml_IN,mn_MN,mr_IN,ms_MY,my_M M,nb_NO,ne_NP,nl_NL,pa_IN,pl_PL,pt_BR,pt_PT,ro_RO, ru_RU,si_LK,sk_SK,sl_SI,sq_AL,sr_Latn_RS,sr_RS,sv_ SE,sw_TZ,ta_IN,te_IN,th_TH,tl_PH,tr_TR,uk_UA,ur_PK ,uz_UZ,vi_VN,zh_CN,zh_HK,zh_TW,zu_ZA --java out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R --proguard out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/proguard.options --output-text-symbols out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/R.txt @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/res.list -R @out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/overlay.list && out/soong/host/linux-x86/bin/soong_zip -write_if_changed -jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -C out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R -D out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/aapt2/R &&out/soong/host/linux-x86/bin/extract_jar_packages -i out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/gen/R.jar -o out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/extra_packages --prefix '--extra-packages '
out/soong/.intermediates/frameworks/base/core/res/framework-res/android_common/aapt2/frameworks/base/core/res/res/drawable-hd_common/aapt2/frameworks/base/core/res/res/drawable-hdpi_progressbar_indeterminate_holo8.png.flat: error: failed to open.
error: failed parsing input.
20:08:20 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
I couldn't find an answer to this error. Any help will be appreciated, thanks!

PPR2_181005_003 Marlin Build fails @96% ninja: build stopped: subcommand failed.

Newbie to android build. Wanted to build an image for my device (Pie) . started testing / building one for marlin (Lunch aosp_marlin-userdebug). The buid repeatedly fails at 96%. Need help. Environment has been setup on a virtual machine in hyper V environment (24GB Ram, AMD Phenom II 1100T,OS-150GB,100GB Swap,AND Build -300 GB- Complete hardware info at the end.
. bashrc modifications
export OUT_DIR_COMMON_BASE=/and/out
export PATH=$PATH:/and:/and/bin:/and/out:/and/aosp_PPR2_181005_003
export USE_CCACHE=1
export LC_ALL=C
export ANDROID_JACK_VM_ARGS="-Xmx8192m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
Error Messages
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 85735/89212] target Strip (mini debug info): mdnsd (.../product/marlin/obj/EXECUTABLES/mdnsd_intermediates/mdnsd)
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm: /and/out/aosp_PPR2_181005_003/target/product/marlin/symbols/system/bin/mdnsd: no symbols
[ 96% 85765/89212] //frameworks/native/services/surfaceflinger:libsurfaceflinger link libsurfaceflinger.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 85963/89212] Target boot image from recovery: /and/out/aosp_PPR2_181005_003/target/product/marlin/boot.img
cp: cannot stat ‘/and/out/aosp_PPR2_181005_003/target/product/marlin/root/init.recovery.*.rc’: No such file or directory
[ 96% 86223/89212] //art/runtime:libart link libart.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86374/89212] Hidden API: /and/out/aosp_PPR2_181005_0...JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
FAILED: /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
/bin/bash -c "(rm -f /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp "/and/out/aosp_PPR2_181005_003/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar" "/and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar" ) && (rm -rf /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (mkdir -p /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (unzip -q /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar 'classes*.dex' -d /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (find /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs /and/out/aosp_PPR2_181005_003/host/linux-x86/bin/hiddenapi --light-greylist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-blacklist.txt ) && (/and/out/aosp_PPR2_181005_003/soong/host/linux-x86/bin/soong_zip -o /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -C /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -D /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (/and/out/aosp_PPR2_181005_003/soong/host/linux-x86/bin/merge_zips -D -zipToNotStrip /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -stripFile "classes*.dex" /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar /and/out/aosp_PPR2_181005_003/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar )"
xargs: /and/out/aosp_PPR2_181005_003/host/linux-x86/bin/hiddenapi: terminated by signal 4
[ 96% 86377/89212] //art/runtime:libart link libart.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86378/89212] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86379/89212] //frameworks/base/libs/hwui:libhwui link libhwui.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
ninja: build stopped: subcommand failed.
06:43:46 ninja failed with: exit status 1
#### failed to build some targets (03:06:36 (hh:mm:ss)) ###
naganddevelop said:
Newbie to android build. Wanted to build an image for my device (Pie) . started testing / building one for marlin (Lunch aosp_marlin-userdebug). The buid repeatedly fails at 96%. Need help. Environment has been setup on a virtual machine in hyper V environment (24GB Ram, AMD Phenom II 1100T,OS-150GB,100GB Swap,AND Build -300 GB- Complete hardware info at the end.
. bashrc modifications
export OUT_DIR_COMMON_BASE=/and/out
export PATH=$PATH:/and:/and/bin:/and/out:/and/aosp_PPR2_181005_003
export USE_CCACHE=1
export LC_ALL=C
export ANDROID_JACK_VM_ARGS="-Xmx8192m -Xms512m -Dfile.encoding=UTF-8 -XX:+TieredCompilation"
Error Messages
Code:
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 85735/89212] target Strip (mini debug info): mdnsd (.../product/marlin/obj/EXECUTABLES/mdnsd_intermediates/mdnsd)
prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-nm: /and/out/aosp_PPR2_181005_003/target/product/marlin/symbols/system/bin/mdnsd: no symbols
[ 96% 85765/89212] //frameworks/native/services/surfaceflinger:libsurfaceflinger link libsurfaceflinger.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 85963/89212] Target boot image from recovery: /and/out/aosp_PPR2_181005_003/target/product/marlin/boot.img
cp: cannot stat ‘/and/out/aosp_PPR2_181005_003/target/product/marlin/root/init.recovery.*.rc’: No such file or directory
[ 96% 86223/89212] //art/runtime:libart link libart.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86374/89212] Hidden API: /and/out/aosp_PPR2_181005_0...JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
FAILED: /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar
/bin/bash -c "(rm -f /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar ) && (cp "/and/out/aosp_PPR2_181005_003/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar" "/and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar" ) && (rm -rf /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (mkdir -p /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (unzip -q /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar 'classes*.dex' -d /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (find /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs /and/out/aosp_PPR2_181005_003/host/linux-x86/bin/hiddenapi --light-greylist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=/and/out/aosp_PPR2_181005_003/target/common/obj/PACKAGING/hiddenapi-blacklist.txt ) && (/and/out/aosp_PPR2_181005_003/soong/host/linux-x86/bin/soong_zip -o /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -C /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi -D /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi ) && (/and/out/aosp_PPR2_181005_003/soong/host/linux-x86/bin/merge_zips -D -zipToNotStrip /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar -stripFile "classes*.dex" /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/javalib.jar /and/out/aosp_PPR2_181005_003/target/common/obj/JAVA_LIBRARIES/android.test.base_intermediates/dex-hiddenapi/classes.dex.jar /and/out/aosp_PPR2_181005_003/soong/.intermediates/frameworks/base/test-base/android.test.base/android_common/dex/android.test.base.jar )"
xargs: /and/out/aosp_PPR2_181005_003/host/linux-x86/bin/hiddenapi: terminated by signal 4
[ 96% 86377/89212] //art/runtime:libart link libart.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86378/89212] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 96% 86379/89212] //frameworks/base/libs/hwui:libhwui link libhwui.so [arm]
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
ninja: build stopped: subcommand failed.
06:43:46 ninja failed with: exit status 1
#### failed to build some targets (03:06:36 (hh:mm:ss)) ###
Click to expand...
Click to collapse
I have just gotten the exact same issue.
Have you resolved it?
klabit87 said:
I have just gotten the exact same issue.
Have you resolved it?
Click to expand...
Click to collapse
My assumption is that you would have used android-9.0.0_r16 branch . Based on posting from other forums , it was one of the scripts that created the problem(for certain scenarios) and was fixed in android-9.0.0_r17 and higher. I tried it out on android-9.0.0_r18 and was not able to replicate the same . Hope this works for you.

Categories

Resources