Android building errors - N5 Nougat - Android General

Hello everyone, i've some problems with building Nougat (AOSP) for Nexus 5.
I've modified manifest (that's how it look like) to have everything downloaded but it hangs on this error:
Code:
make: *** No rule to make target 'frameworks/base/services/core/../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.aidl', needed by '/home/edi194/AOSP/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.java'. Stop.
make: *** Waiting for unfinished jobs....
logtags: /home/edi194/AOSP/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/src/core/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
I've thought that disabling ninja will make any difference but sadly not.
I'll be grateful for help.
If i've posted it in wrong section, please move it to correct
Edit: Yes, there is ThemeIntarfacer on manifest, but i need to have working build to do anything with it

Related

compiling from source issues

hey, I'm trying to build stock android from source using the cyanogen vendors as usual. But when I try to compile I get the error
Code:
make: *** No rule to make target `out/target/product/bravo/kernel', needed by `out/target/product/bravo/boot.img'. Stop.
Obviously the kernel is an issue, but how would i go about fixing it?

[Q] Missing proprietaries while building Beanstalk

Hello. I'm trying to build Beanstalk and thought I had pretty much everything set up, but I get this error while building:
Code:
make: *** No rule to make target `device/samsung/infuse4g/../../../vendor/samsung/infuse4g/proprietary/modem.bin', needed by `/mnt/SSD2/beanstalk/out/target/product/infuse4g/obj/EXECUTABLES/modem.bin_intermediates/modem.bin'. Stop.
I thought running device/samsung/infuse4g/extract-files.sh would have gotten me my vendor/samsung/infuse4g/proprietary/modem.bin, but it's not there. Any ideas?

Makefile error during CM10.1 Build: libmkyaffs2image_intermediates

Hi,
I'm trying to build CM10.1 for huashan : Xperia SP.
I have based my build on tsubasa: Xperia V.
But I'm not able to get past this error
make: * No rule to make target `/home/aniket/android/android/system/out/target/product/huashan/obj/STATIC_LIBRARIES/libmkyaffs2image_intermediates/export_includes', needed by `/home/aniket/android/android/system/out/target/product/huashan/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
I guess it is some kind of makefile issue and a tweak here or there might fix this ...
Any help ?
New error
I donno how I got past that error. But now I have a new error:
make: *** No rule to make target `android/android/android/system/out/target/product/huashan/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by `android/android/system/out/target/product/huashan/obj/EXECUTABLES/rild_intermediates/import_includes'
Any one ?

[Q] NEW TO PORTING ROMs.."No rule to make target "

I'm trying to porting CM11 to my Huawei U9200. I've forked Shev_t's device and vendor tree. While when I begin my build, something goes wrong like below, could anyone tell me what happened and what should I do?
Code:
make: *** No rule to make target `/home/alexander/android/system/out/target/product/viva/obj/SHARED_LIBRARIES/libbluetooth_intermediates/export_includes', needed by `/home/alexander/android/system/out/target/product/viva/obj/EXECUTABLES/hcidump_intermediates/import_includes'. Stop.

Cannot get stock kernel to compile

