首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建linux 4.9

构建linux 4.9
EN

Ask Ubuntu用户
提问于 2017-01-10 14:15:18
回答 1查看 2.6K关注 0票数 1

当我试图使用make O=<linux_build_directory> ARCH=arm Image在Build目录中构建Linux时,得到的错误如下:

代码语言:javascript
复制
make[1]: Entering directory `/home/payal/chanda/build/kernel'
  CHK     include/config/kernel.release
  Using /home/payal/chanda/linux-4.9 as source for kernel
  GEN     ./Makefile
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
In file included from <stdin>:1:0:
/home/payal/chanda/linux-4.9/scripts/gcc-plugins/gcc-common.h:4:22: fatal error: bversion.h: No such file or directory
 #include "bversion.h"
                      ^
compilation terminated.
Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?
make[1]: *** [gcc-plugins-check] Error 1
make[1]: Leaving directory `/home/payal/chanda/build/kernel'
make: *** [sub-make] Error 2
EN

回答 1

Ask Ubuntu用户

发布于 2017-09-07 04:01:25

我和你有同样的问题,

最后,用这个gcc插件头包修复了它:

代码语言:javascript
复制
sudo apt-get install gcc-5-plugin-dev

在此链接的参考资料:

http://lkml.iu.edu/hypermail/linux/kernel/1606.1/03341.html

票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/870244

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档