warning: Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel error: Cannot resolve BTF IDs for CONFIG_DEBUG_INFO_BTF, please install libelf-dev, libelf-devel or elfutils-libelf-devel make: *** [Makefile:1236:prepare-resolve_btfids] 错误 1
时间: 2023-06-19 19:03:00 浏览: 386
J1939_stack-master.zip_J1939_j1939 stack_j1939-master
这个错误提示是在编译内核时出现的,缺少了 libelf 相关的库文件。你可以尝试执行以下命令安装相关的库文件:
1. Debian/Ubuntu
```bash
sudo apt-get install libelf-dev
```
2. Red Hat/CentOS/Fedora
```bash
sudo yum install elfutils-libelf-devel
```
如果以上方法无法解决问题,你可以尝试更新系统并重新编译内核。
阅读全文