如何调试Linux内核编译缺少的软件包?

时间:2018-09-03 09:35:27

标签: linux compilation linux-kernel kernel

我试图在运行具有非备用内核的SLES 12 SP 3的计算机上编译Linux 4.16 rc6。

uname -a : Linux sles12m1 4.4.127-2.gf65f3e8-default #1 SMP Fri Apr 13 17:03:37 UTC 2018 (f65f3e8) x86_64 x86_64 x86_64 GNU/Linux

我从/proc/config.gz复制了配置,并提供了所需的所有新选项。

发布后,我运行了oldconfig,进行了准备,然后进行了制造,

└──╼ make
  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
  DESCEND  objtool
  CHK     scripts/mod/devicetable-offsets.h
  CC      init/main.o
init/.tmp_main.o: warning: objtool: gelf_getehdr: Request error: not an ELF file
scripts/Makefile.build:324: recipe for target 'init/main.o' failed
make[1]: *** [init/main.o] Error 1
Makefile:1051: recipe for target 'init' failed
make: *** [init] Error 2

我尝试了谷歌搜索,但是没有运气。我了解这是某种环境问题,但不知道可能是什么。

关于如何调试此程序的任何指示信息?我对这些事情有一定的了解,因此非常欢迎提供技术答案。

在确实准备好工作之前,我确实遇到了一些elfutils问题。

0 个答案:

没有答案
相关问题