Weird problem while compiling kernel

Manish Katiyar mkatiyar at gmail.com
Mon Jun 6 03:21:40 EDT 2011


/home/kernel> make net
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      net/netlink/genetlink.o
mv: cannot move `net/netlink/.genetlink.o.tmp' to
`net/netlink/.genetlink.o.cmd': No such file or directory
make[2]: *** [net/netlink/genetlink.o] Error 1
make[1]: *** [net/netlink] Error 2
make: *** [net] Error 2
Hi,

This is perhaps OOT, but I have been struggling to figure out the
problem. While compiling kernel I'm getting the below error.
Everything seems fine
and I can see the file, however for some reason 'mv' can see the
source file. strace revealed that its failing with ENOENT. I don't
think there is anything special
with this directory (given that other things compile just fine),
except that this directory is on a ntfs mounted partition.

/home/kernel> make net
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CC      net/netlink/genetlink.o
mv: cannot move `net/netlink/.genetlink.o.tmp' to
`net/netlink/.genetlink.o.cmd': No such file or directory
make[2]: *** [net/netlink/genetlink.o] Error 1
make[1]: *** [net/netlink] Error 2
make: *** [net] Error 2

/home/kernel> ls -lrt net/netlink/.genetlink.o.tmp
-rwxrwxrwx 1 root root 39301 2011-06-06 00:08 net/netlink/.genetlink.o.tmp

/home/kernel> mv net/netlink/.genetlink.o.tmp net/netlink/.genetlink.o.cmd
mv: cannot move `net/netlink/.genetlink.o.tmp' to
`net/netlink/.genetlink.o.cmd': No such file or directory

/home/kernel> mount|grep kernel
/dev/sda1 on /home/kernel type fuseblk
(rw,nosuid,nodev,allow_other,blksize=4096)

/home/kernel> ls net/netlink/.genetlink.o.cmd
net/netlink/.genetlink.o.cmd

/home/kernel> rm net/netlink/.genetlink.o.cmd
rm: cannot remove `net/netlink/.genetlink.o.cmd': No such file or directory

/home/kernel> stat net/netlink/.genetlink.o.cmd
  File: `net/netlink/.genetlink.o.cmd'
  Size: 32093     	Blocks: 64         IO Block: 4096   regular file
Device: 801h/2049d	Inode: 223366      Links: 1
Access: (0777/-rwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-06-06 00:08:26.394585000 -0700
Modify: 2011-06-06 00:08:18.121035000 -0700
Change: 2011-06-06 00:08:44.087640000 -0700


Any suggestions, what I might be missing ?


-- 
Thanks -
Manish



More information about the Kernelnewbies mailing list