Ninja error while building Lineage OS - Android Q&A, Help & Troubleshooting

I get this error when I try to build Lineage OS:
[ 99% 955/956] glob test/vts/utils/Android.bp
ninja: error: 'cm-api-stubs-docs', needed by '/home/lennertf/android/lineage/out/target/common/obj/PACKAGING/cm_public_api.txt', missing and no known rule to make it
05:33:41 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
Does someone knows a solution?

Related

[help] compiling kernel from source for zte axon 7(zte a2017u)

Hi everyone I have been wanting to try to compile the kernel for my device from source so that I can add some features to it. first time trying this..
I have fixed all errors up till now but this one has been bothering for a few days:
Code:
In file included from drivers/usb/gadget/android.c:62:0:
./drivers/usb/gadget/function/f_rndis.c: In function 'rndis_alloc_inst':
./drivers/usb/gadget/function/f_rndis.c:1115:10: error: implicit declaration of function 'usb_os_desc_prepare_interf_dir' [-Werror=implicit-function-declaration]
usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs,
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target 'drivers/usb/gadget/android.o' failed
make[3]: *** [drivers/usb/gadget/android.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/usb/gadget' failed
make[2]: *** [drivers/usb/gadget] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
Makefile:945: recipe for target 'drivers' failed
make: *** [drivers] Error 2
I'm using linaro 4.9 as crosscompiler btw.
thanks guys, i'm really at my wits ends right now

[HELP] Error in 'make otapackage'

after i type make otapackage, after some time i get this error message and build stops. every time same error.
[ 69% 21776/31360] build out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c
FAILED: /bin/bash -c "external/iw/version.sh out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c"
fatal: No names found, cannot describe anything.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (05:33:08 (hh:mm:ss)) ####
Click to expand...
Click to collapse
can anyone help?
Are you trying to make AOSP otapackage
Ashwinrg said:
Are you trying to make AOSP otapackage
Click to expand...
Click to collapse
yeah, AOSP. any solution? i'm still struck

How to fix this error

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/roybabu/aospex/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/ro
ybabu/aospex/out/target/common/obj/APPS/MotoDoze_intermediates/with-local/classes.dex', missing and no known rule to make it
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
Roybabu said:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/roybabu/aospex/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/ro
ybabu/aospex/out/target/common/obj/APPS/MotoDoze_intermediates/with-local/classes.dex', missing and no known rule to make it
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
Click to expand...
Click to collapse
I have the same problem. Could you fix it?

help me, i Have trouble compiling Oreo AOSP

i downloaded aosp oreo source but when compile the source after compile 89% have a problem:
ninja: build stopped: subcommand failed.
11:22:26 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
please help me to fix this error
my OS:Ubuntu 17.04
Sorry for my bad english

Ninja Error While Building ROM

I am trying to build a ROM for a new device, as soon as i go for brunch command it gives me following error -
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'librecovery_updater_mofd', needed by '/home/rahul/android/system/out/target/product/Z00XS/obj/EXECUTABLES/recovery_intermediates/adb_install.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
make: Leaving directory '/home/rahul/android/system'
Click to expand...
Click to collapse

Categories

Resources