Anyone got an idea why I am getting the below error with today's git
while compiling the kernel?
LD arch/x86/vdso/built-in.o
scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
make[1]: *** [net/netfilter] Error 2
make: *** [net] Error 2
parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm net/netfilter/.xt_mac.o.cmd
rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
net/netfilter/.xt_mac.o.cmd
Even trying 'sudo rm -f' on that file gives the same error.
I am not using NFS at all which makes this one sound weird!
Thanks
Parag
> Anyone got an idea why I am getting the below error with today's git
> while compiling the kernel?
>
> LD arch/x86/vdso/built-in.o
> scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
> make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
> make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
> make[1]: *** [net/netfilter] Error 2
> make: *** [net] Error 2
> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm net/netfilter/.xt_mac.o.cmd
> rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
> net/netfilter/.xt_mac.o.cmd
>
> Even trying 'sudo rm -f' on that file gives the same error.
>
> I am not using NFS at all which makes this one sound weird!
Broken filesystem?
You may try fscking the filesystem.
--
Tomasz Chmielewski
http://blog.wpkg.org
On Thu, Oct 23, 2008 at 6:28 PM, Tomasz Chmielewski <[email protected]> wrote:
>> Anyone got an idea why I am getting the below error with today's git
>> while compiling the kernel?
>>
>> LD arch/x86/vdso/built-in.o
>> scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file
>> handle
>> make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
>> make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
>> make[1]: *** [net/netfilter] Error 2
>> make: *** [net] Error 2
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm
>> net/netfilter/.xt_mac.o.cmd
>> rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
>> net/netfilter/.xt_mac.o.cmd
>>
>> Even trying 'sudo rm -f' on that file gives the same error.
>>
>> I am not using NFS at all which makes this one sound weird!
>
> Broken filesystem?
>
> You may try fscking the filesystem.
>
Yep - just finished that and got unused/deleted inode errors plus bunch more.
That's weird though since this is a new machine and new install - time
to do a memtest followed by going back to stable kernel.
Thanks
Parag
On Thu, 23 Oct 2008 17:58:34 -0400
"Parag Warudkar" <[email protected]> wrote:
> Anyone got an idea why I am getting the below error with today's git
> while compiling the kernel?
>
> LD arch/x86/vdso/built-in.o
> scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
> make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
> make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
> make[1]: *** [net/netfilter] Error 2
> make: *** [net] Error 2
> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm net/netfilter/.xt_mac.o.cmd
> rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
> net/netfilter/.xt_mac.o.cmd
>
> Even trying 'sudo rm -f' on that file gives the same error.
>
> I am not using NFS at all which makes this one sound weird!
>
Is this still happening?
If so, I'd be looking at that new `return ERR_PTR(-ESTALE)' in
d_obtain_alias().
On Wed, Oct 29, 2008 at 8:56 PM, Andrew Morton
<[email protected]> wrote:
> On Thu, 23 Oct 2008 17:58:34 -0400
> "Parag Warudkar" <[email protected]> wrote:
>
>> Anyone got an idea why I am getting the below error with today's git
>> while compiling the kernel?
>>
>> LD arch/x86/vdso/built-in.o
>> scripts/Makefile.build:373: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
>> make[2]: stat: net/netfilter/.xt_mac.o.cmd: Stale NFS file handle
>> make[2]: *** No rule to make target `net/netfilter/.xt_mac.o.cmd'. Stop.
>> make[1]: *** [net/netfilter] Error 2
>> make: *** [net] Error 2
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ rm net/netfilter/.xt_mac.o.cmd
>> rm: cannot remove `net/netfilter/.xt_mac.o.cmd': Stale NFS file handle
>> parag@parag-desktop:~/kernel-dev/linux-2.6-wk$ sudo rm
>> net/netfilter/.xt_mac.o.cmd
>>
>> Even trying 'sudo rm -f' on that file gives the same error.
>>
>> I am not using NFS at all which makes this one sound weird!
>>
>
> Is this still happening?
>
> If so, I'd be looking at that new `return ERR_PTR(-ESTALE)' in
> d_obtain_alias().
To fix it I had to fsck.ext3 - which reported/corrected unused/deleted
inode errors relating to that file.
Since make -j4 was involved in this, sounds like a race some where?
Since then I have booted the same machine with latest git 4-5 times
and compiled a few kernels - nothing bad has happened till now.
Will continue to test newer kernels since I still have few days before
I load this machine with useful data.
Parag
On Wed, Oct 29, 2008 at 05:56:43PM -0700, Andrew Morton wrote:
> Is this still happening?
>
> If so, I'd be looking at that new `return ERR_PTR(-ESTALE)' in
> d_obtain_alias().
d_obtain is only used in the nfs export code, some special case in the
nfs client code and the xfs open by handle code.