Linux 3.13 内核编译失败

标签 linux compilation compiler-errors makefile kernel

使用

在 .conf 中配置各种选项后
$make config

我尝试使用编译整个 linux 内核

$make

但是它会抛出如下错误:

root@localbox:/LinuxKernel/linux-3.13# make
scripts/kconfig/conf --silentoldconfig Kconfig
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
root@localbox:/LinuxKernel/linux-3.13# 

我尝试使用以下方法搜索 .conf:

$find -name ".conf"

但是没有结果。但是由于 make config 工作,我假设 .config 必须存在于某处。

请告诉我如何克服这个烦人的问题。我是第一次这样做,我不确定在尝试编译内核之前是否必须安装任何依赖项。非常感谢您的反馈。

最佳答案

make config 肯定有一些错误,例如磁盘已满或您使用 Ctrl-C 中止了它。 .config 文件(不是 .conf)就在主目录中。

错误信息已经说明了

*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").

有几个基于文本(config、oldconfig、menuconfig)和图形(xconfig、gconfig)的配置程序。您可能想选择一个图形化的并运行它,例如

make gconfig

这些图形配置器还有助于避免所有数百个不相关的问题。选择完所需的选项后,不要忘记保存 .config 文件并再次尝试编译内核和模块。

关于Linux 3.13 内核编译失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21321256/

相关文章:

Python 子进程命令参数

linux - 运行 Contiki 教程时出现 "Not a git repository:"错误消息

python - 计算消息之间的时间 CANBUS

java - Android 中的 R.java 类

linux - 如何使用 awk 忽略逗号?

R 2.14字节编译——性能提升了多少

eclipse - 如何在 Eclipse 上编码和编译 Matlab mex 文件?

c++ - 如何正确使用模板?我的模板 <> 存在数据类型问题

c++ - 在自定义库中使用正则表达式时出错

compiler-errors - Mac OS Lion的Bazel