[Android] Black_J:
This is the first time I am building a ROM. I am trying to compile Carbon 6.1 for my device Lenovo vibe k5 plus and getting this error. Please help.

FAILED: TARGET_KERNEL_BINARIES
/bin/bash -c "(rm -rf /home/black_j/Andro-Dev/carbon/out/target/product/A6020/system/vendor/lib/modules ) && (mkdir -p /home/black_j/Andro-Dev/carbon/out/target/product/A6020/system/vendor/lib/modules ) && (rm -rf /home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/PACKAGING/depmod_vendor_intermediates ) && (make -j2 CFLAGS_MODULE="-fno-pic" -C kernel/lenovo/msm8916 O=/home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" Image.gz-dtb ) && (if grep -q '^CONFIG_OF=y' /home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ/.config; then echo -e "\\033[32m""Building DTBs""\\033[0m" ; make -j2 CFLAGS_MODULE="-fno-pic" -C kernel/lenovo/msm8916 O=/home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" dtbs; fi ) && (if grep -q '^CONFIG_MODULES=y' /home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ/.config; then echo -e "\\033[32m""Building Kernel Modules""\\033[0m" ; make -j2 CFLAGS_MODULE="-fno-pic" -C kernel/lenovo/msm8916 O=/home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE="/usr/bin/ccache aarch64-linux-androidkernel-" modules; fi )"
make: Entering directory '/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916'
GEN /home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8909 && SND_SOC_MSM8994) selects SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_WCD_CPE)
GEN /home/black_j/Andro-Dev/carbon/out/target/product/A6020/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
make[2]: Nothing to be done for 'dtbs'.
make[2]: Nothing to be done for 'dtbs'.
Using /home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916 as source for kernel
CHK include/generated/utsrelease.h
CALL /home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC drivers/input/touchscreen/gt9xx/gt9xx.o
../../../../../../kernel/lenovo/msm8916/drivers/input/touchscreen/gt9xx/gt9xx.c: In function 'gtp_init_panel':
../../../../../../kernel/lenovo/msm8916/drivers/input/touchscreen/gt9xx/gt9xx.c:866:4: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat=]
error, forbidden warning: gt9xx.c:866
/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/scripts/Makefile.build:308: recipe for target 'drivers/input/touchscreen/gt9xx/gt9xx.o' failed
make[5]: *** [drivers/input/touchscreen/gt9xx/gt9xx.o] Error 1
/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/scripts/Makefile.build:455: recipe for target 'drivers/input/touchscreen/gt9xx' failed
make[4]: *** [drivers/input/touchscreen/gt9xx] Error 2
/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/scripts/Makefile.build:455: recipe for target 'drivers/input/touchscreen' failed
make[3]: *** [drivers/input/touchscreen] Error 2
/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/scripts/Makefile.build:455: recipe for target 'drivers/input' failed
make[2]: *** [drivers/input] Error 2
/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916/Makefile:824: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/black_j/Andro-Dev/carbon/kernel/lenovo/msm8916'
[ 0% 261/77497] //external/kmod:depmod clang libkmod/libkmod-elf.c [linux]
ninja: build stopped: subcommand failed.
18:37:02 ninja failed with: exit status 1

#### failed to build some targets (50 seconds) ####