Linux / scripts / recordmcount: No such file or directory

When I try to execute the Linux kernel make module, the following error message appears:

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

What is wrong with him?

PS: /home/mynfs/linux/ is the directory where the source tree is located.

 [ 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 
+7
source share
2 answers

I had the same problem, and just making a recordmcount was able to solve it partially. There were other scripts / * modules.

The following command built all the modules missing for me:

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

Then all script modules were built, and I no longer had problems compiling kernel modules.

+10
source

you must create recordmcount by doing

make recordmcount

in / home / mynfs / linux / scripts

+7
source

All Articles