【问题标题】:Unexpected error while compiling Linux kernel 4.4.0编译 Linux 内核 4.4.0 时出现意外错误
【发布时间】:2019-04-24 06:34:05
【问题描述】:

编译linux kernel 4.4.0时出现错误:

fs/overlayfs/super.c: In function ‘ovl_init’:
fs/overlayfs/super.c:1331:30: error: ‘ovl_v1_fs_type’ undeclared (first use in this function)
ret = register_filesystem(&ovl_v1_fs_type);
                          ^
fs/overlayfs/super.c:1331:30: note: each undeclared identifier is reported only once for each function it appears in
fs/overlayfs/super.c: In function ‘ovl_exit’:
fs/overlayfs/super.c:1344:26: error: ‘ovl_v1_fs_type’ undeclared (first use in this function)
unregister_filesystem(&ovl_v1_fs_type);
                      ^
scripts/Makefile.build:277: recipe for target 'fs/overlayfs/super.o' failed
make[4]: *** [fs/overlayfs/super.o] Error 1
scripts/Makefile.build:484: recipe for target 'fs/overlayfs' failed
make[3]: *** [fs/overlayfs] Error 2
Makefile:996: recipe for target 'fs' failed
make[2]: *** [fs] Error 2
scripts/package/Makefile:90: recipe for target 'deb-pkg' failed
make[1]: *** [deb-pkg] Error 2
Makefile:1286: recipe for target 'deb-pkg' failed
make: *** [deb-pkg] Error 2

附加信息:

处理器:Intel® Core™ i3-3110M CPU @ 2.40GHz × 4 操作系统类型:64 位

显卡:GeForce GT 720M/PCIe/SSE2

uname -a
Linux Khumayun 4.15.18 #1 SMP Sat Oct 13 22:05:33 +05 2018 x86_64 x86_64 x86_64 GNU/Linux

【问题讨论】:

  • 4.4.0 太旧了,没有理由使用它。
  • 其实我需要 4.4.0 的原因是为了安装 CUDA 10.0。因为它只支持 4.4 和 Ubuntu 16.04

标签: linux kernel


【解决方案1】:

在 Ubuntu 修改的内核中看起来像 bug

您可以启用CONFIG_OVERLAY_FS_V1 配置选项,或应用patch

【讨论】:

  • 似乎它解决了问题,但又来了一个问题.. drivers/media/v4l2-core/videodev.ko: final close failed: No space left on device scripts/Makefile.modpost:125 :目标“驱动程序/媒体/v4l2-core/videodev.ko”的配方失败make [3]:*** [drivers/media/v4l2-core/videodev.ko]错误1 Makefile:1155:目标“模块的配方' make [2] 失败:*** [modules] 错误 2 脚本/包/Makefile:90:目标 'deb-pkg' 的配方失败 make [1]:*** [deb-pkg] 错误 2 Makefile:1286 : 目标“deb-pkg”的配方失败 make: *** [deb-pkg] 错误 2
  • 消息No space left on device 似乎不言自明-您的硬盘已满。
  • 首先,我以为不是这样,但是输入 df -h 我确定了。这解决了问题。内核已编译。谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-04-19
  • 1970-01-01
  • 2012-09-12
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多