Hi.
I am trying to compile stock kernel for OnePlus 8T and cannot get it to build.
What I am doing wrong? Wrong clang version? (Tried 2 of em) Wrong defconfig? Wrong gcc?
I have clang r383902b and AOSP 4.9 gcc toolchain.
This is what I have tried so far:
1. git clone https://github.com/OnePlusOSS/android_kernel_oneplus_sm8250
3. cd android_kernel_oneplus_sm8250
2. git checkout oneplus/SM8250_R_11.0
3. run these exports:
export ARCH=arm64
export SUBARCH=arm64
export DTC_EXT=dtc
4. mkdir out
5. make O=out ARCH=arm64 defconfig (what is ringh config for the device? there is 3 of em:
cuttlefish_defconfig
defconfig
ranchu64_defconfig
What should I use? (Tried even grab one from phones /proc/config.gz without luck)
6. PATH=/home/user/android/clang-r383902b/bin:/home/user/android/toolchain/bin:${PATH} make -j$(nproc --all) O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android-
This asks few questions:
Clang Shadow Call Stack (SHADOW_CALL_STACK) [N/y/?] (NEW)
I answered no.
> 1. no automatic initialization (weakest) (INIT_STACK_NONE)
2. 0xAA-init everything on the stack (strongest) (INIT_STACK_ALL) (NEW)
choice[1-2?]:
Just pressed enter.
It starts compiling (few minutes) until it fails:
In file included from ../arch/arm64/kernel/machine_kexec.c:27:
../arch/arm64/kernel/cpu-reset.h:19:31: error: static declaration of 'cpu_soft_restart' follows non-static declaration
static inline void __noreturn cpu_soft_restart(unsigned long entry, ^
../arch/arm64/include/asm/proc-fns.h:35:6: note: previous declaration is here
void cpu_soft_restart(phys_addr_t cpu_reset,
^
../arch/arm64/kernel/machine_kexec.c:217:58: error: too many arguments to function call, expected 2, have 4
cpu_soft_restart(reboot_code_buffer_phys, kimage->head, kimage->start, 0);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
../arch/arm64/include/asm/proc-fns.h:35:1: note: 'cpu_soft_restart' declared here
void cpu_soft_restart(phys_addr_t cpu_reset,
^
2 errors generated.
make[2]: *** [../scripts/Makefile.build:339: arch/arm64/kernel/machine_kexec.o] Error 1
make[1]: *** [/storage/android/android_kernel_oneplus_sm8250/Makefile:1181: arch/arm64/kernel] Error 2
make[1]: *** Waiting for unfinished jobs....
CC arch/arm64/xen/../../arm/xen/grant-table.o
CC arch/arm64/xen/../../arm/xen/p2m.o
CC arch/arm64/xen/../../arm/xen/mm.o
AS arch/arm64/xen/hypercall.o
CC arch/arm64/xen/../../arm/xen/efi.o
AR arch/arm64/xen/built-in.a
make[1]: Leaving directory '/storage/android/android_kernel_oneplus_sm8250/out'
make: *** [Makefile:146: sub-make] Error 2
Thanks for advance if you have a small moment for my problem
There are multiple regional versions of the Oneplus 8T
Which one are you referring to exactly?
I think my phone model is not important at this point. I cannot get the kernel compiled at my PC. I should be able to do it even without owning the phone at all.
But my phone is EU variant.
Found few commits from other people forks for the kernel (like engstk bluspark kernel) which leads me bit further but still cannot compile.
My goal is to have full stock kernel only equipped with wireguard.
Now I have tried like EVERYTHING:
And stuck with this:
make[3]: *** No rule to make target 'arch/arm64/boot/dts/qcom/apq8016-sbc.dtb', needed by '__build'. Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:642: arch/arm64/boot/dts/qcom] Error 2
make[1]: *** [arch/arm64/Makefile:172: dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
I think you should use kona_defconfig or kona-perf_defconfig that locate in /arch/arm64/config/vendor/ directory
ex:
make vendor/kona_defconfig
instead of:
make defconfig
I successfully build from the official source but the device won't boot with my kernel
Managed to compile and even add few features. Now its just like I wanted.
Release Handelinkernel for OnePlus 8T v1.1 · drgreenth/android_kernel_oneplus_sm8250
My goal was to have pretty close to stock kernel with few optimizations and wireguard support. I made the kernel pretty much for myself. But feel free to download it. Its a kernel without any bling...
github.com
tohtorin said:
Managed to compile and even add few features. Now its just like I wanted.
Release Handelinkernel for OnePlus 8T v1.1 · drgreenth/android_kernel_oneplus_sm8250
My goal was to have pretty close to stock kernel with few optimizations and wireguard support. I made the kernel pretty much for myself. But feel free to download it. Its a kernel without any bling...
github.com
Click to expand...
Click to collapse
Just installed and will let you know after a few days my thoughts. Thanks for it
Awaiting the latest 7.10BA kernel with wireguard
Steve0007 said:
Awaiting the latest 7.10BA kernel with wireguard
Click to expand...
Click to collapse
My device still 6.9. But soon!
EDIT: Actually OnePlus did not change the kernel at all (nor they did not yet update the kernel source tree) so you can happily keep using v1.1 with 7.10
I am thinking of releasing this kernel for bigger audience but my time is very limited.
Released v1.2
Making dedicated thread soon.
Release Handelinkernel for OnePlus 8T v1.2 · drgreenth/android_kernel_oneplus_sm8250
Introducing Handelinkernel for OnePlus 8T! My goal was to have a pretty close to stock kernel with only minor optimizations (like reduce logging) and only wireguard support. I made the kernel prett...
github.com
Released
[KERNEL]Handelinkernel for OnePlus 8T v3.1 [OOS][11][OP8T][Wireguard]
Introducing Handelinkernel for OnePlus 8T! My goal was to have a pretty close to stock kernel with only minor optimizations (like reduce logging) and only wireguard support. I made the kernel pretty much for myself but feel free to download it...
forum.xda-developers.com
tohtorin said:
Now I have tried like EVERYTHING:
And stuck with this:
make[3]: *** No rule to make target 'arch/arm64/boot/dts/qcom/apq8016-sbc.dtb', needed by '__build'. Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:642: arch/arm64/boot/dts/qcom] Error 2
make[1]: *** [arch/arm64/Makefile:172: dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Sir, I meet the same problem, could you tell me how did you solved this?
w00jay said:
Sir, I meet the same problem, could you tell me how did you solved this?
Click to expand...
Click to collapse
try the kona-perf_defconfig
azoller1 said:
try the kona-perf_defconfig
Click to expand...
Click to collapse
yes, I had try that, it give me this.annoying
Code:
CHK kernel/kheaders_data.tar.xz
make[3]: *** No rule to make target 'arch/arm64/boot/dts/qcom/apq8016-sbc.dtb', needed by '__build'. Stop.
make[3]: *** Waiting for unfinished jobs....
../scripts/Makefile.build:642: recipe for target 'arch/arm64/boot/dts/qcom' failed
make[2]: *** [arch/arm64/boot/dts/qcom] Error 2
arch/arm64/Makefile:172: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
J
tohtorin said:
Now I have tried like EVERYTHING:
And stuck with this:
make[3]: *** No rule to make target 'arch/arm64/boot/dts/qcom/apq8016-sbc.dtb', needed by '__build'. Stop.
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [../scripts/Makefile.build:642: arch/arm64/boot/dts/qcom] Error 2
make[1]: *** [arch/arm64/Makefile:172: dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Remove DTC_EXT=dtc then compile

Categories

Resources