【发布时间】: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