TinkerBoard2 / kernel

Other
11 stars 14 forks source link

kernel build failed #13

Closed hehui0123 closed 2 years ago

hehui0123 commented 2 years ago

I use kernel-tinker_board_2-debian_10-2.0.0 to build kernel , but failed, bellow is the output ? what cause it? Thanks.

CHK scripts/mod/devicetable-offsets.h CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh make[1]: 'include/generated/vdso-offsets.h' is up to date. CHK include/generated/compile.h CC kernel/panic.o In file included from ./arch/arm64/include/asm/atomic.h:41, from include/linux/atomic.h:4, from include/linux/debug_locks.h:5, from kernel/panic.c:11: kernel/panic.c: In function 'add_taint': ./arch/arm64/include/asm/cmpxchg.h:38:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'int[1]' [-Warray-bounds] error, forbidden warning:cmpxchg.h:38 38 | asm volatile(ARM64_LSE_ATOMIC_INSN( \ | ^~~ ./arch/arm64/include/asm/cmpxchg.h:72:1: note: in expansion of macro 'XCHG_CASE' 72 | __XCHG_CASE(w, , mb_4, dmb ish, nop, , a, l, "memory") | ^~~ In file included from kernel/panic.c:11: include/linux/debug_locks.h:10:12: note: while referencing 'debug_locks' 10 | extern int debug_locks; | ^~~ In file included from ./arch/arm64/include/asm/atomic.h:41, from include/linux/atomic.h:4, from include/linux/debug_locks.h:5, from kernel/panic.c:11: ./arch/arm64/include/asm/cmpxchg.h:38:9: warning: array subscript 'long unsigned int[0]' is partly outside array bounds of 'int[1]' [-Warray-bounds] error, forbidden warning:cmpxchg.h:38 38 | asm volatile(ARM64_LSE_ATOMIC_INSN( \ | ^~~ ./arch/arm64/include/asm/cmpxchg.h:72:1: note: in expansion of macro 'XCHG_CASE' 72 | __XCHG_CASE(w, , mb_4, dmb ish, nop, , a, l, "memory") | ^~~ In file included from kernel/panic.c:11: include/linux/debug_locks.h:10:12: note: while referencing 'debug_locks' 10 | extern int debug_locks; | ^~~ make[1]: ** [scripts/Makefile.build:278: kernel/panic.o] Error 1 make[1]: Deleting file 'kernel/panic.o' make: * [Makefile:1036: kernel] Error 2