[Lenovo K8 Note Questions & Answers] saaivignesh20:
Error while building kernel for RR Nougat

Hey! See my error dump below and guide me. I will be building RR for Lenovo K8 Note (manning) if this error could be fixed :confused:

FAILED: /bin/bash -c "(if [ ! -z \"manning_defconfig\" ]; then	rm -f ..//home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.config;	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/manning O=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache aarch64-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= manning_defconfig;	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/manning O=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache aarch64-linux-androidkernel-\" headers_install; fi ) && (if [ \"manning_defconfig\" != \"manning_defconfig\" ]; then	echo \"Used a different defconfig for header generation\";	rm -f ..//home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.config;	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/manning O=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache aarch64-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= manning_defconfig; fi ) && (if [ ! -z \"\" ]; then	echo \"Overriding kernel config with ''\";	echo >> /home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.config;	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/manning O=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache aarch64-linux-androidkernel-\" oldconfig; fi ) && (if [ ! -z \"\" ]; then	echo \"Using additional config ''\";	kernel/lenovo/manning/scripts/kconfig/merge_config.sh -m -O /home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ /home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.config kernel/lenovo/manning/arch/arm64/configs/;	make -j4 CFLAGS_MODULE=\"-fno-pic\" -C kernel/lenovo/manning O=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/bin/ccache aarch64-linux-androidkernel-\" KCONFIG_ALLCONFIG=/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.config alldefconfig; fi ) && (touch /home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ/.headers_install_stamp )"
make: Entering directory '/home/romminter/Desktop/rr-manning/kernel/lenovo/manning'
make[1]: Entering directory '/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ'
GEN ./Makefile
#
# configuration written to .config
#
make[1]: Leaving directory '/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ'
make: Leaving directory '/home/romminter/Desktop/rr-manning/kernel/lenovo/manning'
make: Entering directory '/home/romminter/Desktop/rr-manning/kernel/lenovo/manning'
make[1]: Entering directory '/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ'
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/checksum.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/bug.h
WRAP arch/arm64/include/generated/asm/cputime.h
WRAP arch/arm64/include/generated/asm/current.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/errno.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/ftrace.h
WRAP arch/arm64/include/generated/asm/hash.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
WRAP arch/arm64/include/generated/asm/ioctl.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
WRAP arch/arm64/include/generated/asm/ioctls.h
WRAP arch/arm64/include/generated/asm/ipcbuf.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kvm_para.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mman.h
WRAP arch/arm64/include/generated/asm/msgbuf.h
WRAP arch/arm64/include/generated/asm/pci.h
WRAP arch/arm64/include/generated/asm/mutex.h
WRAP arch/arm64/include/generated/asm/pci-bridge.h
WRAP arch/arm64/include/generated/asm/resource.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/poll.h
WRAP arch/arm64/include/generated/asm/sections.h
WRAP arch/arm64/include/generated/asm/scatterlist.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/simd.h
WRAP arch/arm64/include/generated/asm/shmbuf.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/socket.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/sockios.h
WRAP arch/arm64/include/generated/asm/swab.h
WRAP arch/arm64/include/generated/asm/termbits.h
WRAP arch/arm64/include/generated/asm/termios.h
WRAP arch/arm64/include/generated/asm/topology.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/types.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/sembuf.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
HOSTCC scripts/unifdef
INSTALL usr/include/asm-generic/ (35 files)
INSTALL usr/include/drm/ (18 files)
INSTALL usr/include/misc/ (1 file)
INSTALL usr/include/mtd/ (5 files)
INSTALL usr/include/rdma/ (6 files)
/home/romminter/Desktop/rr-manning/kernel/lenovo/manning/scripts/Makefile.headersinst:55: *** Missing UAPI file /home/romminter/Desktop/rr-manning/kernel/lenovo/manning/include/uapi/linux/autoconf.h. Stop.
/home/romminter/Desktop/rr-manning/kernel/lenovo/manning/scripts/Makefile.headersinst:128: recipe for target 'linux' failed
make[2]: *** [linux] Error 2
make[2]: *** Waiting for unfinished jobs....
/home/romminter/Desktop/rr-manning/kernel/lenovo/manning/Makefile:1062: recipe for target 'headers_install' failed
make[1]: *** [headers_install] Error 2
make[1]: Leaving directory '/home/romminter/Desktop/rr-manning/out/target/product/manning/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2