# # 2024-11-18T11:24:57.568648 # # make KBUILD_BUILD_USER=KernelCI ARCH=riscv HOSTCC=gcc CROSS_COMPILE=riscv64-linux-gnu- CC="ccache riscv64-linux-gnu-gcc" O=/tmp/kci/linux/build -C/tmp/kci/linux -j4 # make: Entering directory '/tmp/kci/linux' make[1]: Entering directory '/tmp/kci/linux/build' SYNC include/config/auto.conf.cmd GEN Makefile WRAP arch/riscv/include/generated/uapi/asm/errno.h WRAP arch/riscv/include/generated/uapi/asm/fcntl.h WRAP arch/riscv/include/generated/uapi/asm/ioctl.h GEN Makefile WRAP arch/riscv/include/generated/uapi/asm/ioctls.h WRAP arch/riscv/include/generated/uapi/asm/ipcbuf.h WRAP arch/riscv/include/generated/uapi/asm/mman.h WRAP arch/riscv/include/generated/uapi/asm/msgbuf.h WRAP arch/riscv/include/generated/uapi/asm/param.h UPD include/generated/uapi/linux/version.h WRAP arch/riscv/include/generated/uapi/asm/poll.h WRAP arch/riscv/include/generated/uapi/asm/posix_types.h WRAP arch/riscv/include/generated/uapi/asm/resource.h WRAP arch/riscv/include/generated/uapi/asm/sembuf.h WRAP arch/riscv/include/generated/uapi/asm/shmbuf.h WRAP arch/riscv/include/generated/uapi/asm/siginfo.h WRAP arch/riscv/include/generated/uapi/asm/signal.h WRAP arch/riscv/include/generated/uapi/asm/socket.h WRAP arch/riscv/include/generated/uapi/asm/sockios.h WRAP arch/riscv/include/generated/uapi/asm/stat.h WRAP arch/riscv/include/generated/uapi/asm/statfs.h WRAP arch/riscv/include/generated/uapi/asm/swab.h WRAP arch/riscv/include/generated/uapi/asm/termbits.h WRAP arch/riscv/include/generated/uapi/asm/termios.h WRAP arch/riscv/include/generated/uapi/asm/types.h SYSHDR arch/riscv/include/generated/uapi/asm/unistd_32.h UPD include/generated/compile.h HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o SYSHDR arch/riscv/include/generated/uapi/asm/unistd_64.h HOSTCC scripts/dtc/fstree.o UPD include/config/kernel.release WRAP arch/riscv/include/generated/asm/early_ioremap.h WRAP arch/riscv/include/generated/asm/flat.h WRAP arch/riscv/include/generated/asm/kvm_para.h WRAP arch/riscv/include/generated/asm/mmzone.h WRAP arch/riscv/include/generated/asm/mcs_spinlock.h WRAP arch/riscv/include/generated/asm/parport.h WRAP arch/riscv/include/generated/asm/spinlock_types.h WRAP arch/riscv/include/generated/asm/ticket_spinlock.h WRAP arch/riscv/include/generated/asm/qrwlock.h WRAP arch/riscv/include/generated/asm/qrwlock_types.h WRAP arch/riscv/include/generated/asm/qspinlock.h WRAP arch/riscv/include/generated/asm/user.h WRAP arch/riscv/include/generated/asm/vmlinux.lds.h WRAP arch/riscv/include/generated/asm/device.h WRAP arch/riscv/include/generated/asm/div64.h WRAP arch/riscv/include/generated/asm/dma-mapping.h WRAP arch/riscv/include/generated/asm/dma.h WRAP arch/riscv/include/generated/asm/emergency-restart.h HOSTCC scripts/dtc/data.o WRAP arch/riscv/include/generated/asm/hardirq.h WRAP arch/riscv/include/generated/asm/hw_irq.h WRAP arch/riscv/include/generated/asm/irq_regs.h WRAP arch/riscv/include/generated/asm/kmap_size.h WRAP arch/riscv/include/generated/asm/local.h WRAP arch/riscv/include/generated/asm/local64.h WRAP arch/riscv/include/generated/asm/msi.h WRAP arch/riscv/include/generated/asm/percpu.h WRAP arch/riscv/include/generated/asm/preempt.h WRAP arch/riscv/include/generated/asm/runtime-const.h WRAP arch/riscv/include/generated/asm/rwonce.h WRAP arch/riscv/include/generated/asm/serial.h WRAP arch/riscv/include/generated/asm/shmparam.h WRAP arch/riscv/include/generated/asm/softirq_stack.h WRAP arch/riscv/include/generated/asm/trace_clock.h WRAP arch/riscv/include/generated/asm/vga.h WRAP arch/riscv/include/generated/asm/video.h SYSTBL arch/riscv/include/generated/asm/syscall_table_32.h SYSTBL arch/riscv/include/generated/asm/syscall_table_64.h HOSTCC scripts/dtc/livetree.o UPD include/generated/utsrelease.h HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.[ch] HOSTCC scripts/dtc/libfdt/fdt.o HOSTCC scripts/dtc/libfdt/fdt_ro.o HOSTCC scripts/dtc/libfdt/fdt_wip.o HOSTCC scripts/dtc/libfdt/fdt_sw.o HOSTCC scripts/dtc/libfdt/fdt_rw.o HOSTCC scripts/dtc/libfdt/fdt_strerror.o HOSTCC scripts/dtc/libfdt/fdt_empty_tree.o HOSTCC scripts/dtc/libfdt/fdt_addresses.o HOSTCC scripts/dtc/libfdt/fdt_overlay.o HOSTCC scripts/dtc/fdtoverlay.o HOSTCC scripts/dtc/dtc-lexer.lex.o HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/fdtoverlay HOSTLD scripts/dtc/dtc HOSTCC scripts/kallsyms HOSTCC scripts/sorttable DTC arch/riscv/boot/dts/allwinner/sun20i-d1-clockworkpi-v3.14.dtb HOSTCC scripts/selinux/mdp/mdp DTC arch/riscv/boot/dts/allwinner/sun20i-d1-devterm-v3.14.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-dongshan-nezha-stu.dtb HOSTCC scripts/asn1_compiler DTC arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-86-panel-480p.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-86-panel-720p.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-mangopi-mq-pro.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dtb DTC arch/riscv/boot/dts/allwinner/sun20i-d1s-mangopi-mq.dtb DTC arch/riscv/boot/dts/canaan/canaan_kd233.dtb DTC arch/riscv/boot/dts/microchip/mpfs-beaglev-fire.dtb DTC arch/riscv/boot/dts/canaan/k210_generic.dtb DTC arch/riscv/boot/dts/microchip/mpfs-icicle-kit.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maix_bit.dtb DTC arch/riscv/boot/dts/microchip/mpfs-m100pfsevp.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maix_dock.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maix_go.dtb DTC arch/riscv/boot/dts/microchip/mpfs-polarberry.dtb DTC arch/riscv/boot/dts/canaan/sipeed_maixduino.dtb DTC arch/riscv/boot/dts/microchip/mpfs-sev-kit.dtb DTC arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dtb DTC arch/riscv/boot/dts/microchip/mpfs-tysom-m.dtb DTC arch/riscv/boot/dts/sophgo/cv1800b-milkv-duo.dtb DTC arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dtb DTC arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dtb DTC arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb CC scripts/mod/empty.o DTC arch/riscv/boot/dts/starfive/jh7110-deepcomputing-fml13v01.dtb DTC arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dtb DTC arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dtb DTC arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dtb DTC arch/riscv/boot/dts/starfive/jh7110-milkv-mars.dtb DTC arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dtb DTC arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dtb DTC arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtb HOSTCC scripts/mod/mk_elfconfig DTC arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.2a.dtb DTC arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb CC scripts/mod/devicetable-offsets.s MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTCC scripts/mod/symsearch.o UPD scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CC kernel/bounds.s CHKSHA1 ../include/linux/atomic/atomic-arch-fallback.h CHKSHA1 ../include/linux/atomic/atomic-instrumented.h CHKSHA1 ../include/linux/atomic/atomic-long.h UPD include/generated/timeconst.h UPD include/generated/bounds.h CC arch/riscv/kernel/asm-offsets.s In file included from ../include/linux/sched/task_stack.h:12, from ../arch/riscv/include/asm/compat.h:12, from ../arch/riscv/include/asm/pgtable.h:115, from ../include/linux/pgtable.h:6, from ../include/linux/mm.h:30, from ../arch/riscv/kernel/asm-offsets.c:8: ../include/linux/kasan.h:53:37: error: ‘MAX_PTRS_PER_PTE’ undeclared here (not in a function); did you mean ‘PTRS_PER_PTE’? 53 | extern pte_t kasan_early_shadow_pte[MAX_PTRS_PER_PTE + PTE_HWTABLE_PTRS]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PTE ../include/linux/kasan.h:54:8: error: unknown type name ‘pmd_t’ 54 | extern pmd_t kasan_early_shadow_pmd[MAX_PTRS_PER_PMD]; | ^~~~~ ../include/linux/kasan.h:54:37: error: ‘MAX_PTRS_PER_PMD’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 54 | extern pmd_t kasan_early_shadow_pmd[MAX_PTRS_PER_PMD]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD ../include/linux/kasan.h:55:8: error: unknown type name ‘pud_t’ 55 | extern pud_t kasan_early_shadow_pud[MAX_PTRS_PER_PUD]; | ^~~~~ ../include/linux/kasan.h:55:37: error: ‘MAX_PTRS_PER_PUD’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 55 | extern pud_t kasan_early_shadow_pud[MAX_PTRS_PER_PUD]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD ../include/linux/kasan.h:56:8: error: unknown type name ‘p4d_t’ 56 | extern p4d_t kasan_early_shadow_p4d[MAX_PTRS_PER_P4D]; | ^~~~~ ../include/linux/kasan.h:56:37: error: ‘MAX_PTRS_PER_P4D’ undeclared here (not in a function); did you mean ‘PTRS_PER_PGD’? 56 | extern p4d_t kasan_early_shadow_p4d[MAX_PTRS_PER_P4D]; | ^~~~~~~~~~~~~~~~ | PTRS_PER_PGD In file included from ../include/linux/perf/riscv_pmu.h:12, from ../arch/riscv/include/asm/kvm_vcpu_pmu.h:12, from ../arch/riscv/include/asm/kvm_host.h:23, from ../arch/riscv/kernel/asm-offsets.c:12: ../include/linux/perf_event.h:1679:84: error: macro "perf_misc_flags" passed 2 arguments, but takes just 1 1679 | extern unsigned long perf_misc_flags(struct perf_event *event, struct pt_regs *regs); | ^ In file included from ../include/linux/perf_event.h:25: ../arch/riscv/include/asm/perf_event.h:15: note: macro "perf_misc_flags" defined here 15 | #define perf_misc_flags(regs) perf_misc_flags(regs) | ../include/linux/perf_event.h:1679:22: error: ‘perf_misc_flags’ redeclared as different kind of symbol 1679 | extern unsigned long perf_misc_flags(struct perf_event *event, struct pt_regs *regs); | ^~~~~~~~~~~~~~~ ../arch/riscv/include/asm/perf_event.h:14:22: note: previous declaration of ‘perf_misc_flags’ with type ‘long unsigned int(struct pt_regs *)’ 14 | extern unsigned long perf_misc_flags(struct pt_regs *regs); | ^~~~~~~~~~~~~~~ ../include/linux/perf_event.h:1680:22: error: conflicting types for ‘perf_instruction_pointer’; have ‘long unsigned int(struct perf_event *, struct pt_regs *)’ 1680 | extern unsigned long perf_instruction_pointer(struct perf_event *event, | ^~~~~~~~~~~~~~~~~~~~~~~~ ../arch/riscv/include/asm/perf_event.h:13:22: note: previous declaration of ‘perf_instruction_pointer’ with type ‘long unsigned int(struct pt_regs *)’ 13 | extern unsigned long perf_instruction_pointer(struct pt_regs *regs); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[3]: *** [../scripts/Makefile.build:102: arch/riscv/kernel/asm-offsets.s] Error 1 make[2]: *** [/tmp/kci/linux/Makefile:1262: prepare0] Error 2 make[1]: *** [/tmp/kci/linux/Makefile:251: __sub-make] Error 2 make[1]: Leaving directory '/tmp/kci/linux/build' make: *** [Makefile:251: __sub-make] Error 2 make: Leaving directory '/tmp/kci/linux'