Linux内核树编译错误整理
编译Linux内核kernel时遇到的问题与解决方案
问题1:scripts/sign-file.c:25:10: fatal error: openss1/opensslv.h: No such file or directory
解决方法:
sudo apt-get install libssl-dev
1
问题2:/bin/sh: 1: flex: not found
解决方法
sudo apt-get install flex
1
问题3:/bin/sh: 1: bison: not found
解决方法
sudo apt-get install bison -y
1
问题4:/hone/ysz/Desktop/os/linux-5.15.5/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
解决方法
sudo apt-get install libelf-dev
1
问题5:make[1]😗**No rule to nake target ‘debian/canonical-certs.pew’, needed by ‘certs/x509_certificate_list’.Stop.
解决方法
编辑.config文件
vim .config
1
2
将文件中的CONFIG_SYSTEM_TRUSTED_KEYS置空如下
CONFIG_SYSTEM_TRUSTED_KEYS=“”
1
(打开文件后输入“/”查找其所在的命令行)
之后make clean再make
问题6:arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
解决方法
sudo apt-get install binutils
1
问题7:sed: can’t read modules.order : No such file or directory
解决方法
查看文件名是否存在空格,删掉空格就可以正常运行了(别问为什么,我也不知道)
————————————————
版权声明:本文为CSDN博主「一顿吃不饱」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m0_48958478/article/details/121620449
解决Linux"没有规则可制作目标“debian/canonical-revoked-certs.pem”,由“certs/x509_revocation_list” 需求。 停止。" 方法
scripts/link-vmlinux.sh: line 94: 17257 Killed ,make: *** [vmlinux] Error 137-Linux(4)
scripts/link-vmlinux.sh: line 94: 17257 Killed ,make: *** [vmlinux] Error 137-Linux(4)
/swapfile 正在使用中,这个错误
linux下修改SWAP空间大小- Text file busy
FAILED: load BTF from vmlinux: No such file or directory 解决方法
snap占用/dev/loop0-/dev/loop11占用100%