tinker board 2s debian源码和编译

[复制链接]
peter 发表于 2022-9-27 11:11:44 | 显示全部楼层 |阅读模式
回复

使用道具 举报

匿名  发表于 2022-10-11 16:45:02
按照这个做了,但是报错,有什么解决方法?
回复

使用道具

匿名  发表于 2022-10-11 16:57:26
这个是错误
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
回复

使用道具

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表