[Makefile:152: sub-make] Error 2 (Xiaomi note 7 lavender) - Xiaomi Redmi Note 7 Questions & Answers

When compiling kernel modules, an error (Makefile:152: sub-make] Error 2)

How to solve this problem, please tell me?)

I have this problem, too, when I try to make sub-make and I get an error,core dumped

Related

[Q] Error [238] : File read

Hi there,
When I'm installing the rom ([ROM][31.01.2011][WWE-ITA-FRA-ELL-GER-RUS-SPA-NLD-DAN] ver 2.30 nsourm -build 23152), I get the following error:
ERROR [224] : Device not responding
This happens on WinXPx86 and Win7x64. No topic delivers an usefull answer.
I have used several roms from nsourm build 23152, but non were effective.
Is this a known issue, and does anyone have a solution for this?
With kind regards,
Raizy
Solved
I solved the issue due unpacking the DSL_SSP_MINI.zip with winrar.
Started the installation on a WinXP machine.
First time i got in the 3 colored screen and got again an error:246
Unchecked the following settings: start-->settings-->others-->USB-PC , both marks.
2nd time the installation did go complete!

Trying to build kernel from source [newbie]need devs help please

Hi, I'm trying to build the axon2017u kernel from source that I download from the openzte website.
I have followed this guide: http://forum.xda-developers.com/yureka/help/guide-compiling-64-bit-android-kernel-t3352728
and i just cannot get it to compile.
I have been running into errors and managed to fix them except an assembly error.
Could anyone (especially if someone has already compiled the kernel from source) tell me which toolkit to use and if you encoutered any kind of error and how you fixed it to make it build?
thanks guys i'm really at my wits end here
Honestly best bet is to ask in that thread. While it is not specific to axon 7 , I bet they have seen the error before and can offer insight.
running this error now:
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, got past the assembly error got much further, now I'm stuck on this one error, can anyone help please?
@Nik2424
Check out the thread at the Android Builders Collective. They are a bunch of exceptionally talented folk & can provide lots of guidance in building. It would also be amazing to have an ABC (Pure Nexus based) ROM for our A7s.

Error trying to compile LineageOS 13.0

While trying to compile LineageOS 13.0 for the Nexus I'm stuck with the following error:
/home/android/android/system/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/android/android/system/out/target/product/grouper/obj/ETC/sepolicy_intermediates/policy.conf
device/asus/grouper/sepolicy/init_shell.te:2:ERROR 'unknown type init_shell' at token ';' on line 14035:
allow init_shell sysfs_firmware_writable:file { open append write };
#line 1 "device/asus/grouper/sepolicy/init_shell.te"
checkpolicy: error(s) encountered while parsing configuration
external/sepolicy/Android.mk:85: recipe for target '/home/android/android/system/out/target/product/grouper/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/android/android/system/out/target/product/grouper/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: init <= system/core/init/keychords.cpp
make: *** wait: No child processes. Stop.
Anyone being able to tell me how to get rid of that?
The type init_shell is not defined, i.e. your sepolicy configuration of the device tree does not match to the ROM sources. Probably the best way is to remove those definfitions temporaryly and to build the ROM in permissive mode. Later you can restrict / adapt the permissions to your needs.
Sooo... after some time I got back to this little project.
What I have achieved so far is that LineageOS 13.0 does build for grouper. However, when trying to boot it always starts back in recovery.
What I have done starting from stock LineageOS code for grouper is correcting "tvdpi" to "hdpi" like in 14.1 (https://github.com/LineageOS/androi...mmit/7dd33b8eb8c13b682202405e48c6d7962d5a73d7), and referring the build process to the correct kernel config, which is not "lineageos_android_defconfig" but "lineageos_grouper_defconfig". Then I have tried to substitute the apparently incorrect sepolicy definitions by those of GtrCraft (https://github.com/GtrCraft/cyanogenmod_grouper).
The result can't be too bad, because it actually builds. However, since it is not starting up I'm kinda stuck here again. Anyone being able to provide a hint why this is so or how to diagnose it?
And just for the obvious question: I believe that 14.1 is too much for grouper, although there is a somehow official build. And also, Xposed does not work officially yet on 14.1 (and does not anymore on 11.0). Therefore I would really like to upgrade to 13.0.
Still no luck, compile is finishing without errors, ROM will not boot, but throws me back to recovery. Maybe someone can take a look into the ROM:
https://www.mediafire.com/folder/ts4x8unxshb2z9n,tyv3j58t82z56a8/shared

Kernel build issues

EDIT: Got help. Solved
Alright so im working on a kernel. Im going to try messing around with overclocks and currently im just using elementalx as a base.
Im trying to get my build environment setup and I ran into an issue. Again. Fixed the others then this came along
Still just stock elementalx in this build as Im getting my building environment going then ill modify and rebuild
export CROSS_COMPILE=~/home/keelin/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export ARCH=arm64
make elementalx_defconfig
sudo make
The runs good for a little, no errors then boom. This
arch/x86/kernel/cpu/perf_event_intel_pt.c: In function ‘pt_init’:
arch/x86/kernel/cpu/perf_event_intel_pt.c:1175:23: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
error, forbidden warning: perf_event_intel_pt.c:1175
scripts/Makefile.build:258: recipe for target 'arch/x86/kernel/cpu/perf_event_intel_pt.o' failed
make[3]: *** [arch/x86/kernel/cpu/perf_event_intel_pt.o] Error 1
scripts/Makefile.build:403: recipe for target 'arch/x86/kernel/cpu' failed
make[2]: *** [arch/x86/kernel/cpu] Error 2
scripts/Makefile.build:403: recipe for target 'arch/x86/kernel' failed
make[1]: *** [arch/x86/kernel] Error 2
Makefile:966: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2
I met the same problem. Could you tell me how to solve it?
Could you please tell me how you solved it? i'm just trying to build normally without any changes either but stopping at the same place with exactly the same errors.
I have followed the same steps too, only difference is I used "defconfig" instead of "elementalx_defconfig"

ramexpander doesnt work on oppo a37fw

i need help!its say error when completing swap file the error texts are : kernel is limited! i need help!

Categories

Resources