/ 详情

21.03分支(5.10.0) 内核版本进行arm64架构下内核编译时报错

Done
版本
Opened this issue  
2021-03-05 16:17
  CC      arch/arm64/kernel/ipi_nmi.o
arch/arm64/kernel/ipi_nmi.c: In function ‘ipi_nmi_handler’:
arch/arm64/kernel/ipi_nmi.c:54:7: error: implicit declaration of function ‘kgdb_nmicallback’ -Werror=implicit-function-declaration]
   54 |  if (!kgdb_nmicallback(cpu, get_irq_regs()))
      |       ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: arch/arm64/kernel/ipi_nmi.o] Error 1
make[1]: *** [scripts/Makefile.build:496: arch/arm64/kernel] Error 2
make: *** [Makefile:1806: arch/arm64] Error 2
make: *** Waiting for unfinished jobs....

kgdb_nmicallback函数的使用导致了一个warning,在kernel的Makefile中指定了-Werror,warning一律视为error,编译将无法继续进行。

希望得到解决方法:关闭某配置项绕开或消除此Warning

Attachments

Comments (4)

gaowei created任务
gaowei set related repository to openEuler/kernel
展开全部操作日志

Hey gokwok_rs, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

gaowei changed description
gaowei changed issue type from 任务 to 版本

config 文件提供一下,你用的不是 openeuler_defconfig 是吧?

可以临时打开 CONFIG_KGDB 试试 ,修复补丁随后发出

可以临时打开 CONFIG_KGDB 试试 ,修复补丁随后发出

@wangxiongfeng 好~

gaowei changed issue state from 待办的 to 已完成

Sign in to comment

状态
Assignees
Labels
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(4)
5329419 openeuler ci bot 1578984659