[General Questions and Answers] ronaldC:
Hey, everyone! I am compiling a kernel source for my device: Xiaomi Redmi 10 (Selene) and apparently, it doesn't compile successfully.

I'm using WSL 2 Ubuntu on Windows 11 as a build environment. I used the following commands to install packages that are needed:

sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 libncurses5 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig

sudo apt install libssl-dev bc gcc-aarch64-linux-gnu

and all the packages have been installed successfully.

So after that, I cloned the repository to my chosen folder:

git clone -b selene-r-oss --single-branch https://github.com/MiCode/Xiaomi_Kernel_OpenSource

it's successful.

I used:

export ARCH=arm64 && export SUBARCH=arm64 && export CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-

to prepare the environment for the upcoming compilation.

then, I moved the selene_defconfig from ~/arch/arm64/configs/ to the beginning of the folder (/mnt/d/RonronFiles/playground/Xiaomi_Kernel_OpenSource) and finally, executed this command to create a .config file tailored for my device:

make selene_defconfig

okay, successful.

then after the .config has been created, I executed:

make -j$(nproc --all)

it all went fine until it said:

./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1198: kernel] Error 2

I am confident that cpio is installed and all the dependencies. I researched about this but I couldn't find answers.

For more information, here's the full message while compiling:

scripts/kconfig/conf --silentoldconfig Kconfig
drivers/misc/mediatek/usb20/Kconfig:41:warning: prompt redefined
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
warning: (LM3697_SUPPORT && DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && DRM_PARADE_PS8622 && FB_BACKLIGHT && FB_ARMCLCD && FB_MX3 && USB_APPLEDISPLAY && FB_OLPC_DCON && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm64/include/generated/uapi/asm/errno.h
WRAP arch/arm64/include/generated/uapi/asm/ioctl.h
HOSTCC scripts/basic/fixdep
WRAP arch/arm64/include/generated/uapi/asm/ioctls.h
WRAP arch/arm64/include/generated/uapi/asm/ipcbuf.h
UPD include/config/kernel.release
WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h
WRAP arch/arm64/include/generated/uapi/asm/mman.h
WRAP arch/arm64/include/generated/uapi/asm/msgbuf.h
WRAP arch/arm64/include/generated/uapi/asm/poll.h
WRAP arch/arm64/include/generated/uapi/asm/resource.h
WRAP arch/arm64/include/generated/uapi/asm/sembuf.h
WRAP arch/arm64/include/generated/uapi/asm/shmbuf.h
WRAP arch/arm64/include/generated/uapi/asm/socket.h
WRAP arch/arm64/include/generated/uapi/asm/sockios.h
WRAP arch/arm64/include/generated/uapi/asm/swab.h
WRAP arch/arm64/include/generated/uapi/asm/termbits.h
WRAP arch/arm64/include/generated/uapi/asm/termios.h
WRAP arch/arm64/include/generated/uapi/asm/types.h
HOSTCC scripts/basic/bin2c
WRAP arch/arm64/include/generated/asm/bugs.h
WRAP arch/arm64/include/generated/asm/clkdev.h
WRAP arch/arm64/include/generated/asm/delay.h
WRAP arch/arm64/include/generated/asm/div64.h
WRAP arch/arm64/include/generated/asm/dma.h
WRAP arch/arm64/include/generated/asm/dma-contiguous.h
WRAP arch/arm64/include/generated/asm/early_ioremap.h
CHK include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/emergency-restart.h
WRAP arch/arm64/include/generated/asm/hw_irq.h
UPD include/generated/utsrelease.h
WRAP arch/arm64/include/generated/asm/irq_regs.h
WRAP arch/arm64/include/generated/asm/kdebug.h
WRAP arch/arm64/include/generated/asm/kmap_types.h
WRAP arch/arm64/include/generated/asm/local.h
WRAP arch/arm64/include/generated/asm/local64.h
WRAP arch/arm64/include/generated/asm/mcs_spinlock.h
WRAP arch/arm64/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm64/include/generated/asm/msi.h
WRAP arch/arm64/include/generated/asm/preempt.h
WRAP arch/arm64/include/generated/asm/rwsem.h
WRAP arch/arm64/include/generated/asm/segment.h
WRAP arch/arm64/include/generated/asm/serial.h
WRAP arch/arm64/include/generated/asm/set_memory.h
WRAP arch/arm64/include/generated/asm/sizes.h
WRAP arch/arm64/include/generated/asm/switch_to.h
WRAP arch/arm64/include/generated/asm/trace_clock.h
WRAP arch/arm64/include/generated/asm/unaligned.h
WRAP arch/arm64/include/generated/asm/user.h
WRAP arch/arm64/include/generated/asm/vga.h
WRAP arch/arm64/include/generated/asm/xor.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
SHIPPED scripts/genksyms/parse.tab.c
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/parse.tab.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTLD scripts/genksyms/genksyms
CC scripts/mod/empty.o
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
MKELF scripts/mod/elfconfig.h
CHK scripts/mod/devicetable-offsets.h
UPD scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/dtc/checks.o
.
.
FDVT: Drv use 4.0 folder
.
HOSTCC scripts/selinux/genheaders/genheaders
.
HOSTCC scripts/mod/file2alias.o
.
HOSTCC scripts/dtc/util.o
.
drivers/misc/mediatek/ccu/src/Makefile:27: CCU_MAKE_FILE_CALLED
drivers/misc/mediatek/ccu/src/1.2/Makefile:24: CCU_INC=./drivers/misc/mediatek/ccu/src/mt6768/ccu_ext_interface
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/selinux/mdp/mdp
HOSTLD scripts/mod/modpost
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
HOSTCC scripts/kallsyms
MTK_GPU_VERSION 1 = mali
HOSTCC scripts/pnmtologo
*MTK_GPU_VERSION 2 = bifrost
*MTK_GPU_VERSION 3 = r25p0
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
mali MTK evironment, building r19p0 DDK
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY := y
mtk-Kbuild CONFIG_MALI_PLATFORM_THIRDPARTY_NAME := "mt6768"
HOSTCC scripts/sortextable
imgsensor drv by project ov50c40_ofilm_main_mipi_raw/ s5kjn1_ofilm_main_mipi_raw/ ov50c40_qtech_main_mipi_raw/ ov8856_ofilm_front_mipi_raw/ ov8856_aac_front_mipi_raw/ gc02m1b_sunny_mipi_raw/ ov02b1b_ofilm_mipi_raw/ gc02m1_macro_aac_mipi_raw/ gc02m1_macro_sy_mipi_raw/ imx355_sunny_ultra_mipi_raw/ imx355_aac_ultra_mipi_raw/
HOSTCC scripts/asn1_compiler
HOSTCC scripts/extract-cert
scripts/extract-cert.c: In function ‘display_openssl_errors’:
scripts/extract-cert.c:46:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
46 | while ((e = ERR_get_error_line(&file, &line))) {
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘drain_openssl_errors’:
scripts/extract-cert.c:59:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
59 | while (ERR_get_error_line(&file, &line)) {}
| ^~~~~
In file included from scripts/extract-cert.c:23:
/usr/include/openssl/err.h:411:15: note: declared here
411 | unsigned long ERR_get_error_line(const char **file, int *line);
| ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c: In function ‘main’:
scripts/extract-cert.c:124:17: warning: ‘ENGINE_load_builtin_engines’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
124 | ENGINE_load_builtin_engines();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:358:28: note: declared here
358 | OSSL_DEPRECATEDIN_3_0 void ENGINE_load_builtin_engines(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:126:17: warning: ‘ENGINE_by_id’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
126 | e = ENGINE_by_id("pkcs11");
| ^
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:336:31: note: declared here
336 | OSSL_DEPRECATEDIN_3_0 ENGINE *ENGINE_by_id(const char *id);
| ^~~~~~~~~~~~
scripts/extract-cert.c:128:17: warning: ‘ENGINE_init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
128 | if (ENGINE_init(e))
| ^~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:620:27: note: declared here
620 | OSSL_DEPRECATEDIN_3_0 int ENGINE_init(ENGINE *e);
| ^~~~~~~~~~~
scripts/extract-cert.c:133:25: warning: ‘ENGINE_ctrl_cmd_string’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
133 | ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
| ^~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:479:5: note: declared here
479 | int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,
| ^~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:134:17: warning: ‘ENGINE_ctrl_cmd’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
134 | ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
| ^~~~~~~~~~~~~~~
In file included from scripts/extract-cert.c:24:
/usr/include/openssl/engine.h:450:27: note: declared here
450 | OSSL_DEPRECATEDIN_3_0 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
| ^~~~~~~~~~~~~~~
CC kernel/bounds.s
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm64/kernel/asm-offsets.s
"CONFIG_MICROTRUST_TEE_VERSION="300""
"CONFIG_MICROTRUST_TEE_SUPPORT=y"
"CONFIG_MICROTRUST_TZ_DRIVER=Y"
"CONFIG_MICROTRUST_VFS_DRIVER=Y"
"CONFIG_MICROTRUST_FP_DRIVER=Y"
"CONFIG_MICROTRUST_DEBUG="
"CONFIG_MICROTRUST_TEST_DRIVERS="
TCORE_UT_TESTS_SUPPORT = n
TCORE_PROFILING_SUPPORT = n
TCORE_PROFILING_AUTO_DUMP = n
TCORE_MEMORY_LEAK_DETECTION_SUPPORT = n
CHK include/generated/asm-offsets.h
UPD include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
LDS arch/arm64/kernel/vdso/vdso.lds
VDSOA arch/arm64/kernel/vdso/gettimeofday.o
VDSOA arch/arm64/kernel/vdso/note.o
VDSOA arch/arm64/kernel/vdso/sigreturn.o
LD arch/arm64/kernel/vdso/vdso.so.dbg
VDSOSYM include/generated/vdso-offsets.h
CC init/main.o
HOSTCC usr/gen_init_cpio
CC arch/arm64/mm/dma-mapping.o
CC arch/arm64/kernel/debug-monitors.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
AR usr/built-in.o
AS arch/arm64/kernel/entry.o
CC arch/arm64/kernel/irq.o
CC arch/arm64/kernel/fpsimd.o
AS arch/arm64/kernel/entry-fpsimd.o
CC arch/arm64/net/bpf_jit_comp.o
CC arch/arm64/mm/extable.o
CC arch/arm64/kernel/process.o
CC arch/arm64/mm/fault.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
AR arch/arm64/net/built-in.o
CC arch/arm64/crypto/sha2-ce-glue.o
CC arch/arm64/mm/init.o
AS arch/arm64/crypto/sha2-ce-core.o
AS arch/arm64/crypto/aes-ce-core.o
CC arch/arm64/crypto/aes-ce-glue.o
CC arch/arm64/kernel/ptrace.o
CC arch/arm64/crypto/aes-glue-ce.o
CC init/do_mounts_rd.o
AS arch/arm64/mm/cache.o
CC arch/arm64/mm/copypage.o
CC arch/arm64/kernel/setup.o
AS arch/arm64/crypto/aes-ce.o
CC arch/arm64/crypto/sha256-glue.o
CC init/do_mounts_initrd.o
CC arch/arm64/kernel/signal.o
CC arch/arm64/mm/flush.o
CC init/noinitramfs.o
SHIPPED arch/arm64/crypto/sha256-core.S
AS arch/arm64/crypto/aes-cipher-core.o
CC arch/arm64/crypto/aes-cipher-glue.o
CC arch/arm64/kernel/sys.o
CC arch/arm64/mm/ioremap.o
CC init/initramfs.o
CC arch/arm64/kernel/stacktrace.o
AR arch/arm64/crypto/sha2-ce.o
AR arch/arm64/crypto/aes-ce-cipher.o
AR arch/arm64/crypto/aes-ce-blk.o
AS arch/arm64/crypto/sha256-core.o
AR arch/arm64/crypto/aes-arm64.o
AR arch/arm64/crypto/sha256-arm64.o
AR arch/arm64/crypto/built-in.o
CC arch/arm64/kernel/time.o
CC arch/arm64/mm/mmap.o
CC init/calibrate.o
CC init/init_task.o
CC arch/arm64/mm/pgd.o
CC arch/arm64/kernel/traps.o
CC arch/arm64/mm/mmu.o
CC arch/arm64/kernel/io.o
CC arch/arm64/mm/context.o
CC init/version.o
CC arch/arm64/kernel/vdso.o
AS arch/arm64/mm/proc.o
CC arch/arm64/mm/pageattr.o
CC kernel/fork.o
AS arch/arm64/kernel/hyp-stub.o
AR init/mounts.o
CC arch/arm64/kernel/psci.o
AR init/built-in.o
CC arch/arm64/kernel/cpu_ops.o
CC certs/system_keyring.o
CC arch/arm64/kernel/insn.o
AS arch/arm64/mm/cache-mtk-v8.o
AR arch/arm64/mm/built-in.o
CC mm/filemap.o
EXTRACT_CERTS
AS certs/system_certificates.o
AR certs/built-in.o
CC arch/arm64/kernel/return_address.o
CC fs/open.o
CC kernel/exec_domain.o
CC arch/arm64/kernel/cpuinfo.o
CC mm/mempool.o
CC kernel/panic.o
CC fs/read_write.o
CC arch/arm64/kernel/cpu_errata.o
CC arch/arm64/kernel/cpufeature.o
CC mm/oom_kill.o
CC kernel/cpu.o
arch/arm64/kernel/cpufeature.c:982:13: warning: ‘cpu_enable_ssbs’ defined but not used [-Wunused-function]
982 | static void cpu_enable_ssbs(const struct arm64_cpu_capabilities *__unused)
| ^~~~~~~~~~~~~~~
CC fs/file_table.o
CC arch/arm64/kernel/alternative.o
CC mm/maccess.o
CC arch/arm64/kernel/cacheinfo.o
CC kernel/exit.o
CC fs/super.o
CC arch/arm64/kernel/smp.o
CC mm/page_alloc.o
CC fs/char_dev.o
CC arch/arm64/kernel/smp_spin_table.o
CC kernel/softirq.o
CC arch/arm64/kernel/topology.o
CC mm/page-writeback.o
CC fs/stat.o
AS arch/arm64/kernel/smccc-call.o
CC arch/arm64/kernel/sys32.o
CC kernel/resource.o
CC fs/exec.o
CC mm/readahead.o
AS arch/arm64/kernel/kuser32.o
CC arch/arm64/kernel/signal32.o
CC kernel/sysctl.o
CC arch/arm64/kernel/sys_compat.o
CC mm/swap.o
CC fs/pipe.o
AS arch/arm64/kernel/entry32.o
CC arch/arm64/kernel/arm64ksyms.o
CC kernel/sysctl_binary.o
CC fs/namei.o
CC mm/truncate.o
CC arch/arm64/kernel/module.o
CC kernel/capability.o
CC arch/arm64/kernel/module-plts.o
CC mm/vmscan.o
CC arch/arm64/kernel/perf_regs.o
CC fs/fcntl.o
CC kernel/ptrace.o
CC arch/arm64/kernel/perf_callchain.o
CC arch/arm64/kernel/perf_event.o
CC mm/shmem.o
CC fs/ioctl.o
CC kernel/user.o
CC arch/arm64/kernel/hw_breakpoint.o
CC kernel/signal.o
AS arch/arm64/kernel/sleep.o
CC arch/arm64/kernel/suspend.o
CC fs/readdir.o
CC mm/util.o
CC arch/arm64/kernel/cpuidle.o
CC arch/arm64/kernel/armv8_deprecated.o
CC fs/select.o
CC mm/mmzone.o
CC kernel/sys.o
CC mm/vmstat.o
CC arch/arm64/kernel/kaslr.o
CC arch/arm64/kernel/ssbd.o
CC arch/arm64/kernel/probes/uprobes.o
CC fs/dcache.o
CC mm/backing-dev.o
CC kernel/umh.o
CC arch/arm64/kernel/probes/decode-insn.o
CC arch/arm64/kernel/probes/simulate-insn.o
CC mm/mm_init.o
CC fs/inode.o
CC kernel/workqueue.o
AR arch/arm64/kernel/probes/built-in.o
OBJCOPY arch/arm64/kernel/vdso/vdso.so
AS arch/arm64/kernel/vdso/vdso.o
AR arch/arm64/kernel/vdso/built-in.o
AS arch/arm64/kernel/head.o
LDS arch/arm64/kernel/vmlinux.lds
AR arch/arm64/kernel/built-in.o
AR ipc/built-in.o
CC security/integrity/iint.o
CC mm/mmu_context.o
CC security/integrity/integrity_audit.o
CC fs/attr.o
CC kernel/pid.o
CC mm/percpu.o
AR security/integrity/integrity.o
AR security/integrity/built-in.o
CC security/keys/gc.o
CC fs/bad_inode.o
CC security/keys/key.o
CC kernel/task_work.o
CC mm/slab_common.o
CC fs/file.o
CC security/keys/keyring.o
CC kernel/extable.o
CC mm/compaction.o
CC kernel/params.o
CC fs/filesystems.o
CC security/keys/keyctl.o
CC security/keys/permission.o
CC kernel/kthread.o
CC fs/namespace.o
CC mm/vmacache.o
CC security/keys/process_keys.o
CC mm/swap_slots.o
CC kernel/sys_ni.o
CC kernel/nsproxy.o
CC mm/interval_tree.o
CC fs/seq_file.o
CC security/keys/request_key.o
CC kernel/notifier.o
CC mm/list_lru.o
CC fs/xattr.o
CC security/keys/request_key_auth.o
CC kernel/ksysfs.o
CC mm/workingset.o
CC security/keys/user_defined.o
CC kernel/cred.o
CC mm/debug.o
CC fs/libfs.o
CC security/keys/compat.o
CC fs/fs-writeback.o
CC mm/gup.o
CC kernel/reboot.o
CC security/keys/proc.o
CC security/keys/sysctl.o
CC mm/highmem.o
AR security/keys/built-in.o
GEN security/selinux/flask.h security/selinux/av_permissions.h
CC security/selinux/avc.o
CC kernel/async.o
CC fs/pnode.o
CC mm/memory.o
CC kernel/range.o
CC kernel/smpboot.o
CC fs/splice.o
CC security/selinux/hooks.o
CC kernel/ucount.o
CC mm/mincore.o
CC fs/sync.o
CC kernel/kmod.o
CC security/selinux/selinuxfs.o
CC mm/mlock.o
CC fs/utimes.o
CC kernel/groups.o
CC security/selinux/netlink.o
CC fs/stack.o
CC mm/mmap.o
CC security/selinux/nlmsgtab.o
CC kernel/bpf/core.o
CC fs/fs_struct.o
CC security/selinux/netif.o
CC mm/mprotect.o
CC fs/statfs.o
CC security/selinux/netnode.o
CC mm/mremap.o
CC kernel/bpf/syscall.o
CC fs/fs_pin.o
CC mm/msync.o
CC security/selinux/netport.o
CC fs/nsfs.o
CC mm/page_vma_mapped.o
CC fs/buffer.o
CC kernel/bpf/verifier.o
CC security/selinux/ibpkey.o
CC mm/pagewalk.o
CC mm/pgtable-generic.o
CC security/selinux/exports.o
CC fs/block_dev.o
CC mm/rmap.o
CC kernel/bpf/inode.o
CC security/selinux/ss/ebitmap.o
CC security/selinux/ss/hashtab.o
CC fs/direct-io.o
CC mm/vmalloc.o
CC security/selinux/ss/symtab.o
CC kernel/bpf/helpers.o
CC security/selinux/ss/sidtab.o
CC kernel/bpf/tnum.o
CC fs/mpage.o
CC mm/process_vm_access.o
CC security/selinux/ss/avtab.o
CC kernel/bpf/hashtab.o
CC mm/init-mm.o
CC kernel/bpf/arraymap.o
CC security/selinux/ss/policydb.o
CC mm/nobootmem.o
CC fs/proc_namespace.o
CC kernel/bpf/percpu_freelist.o
CC fs/configfs/inode.o
CC kernel/bpf/bpf_lru_list.o
CC mm/fadvise.o
CC security/selinux/ss/services.o
CC kernel/bpf/lpm_trie.o
CC fs/configfs/file.o
CC mm/madvise.o
CC fs/configfs/dir.o
CC security/selinux/ss/conditional.o
CC kernel/bpf/map_in_map.o
CC kernel/bpf/devmap.o
CC mm/memblock.o
CC fs/configfs/symlink.o
CC security/selinux/ss/mls.o
CC mm/page_io.o
CC kernel/bpf/stackmap.o
CC fs/configfs/mount.o
CC mm/swap_state.o
CC security/selinux/ss/status.o
CC fs/configfs/item.o
CC kernel/bpf/cgroup.o
CC mm/swapfile.o
AR fs/configfs/configfs.o
AR fs/configfs/built-in.o
CC fs/crypto/crypto.o
AR security/selinux/selinux.o
AR security/selinux/built-in.o
CC security/commoncap.o
AR kernel/bpf/built-in.o
CC kernel/cgroup/cgroup.o
CC security/min_addr.o
CC fs/crypto/fname.o
CC mm/dmapool.o
CC security/security.o
CC fs/crypto/hkdf.o
CC mm/sparse.o
CC fs/crypto/hooks.o
CC kernel/cgroup/namespace.o
CC security/lsm_audit.o
CC mm/sparse-vmemmap.o
CC fs/crypto/keyring.o
CC kernel/cgroup/cgroup-v1.o
CC mm/slub.o
AR security/built-in.o
CC crypto/api.o
CC fs/crypto/keysetup.o
CC kernel/cgroup/freezer.o
CC crypto/cipher.o
CC mm/migrate.o
CC fs/crypto/keysetup_v1.o
CC kernel/cgroup/cpuset.o
CC crypto/compress.o
CC fs/crypto/policy.o
CC crypto/memneq.o
CC mm/page_counter.o
CC kernel/cgroup/debug.o
CC mm/memcontrol.o
CC fs/crypto/bio.o
AR kernel/cgroup/built-in.o
CC kernel/events/core.o
CC crypto/crypto_wq.o
CC fs/crypto/inline_crypt.o
CC crypto/algapi.o
CC mm/vmpressure.o
AR fs/crypto/fscrypto.o
AR fs/crypto/built-in.o
CC fs/devpts/inode.o
CC kernel/events/ring_buffer.o
CC mm/swap_cgroup.o
AR fs/devpts/devpts.o
AR fs/devpts/built-in.o
CC fs/exfat/exfat_core.o
CC crypto/scatterwalk.o
CC mm/page_isolation.o
CC kernel/events/callchain.o
CC fs/exfat/exfat_super.o
CC mm/zsmalloc.o
CC crypto/proc.o
CC kernel/events/hw_breakpoint.o
CC fs/exfat/exfat_api.o
CC crypto/aead.o
CC mm/early_ioremap.o
CC kernel/events/uprobes.o
CC fs/exfat/exfat_blkdev.o
CC mm/cma.o
CC fs/exfat/exfat_cache.o
CC crypto/ablkcipher.o
CC mm/frame_vector.o
AR kernel/events/built-in.o
CC kernel/irq/irqdesc.o
CC fs/exfat/exfat_data.o
CC mm/usercopy.o
CC crypto/blkcipher.o
CC fs/exfat/exfat_bitmap.o
CC fs/exfat/exfat_nls.o
CC kernel/irq/handle.o
CC fs/exfat/exfat_oal.o
AR mm/built-in.o
CC block/bio.o
CC crypto/skcipher.o
CC fs/exfat/exfat_upcase.o
CC kernel/irq/manage.o
AR fs/exfat/exfat.o
AR fs/exfat/built-in.o
AR fs/exofs/built-in.o
CC fs/exportfs/expfs.o
CC block/elevator.o
CC kernel/irq/spurious.o
CC crypto/seqiv.o
AR fs/exportfs/exportfs.o
AR fs/exportfs/built-in.o
CC fs/ext4/balloc.o
CC kernel/irq/resend.o
CC crypto/echainiv.o
CC block/blk-core.o
CC fs/ext4/bitmap.o
CC kernel/irq/chip.o
CC crypto/ahash.o
CC fs/ext4/block_validity.o
CC kernel/irq/dummychip.o
CC fs/ext4/dir.o
CC crypto/shash.o
CC block/blk-tag.o
CC fs/ext4/ext4_jbd2.o
CC kernel/irq/devres.o
CC block/blk-sysfs.o
CC crypto/akcipher.o
CC fs/ext4/extents.o
CC kernel/irq/autoprobe.o
CC block/blk-flush.o
CC fs/ext4/extents_status.o
CC crypto/kpp.o
CC kernel/irq/irqdomain.o
CC block/blk-settings.o
CC fs/ext4/file.o
ASN.1 crypto/rsapubkey-asn1.c
ASN.1 crypto/rsaprivkey-asn1.c
CC crypto/rsa.o
CC fs/ext4/fsmap.o
CC kernel/irq/proc.o
CC block/blk-ioc.o
CC crypto/rsa_helper.o
CC crypto/rsa-pkcs1pad.o
CC kernel/irq/cpuhotplug.o
CC fs/ext4/fsync.o
CC kernel/irq/pm.o
CC block/blk-map.o
CC crypto/acompress.o
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c: In function ‘ext4_sync_file’:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘kuid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:53: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
In file included from ./include/linux/kernel.h:14,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from ./include/linux/seqlock.h:36,
from ./include/linux/time.h:6,
from fs/ext4/fsync.c:26:
fs/ext4/fsync.c:174:36: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘kgid_t’ [-Wformat=]
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/printk.h:160:32: note: in definition of macro ‘no_printk’
160 | printk(fmt, ##__VA_ARGS__); \
| ^~~
fs/ext4/fsync.c:174:25: note: in expansion of macro ‘ext4_debug’
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ^~~~~~~~~~
fs/ext4/fsync.c:174:61: note: format string is defined here
174 | ext4_debug("comm: %s: (uid %u, gid %u): don't wait transaction finish\n",
| ~^
| |
| unsigned int
CC fs/ext4/hash.o
CC fs/ext4/ialloc.o
CC block/blk-exec.o
CC kernel/irq/affinity.o
CC crypto/scompress.o
AR kernel/irq/built-in.o
AR kernel/livepatch/built-in.o
CC kernel/locking/mutex.o
CC fs/ext4/indirect.o
CC block/blk-merge.o
CC crypto/algboss.o
CC fs/ext4/inline.o
CC kernel/locking/semaphore.o
CC crypto/testmgr.o
CC block/blk-softirq.o
CC fs/ext4/inode.o
CC kernel/locking/rwsem.o
CC kernel/locking/percpu-rwsem.o
CC crypto/cmac.o
CC block/blk-timeout.o
CC fs/ext4/ioctl.o
CC kernel/locking/spinlock.o
CC crypto/hmac.o
CC block/blk-lib.o
CC fs/ext4/mballoc.o
CC crypto/xcbc.o
CC kernel/locking/osq_lock.o
CC kernel/locking/rtmutex.o
CC crypto/crypto_null.o
CC block/blk-mq.o
CC fs/ext4/migrate.o
CC kernel/locking/rwsem-xadd.o
CC fs/ext4/mmp.o
AR kernel/locking/built-in.o
CC kernel/power/qos.o
CC crypto/md5.o
CC block/blk-mq-tag.o
CC fs/ext4/move_extent.o
CC crypto/sha1_generic.o
CC kernel/power/main.o
CC fs/ext4/namei.o
CC block/blk-stat.o
CC fs/ext4/page-io.o
CC kernel/power/process.o
CC crypto/sha256_generic.o
CC block/blk-mq-sysfs.o
CC fs/ext4/readpage.o
CC kernel/power/suspend.o
CC crypto/sha512_generic.o
CC fs/ext4/resize.o
CC block/blk-mq-cpumap.o
CC kernel/power/wakelock.o
CC fs/ext4/super.o
CC crypto/gf128mul.o
CC block/blk-mq-sched.o
CC kernel/power/poweroff.o
CC kernel/power/wakeup_reason.o
CC crypto/ecb.o
CC fs/ext4/symlink.o
CC crypto/cbc.o
CC block/ioctl.o
AR kernel/power/built-in.o
CC kernel/printk/printk.o
CC crypto/cts.o
CC fs/ext4/sysfs.o
CC block/genhd.o
CC fs/ext4/xattr.o
CC crypto/xts.o
CC kernel/printk/printk_safe.o
AR kernel/printk/built-in.o
CC kernel/rcu/update.o
CC fs/ext4/xattr_trusted.o
CC block/partition-generic.o
CC crypto/ctr.o
CC fs/ext4/xattr_user.o
CC crypto/gcm.o
CC kernel/rcu/sync.o
CC fs/ext4/acl.o
CC block/ioprio.o
CC kernel/rcu/srcutree.o
CC crypto/ccm.o
CC fs/ext4/xattr_security.o
CC crypto/cryptd.o
CC block/badblocks.o
CC kernel/rcu/tree.o
CC fs/ext4/verity.o
AR fs/ext4/ext4.o
AR fs/ext4/built-in.o
CC fs/f2fs/dir.o
CC block/partitions/check.o
CC crypto/des_generic.o
CC block/partitions/msdos.o
CC kernel/rcu/rcu_segcblist.o
CC fs/f2fs/file.o
CC crypto/blowfish_generic.o
AR kernel/rcu/built-in.o
CC kernel/sched/core.o
CC block/partitions/efi.o
CC crypto/blowfish_common.o
CC fs/f2fs/inode.o
AR block/partitions/built-in.o
CC block/scsi_ioctl.o
In file included from ./arch/arm64/include/asm/bug.h:38,
from ./include/linux/bug.h:5,
from ./arch/arm64/include/asm/cmpxchg.h:21,
from ./arch/arm64/include/asm/atomic.h:41,
from ./include/linux/atomic.h:5,
from ./include/linux/rcupdate.h:38,
from ./include/linux/rculist.h:11,
from ./include/linux/pid.h:5,
from ./include/linux/sched.h:14,
from kernel/sched/core.c:9:
kernel/sched/core.c: In function ‘uclamp_group_get’:
kernel/sched/core.c:1564:33: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘long unsigned int:53’ [-Wformat
]
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1565 | cpu, clamp_id, group_id,
1566 | uc_cpu->group[clamp_id][group_id].tasks);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int:53
./include/asm-generic/bug.h:90:71: note: in definition of macro ‘__WARN_printf’
90 | #define __WARN_printf(arg...) warn_slowpath_fmt(__FILE__, __LINE__, arg)
| ^~~
kernel/sched/core.c:1564:25: note: in expansion of macro ‘WARN’
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ^~~~
kernel/sched/core.c:1564:82: note: format string is defined here
1564 | WARN(1, "invalid CPU[%d] clamp group [%u:%u] refcount: [%u]\n",
| ~^
| |
| unsigned int
kernel/sched/core.c: In function ‘__schedule_bug’:
kernel/sched/core.c:4496:13: warning: unused variable ‘i’ [-Wunused-variable]
4496 | int i = 0;
| ^
CC crypto/twofish_generic.o
CC fs/f2fs/namei.o
CC crypto/twofish_common.o
CC block/noop-iosched.o
CC fs/f2fs/hash.o
CC crypto/aes_generic.o
CC block/deadline-iosched.o
CC kernel/sched/loadavg.o
CC fs/f2fs/super.o
CC block/cfq-iosched.o
CC crypto/arc4.o
CC kernel/sched/clock.o
CC crypto/deflate.o
CC block/mq-deadline.o
CC fs/f2fs/inline.o
CC kernel/sched/cputime.o
CC crypto/crc32c_generic.o
CC block/kyber-iosched.o
CC fs/f2fs/checkpoint.o
CC crypto/crc32_generic.o
CC block/compat_ioctl.o
CC kernel/sched/idle_task.o
CC fs/f2fs/gc.o
CC crypto/authenc.o
CC block/blk-wbt.o
CC kernel/sched/fair.o
CC fs/f2fs/data.o
kernel/sched/fair.c: In function ‘load_balance’:
kernel/sched/fair.c:11104:25: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
11104 | int cpu = env.dst_cpu;
| ^~~
In file included from kernel/sched/fair.c:12662:
kernel/sched/eas_plus.c: In function ‘update_sg_util’:
kernel/sched/eas_plus.c:912:35: warning: unused variable ‘sg’ [-Wunused-variable]
912 | const struct sched_group *sg;
| ^~
kernel/sched/eas_plus.c:911:30: warning: unused variable ‘sd’ [-Wunused-variable]
911 | struct sched_domain *sd;
| ^~
CC crypto/authencesn.o
CC block/keyslot-manager.o
CC fs/f2fs/node.o
CC kernel/sched/rt.o
CC crypto/lzo.o
CC block/bio-crypt-ctx.o
CC crypto/lz4.o
CC fs/f2fs/segment.o
CC kernel/sched/deadline.o
CC crypto/rng.o
CC kernel/sched/wait.o
CC block/blk-crypto.o
CC fs/f2fs/recovery.o
In file included from block/blk-crypto.c:14:
block/blk-crypto.c: In function ‘blk_crypto_flock’:
./include/linux/keyslot-manager.h:101:13: error: inlining failed in call to ‘always_inline’ ‘ksm_flock’: function body not available
101 | inline void ksm_flock(struct keyslot_manager *ksm, unsigned int flags);
| ^~~~~~~~~
block/blk-crypto.c:310:9: note: called from here
310 | ksm_flock(ksm, flags);
| ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:356: block/blk-crypto.o] Error 1
make: *** [Makefile:1198: block] Error 2
make: *** Waiting for unfinished jobs....
CC crypto/drbg.o
CC fs/f2fs/shrinker.o
CC kernel/sched/wait_bit.o
CC kernel/sched/swait.o
CC crypto/jitterentropy.o
CC crypto/jitterentropy-kcapi.o
CC fs/f2fs/extent_cache.o
CC kernel/sched/completion.o
CC fs/f2fs/sysfs.o
CC crypto/ghash-generic.o
CC kernel/sched/idle.o
CC fs/f2fs/debug.o
CC fs/f2fs/xattr.o
CC crypto/asymmetric_keys/asymmetric_type.o
CC crypto/asymmetric_keys/restrict.o
CC fs/f2fs/acl.o
CC fs/f2fs/verity.o
CC kernel/sched/cpupri.o
CC crypto/asymmetric_keys/signature.o
CC crypto/asymmetric_keys/public_key.o
CC kernel/sched/cpudeadline.o
AR fs/f2fs/f2fs.o
AR fs/f2fs/built-in.o
CC fs/fat/cache.o
CC kernel/sched/topology.o
CC fs/fat/dir.o
CC fs/fat/fatent.o
ASN.1 crypto/asymmetric_keys/x509-asn1.c
ASN.1 crypto/asymmetric_keys/x509_akid-asn1.c
CC crypto/asymmetric_keys/x509_public_key.o
CC kernel/sched/stop_task.o
ASN.1 crypto/asymmetric_keys/pkcs7-asn1.c
CC crypto/asymmetric_keys/pkcs7_trust.o
CC crypto/asymmetric_keys/pkcs7_verify.o
CC fs/fat/file.o
CC kernel/sched/energy.o
AR crypto/asymmetric_keys/asymmetric_keys.o
CC kernel/sched/stats.o
CC crypto/asymmetric_keys/x509-asn1.o
CC crypto/asymmetric_keys/x509_akid-asn1.o
CC crypto/asymmetric_keys/x509_cert_parser.o
CC crypto/asymmetric_keys/pkcs7-asn1.o
CC kernel/sched/debug.o
CC fs/fuse/dev.o
CC crypto/asymmetric_keys/pkcs7_parser.o
CC fs/fat/inode.o
CC kernel/sched/tune.o
AR crypto/asymmetric_keys/x509_key_parser.o
AR crypto/asymmetric_keys/pkcs7_message.o
AR crypto/asymmetric_keys/built-in.o
CC crypto/hash_info.o
CC crypto/simd.o
CC fs/fuse/dir.o
CC fs/fat/misc.o
CC fs/fuse/file.o
CC kernel/sched/cpuacct.o
AR crypto/crypto.o
AR crypto/crypto_algapi.o
AR crypto/crypto_blkcipher.o
AR crypto/crypto_hash.o
CC crypto/rsapubkey-asn1.o
CC crypto/rsaprivkey-asn1.o
AR crypto/crypto_acompress.o
AR crypto/cryptomgr.o
AR crypto/jitterentropy_rng.o
AR crypto/crypto_simd.o
AR crypto/rsa_generic.o
AR crypto/built-in.o
CC kernel/sched/cpufreq.o
CC fs/fat/nfs.o
CC fs/fat/namei_vfat.o
CC fs/incfs/data_mgmt.o
CC fs/fat/namei_msdos.o
CC kernel/sched/cpufreq_schedutil.o
CC fs/fuse/inode.o
CC fs/incfs/format.o
AR fs/fat/fat.o
AR fs/fat/vfat.o
AR fs/fat/msdos.o
AR fs/fat/built-in.o
CC fs/isofs/namei.o
CC fs/incfs/integrity.o
CC fs/isofs/inode.o
CC fs/fuse/control.o
CC fs/incfs/main.o
CC kernel/sched/membarrier.o
CC fs/incfs/vfs.o
CC fs/fuse/xattr.o
CC fs/isofs/dir.o
CC kernel/sched/psi.o
CC fs/isofs/util.o
CC fs/fuse/acl.o
AR fs/incfs/incrementalfs.o
AR fs/incfs/built-in.o
CC fs/fuse/passthrough.o
AR kernel/sched/built-in.o
CC fs/isofs/rock.o
CC kernel/time/time.o
CC kernel/time/timer.o
AR fs/fuse/fuse.o
AR fs/fuse/built-in.o
CC fs/jbd2/transaction.o
CC fs/isofs/export.o
CC fs/isofs/joliet.o
CC fs/isofs/compress.o
CC fs/jbd2/commit.o
CC kernel/time/hrtimer.o
CC kernel/time/timekeeping.o
AR fs/isofs/isofs.o
AR fs/isofs/built-in.o
CC fs/jbd2/recovery.o
CC kernel/time/ntp.o
CC fs/jbd2/checkpoint.o
CC fs/jbd2/revoke.o
CC fs/kernfs/mount.o
CC kernel/time/clocksource.o
CC fs/jbd2/journal.o
CC fs/kernfs/inode.o
CC kernel/time/jiffies.o
CC kernel/trace/trace_clock.o
CC fs/kernfs/dir.o
CC kernel/time/timer_list.o
AR fs/jbd2/jbd2.o
AR fs/jbd2/built-in.o
CC fs/nls/nls_base.o
CC kernel/trace/ring_buffer.o
CC kernel/time/timeconv.o
CC fs/kernfs/file.o
CC fs/nls/nls_cp437.o
CC kernel/time/timecounter.o
CC kernel/time/alarmtimer.o
CC fs/nls/nls_cp950.o
CC kernel/trace/trace.o
CC fs/kernfs/symlink.o
CC fs/nls/nls_ascii.o
AR fs/kernfs/built-in.o
CC fs/nls/nls_iso8859-1.o
CC fs/notify/fsnotify.o
CC kernel/time/posix-timers.o
CC fs/nls/nls_utf8.o
AR fs/nls/built-in.o
CC kernel/time/posix-cpu-timers.o
CC kernel/time/posix-clock.o
CC fs/notify/notification.o
CC kernel/trace/trace_output.o
CC kernel/time/itimer.o
CC fs/notify/group.o
CC kernel/time/clockevents.o
CC fs/overlayfs/super.o
CC kernel/trace/trace_seq.o
CC fs/notify/mark.o
CC fs/overlayfs/namei.o
CC kernel/time/tick-common.o
CC kernel/trace/trace_stat.o
CC fs/notify/fdinfo.o
CC fs/overlayfs/util.o
CC fs/notify/dnotify/dnotify.o
CC fs/overlayfs/inode.o
CC kernel/trace/trace_printk.o
AR fs/notify/dnotify/built-in.o
AR fs/notify/fanotify/built-in.o
CC kernel/time/tick-broadcast.o
CC fs/overlayfs/dir.o
CC fs/notify/inotify/inotify_fsnotify.o
CC fs/notify/inotify/inotify_user.o
CC fs/overlayfs/readdir.o
CC kernel/trace/trace_sched_switch.o
CC kernel/time/tick-broadcast-hrtimer.o
CC fs/overlayfs/copy_up.o
AR fs/notify/inotify/built-in.o
AR fs/notify/built-in.o
CC kernel/time/sched_clock.o
CC kernel/trace/trace_nop.o
CC kernel/time/tick-oneshot.o
CC kernel/trace/blktrace.o
AR fs/overlayfs/overlay.o
AR fs/overlayfs/built-in.o
CC fs/proc/task_mmu.o
CC fs/proc/inode.o
CC kernel/time/tick-sched.o
CC kernel/time/timer_list_aee.o
CC fs/proc/root.o
CC kernel/trace/trace_events.o
CC fs/proc/base.o
AR kernel/time/built-in.o
CC kernel/freezer.o
CC kernel/profile.o
CC fs/proc/generic.o
CC kernel/trace/trace_export.o
CC kernel/trace/trace_event_perf.o
CC kernel/stacktrace.o
CC kernel/futex.o
CC fs/proc/array.o
CC fs/proc/fd.o
CC kernel/trace/trace_events_filter.o
CC kernel/trace/trace_events_trigger.o
CC fs/proc/proc_tty.o
CC fs/proc/cmdline.o
CC kernel/smp.o
CC fs/proc/consoles.o
CC kernel/trace/bpf_trace.o
CC fs/proc/cpuinfo.o
CC kernel/trace/power-traces.o
CC kernel/trace/rpm-traces.o
CC fs/proc/devices.o
CC fs/proc/interrupts.o
CC fs/proc/loadavg.o
CC kernel/trace/trace_probe.o
CC kernel/trace/trace_uprobe.o
CC fs/proc/meminfo.o
CC fs/proc/stat.o
CC kernel/trace/mtk_trace.o
CC fs/proc/uptime.o
CC fs/proc/version.o
CC fs/proc/softirqs.o
CC fs/proc/namespaces.o
CC fs/proc/self.o
AR kernel/trace/built-in.o
CC kernel/uid16.o
CC fs/proc/thread_self.o
CC kernel/module.o
CC fs/proc/uid.o
CC fs/proc/proc_sysctl.o
CC fs/proc/proc_net.o
CC fs/proc/kmsg.o
CC kernel/kallsyms.o
CC kernel/compat.o
CC kernel/utsname.o
CC fs/proc/page.o
CC kernel/pid_namespace.o
AR fs/proc/proc.o
AR fs/proc/built-in.o
CC fs/pstore/inode.o
CC fs/pstore/platform.o
GZIP kernel/config_data.gz
CC kernel/stop_machine.o
CC kernel/audit.o
CC fs/quota/dquot.o
CC fs/pstore/pmsg.o
CC fs/quota/quota_v2.o
CC fs/pstore/ram.o
CC kernel/auditfilter.o
CC fs/quota/quota_tree.o
CC fs/pstore/ram_core.o
CC kernel/auditsc.o
AR fs/pstore/pstore.o
AR fs/pstore/ramoops.o
AR fs/pstore/built-in.o
CC kernel/audit_watch.o
CC fs/ramfs/inode.o
CC fs/quota/quota.o
CC fs/ramfs/file-mmu.o
CC kernel/audit_fsnotify.o
CC fs/quota/kqid.o
CC fs/quota/netlink.o
AR fs/ramfs/ramfs.o
AR fs/ramfs/built-in.o
CC fs/sdcardfs/dentry.o
CC kernel/audit_tree.o
CC kernel/seccomp.o
CC fs/sdcardfs/file.o
AR fs/quota/built-in.o
CC fs/sdcardfs/inode.o
CC fs/sdcardfs/main.o
CC kernel/utsname_sysctl.o
CC kernel/delayacct.o
CC fs/sysfs/file.o
CC fs/sdcardfs/super.o
CC fs/sysfs/dir.o
CC kernel/taskstats.o
CC fs/sdcardfs/lookup.o
CC fs/sysfs/symlink.o
CC fs/sdcardfs/mmap.o
CC fs/sdcardfs/packagelist.o
CC kernel/tsacct.o
CC fs/sdcardfs/derived_perm.o
CC fs/sysfs/mount.o
CC kernel/tracepoint.o
CC kernel/elfcore.o
AR fs/sdcardfs/sdcardfs.o
AR fs/sdcardfs/built-in.o
CC fs/sysfs/group.o
CC fs/tracefs/inode.o
CC kernel/irq_work.o
CC fs/verity/enable.o
AR fs/tracefs/tracefs.o
AR fs/tracefs/built-in.o
CC fs/verity/hash_algs.o
AR fs/sysfs/built-in.o
CC fs/eventpoll.o
CC kernel/cpu_pm.o
CC fs/verity/init.o
CC fs/verity/measure.o
CC fs/anon_inodes.o
CC kernel/memremap.o
CHK kernel/kheaders_data.tar.xz
CC fs/verity/open.o
CC fs/verity/verify.o
CC fs/verity/signature.o
CC fs/signalfd.o
CC fs/timerfd.o
AR fs/verity/built-in.o
CC fs/eventfd.o
CC fs/aio.o
CC fs/locks.o
CC fs/compat.o
CHK kernel/config_data.h
UPD kernel/config_data.h
CC fs/compat_ioctl.o
CC kernel/configs.o
CC fs/binfmt_script.o
CC fs/binfmt_elf.o
CC fs/compat_binfmt_elf.o
AR kernel/built-in.o
CC fs/mbcache.o
CC fs/posix_acl.o
CC fs/coredump.o
CC fs/drop_caches.o
CC fs/dcookies.o
AR fs/built-in.o
GEN kernel/kheaders_data.tar.xz
./kernel/gen_kheaders.sh: line 61: /tools/build/cpio: No such file or directory
make[1]: *** [kernel/Makefile:142: kernel/kheaders_data.tar.xz] Error 127
make: *** [Makefile:1198: kernel] Error 2

I apologize for the format as I am not familiar about formatting in XDA.