加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux-kernel – linux / scripts / recordmcount:没有这样的文

发布时间:2020-12-13 18:31:16 所属栏目:Linux 来源:网络整理
导读:当我尝试创建 Linux的内核模块时,会出现以下错误消息: /home/mynfs/linux/scripts/recordmcount: No such file or directory 它出什么问题了? PS:/ home / mynfs / linux /是我的源代码树所在的目录. [root@localhost yiran]# make CONFIG_NFS_ACL_SUPPOR
当我尝试创建 Linux的内核模块时,会出现以下错误消息:
/home/mynfs/linux/scripts/recordmcount: No such file or directory

它出什么问题了?

PS:/ home / mynfs / linux /是我的源代码树所在的目录.

[root@localhost yiran]# make CONFIG_NFS_ACL_SUPPORT=m -C /home/mynfs/linux M=/home/mynfs/linux/fs/nfs_common modules
make: Entering directory `/home/mynfs/linux'

  WARNING: Symbol version dump /home/mynfs/linux/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/mynfs/linux/fs/nfs_common/nfsacl.o

**/bin/sh: /home/mynfs/linux/scripts/recordmcount: No such file or directory**

make[1]: * [/home/mynfs/linux/fs/nfs_common/nfsacl.o] Error 1
make: * [_module_/home/mynfs/linux/fs/nfs_common] Error 2
make: Leaving directory `/home/mynfs/linux'
[root@localhost yiran]# ls /home/mynfs/linux/scripts | grep recordmcount

recordmcount.c

recordmcount.h

recordmcount.pl

解决方法

我有同样的问题,只是让recordmcount部分地解决了它.还缺少其他脚本/ *模块.

以下命令构建了我缺少的所有模块:

cd $(sysroot)/usr/src/linux (in your case it should be /home/mynfs/linux)
 make scripts

然后构建了所有脚本模块,编译内核模块时没有进一步的问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读