AOSP build error ninja failed with: exit status 1 - android

help, i cant find any solution as to why its doing this im trying to build android-x86 but keep getting this error
H16TOFW firmware/edgeport/boot2.fw
H16TOFW firmware/edgeport/boot.fw
H16TOFW firmware/edgeport/down.fw
IHEX2FW firmware/emi62/midi.fw
H16TOFW firmware/edgeport/down2.fw
IHEX2FW firmware/whiteheat_loader.fw
IHEX2FW firmware/whiteheat.fw
IHEX2FW firmware/keyspan_pda/keyspan_pda.fw
IHEX2FW firmware/keyspan_pda/xircom_pgs.fw
make[1]: Leaving directory '/media/*USERNAME*/Not-so-speedy-one/Projects/android-x86/out/target/product/x86_64/obj/kernel'
make: Leaving directory '/media/*USERNAME*/Not-so-speedy-one/Projects/android-x86/kernel'
ninja: build stopped: subcommand failed.
01:23:42 ninja failed with: exit status 1
any advice is much appreciated

You are not providing enough log. The cause of the problem is probably a lot higher up in the log. In my case it was a java.lang.OutOfMemoryError, so I reduced the number of concurrent build tasks. That is the -j option in make.

Related

ninja: error: system/bin/app_process', missing and no known rule to make it

this is my first time building an android custom rom and i got an error like this:
ninja: error: '/home/andra/android/lineage16/out/target/product/ASUS_Z01H_1/system/bin/app_process32', needed by '/home/andra/android/lineage16/out/target/product/ASUS_Z01H_1/system/bin/app_process', missing and no known rule to make it
18:14:10 ninja failed with: exit status 1
failed to build some targets (02:35 (mm:ss))
How to solve this?

AOSP Build failed: ninja failed with: exit status 1

My AOSP (PixelExperience) build fails with the error message below and I got no idea how to fix it.
Anyone here that got the knowlegde to provide me a possible fix?
make[1]: Leaving directory '/home/lukas/disk/pixelExperience/pixelExperience/out/target/product/cepheus/obj/KERNEL_OBJ'
make: Leaving directory '/home/lukas/disk/pixelExperience/pixelExperience/kernel/xiaomi/cepheus'
make: Entering directory '/home/lukas/disk/pixelExperience/pixelExperience/kernel/xiaomi/cepheus'
make[1]: Entering directory '/home/lukas/disk/pixelExperience/pixelExperience/out/target/product/cepheus/obj/KERNEL_OBJ'
GEN ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
make[1]: Leaving directory '/home/lukas/disk/pixelExperience/pixelExperience/out/target/product/cepheus/obj/KERNEL_OBJ'
make: Leaving directory '/home/lukas/disk/pixelExperience/pixelExperience/kernel/xiaomi/cepheus'
17:39:17 ninja failed with: exit status 1
As I cannot comment yet, I'll leave it here.
Your error is not in the lines you shared. Share a more complete log, with katb.in or pastebin for example, otherwise there is nothing we can do.

AOSP - error failed to build the custom ROM

I'm trying to build AOSP for a supported device (sony Xperia z5) (aosp_mips64-eng)
I follow the instruction here: https://forum.xda-developers.com/t/guide-how-to-build-aosp-pie-custom-rom-for-xperia-devices.3921641/
After download the source, Initializing device type for ROM building. I Encounter an error while trying to build the custom ROM:
I there anything i could do? Have I done something wrong? I'm pretty sure i did the previous steps correctly.
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
ninja: error: 'device/generic/common/nfc/libnfc-nci.conf', needed by 'out/target/product/generic/system/etc/libnfc-nci.conf', missing and no known rule to make it
10:29:40 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

Android build error (Slim7.1) because of ALSA

Totally new to ROM building! Trying to build slim for the LG K20 Plus TP260 (MSM8917)
I've downloaded LG's source and have tried to assimilate it into Slim's source (basically merging everything but the frameworks folder) and am now trying to build.
But this is the Ninja error I get:
ninja: Entering directory `.'
ninja: error: '/home/android/Desktop/cheap_android_love/out/target/product/generic_arm64/obj/KERNEL_OBJ/usr', needed by '/home/android/Desktop/cheap_android_love/out/target/product/generic_arm64/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I've checked the directory, and the "obj" folder doesn't even exist, so this error seems impossible to me... What files do I need to look at?
After changes to BoardConfig.mk and Kernel.mk makefiles regarding target kernel config and target source, everything goes together fine!

Running AOSP on MAC: stdarg.h error

I have the source code for android-5.0.0_r7.0.1. After doing:
make -j4
I keep getting this:
error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/InputDevice.h:20,
from frameworks/native/libs/input/InputDevice.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Keyboard.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1
#### make failed to build some targets (01:32 (mm:ss)) ####
I have looked at the google groups and other stack overflow questions, but I cannot seem to figure out what is going wrong.
#Meteorite
Well, ultimately after googling I discovered the AOSP for some reason did not support the latest version of Xcode tools and OS X. I dualbooted windows 7 with ubuntu, and did the whole process. And when I did the make command on ubuntu I typed: make -k -i -B. That is, I gave it the keep going, ignore make errors and build unconditionally flags.

Categories

Resources