git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"
@ 2009-04-27  9:48 Ingo Molnar
  2009-04-27 17:01 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2009-04-27  9:48 UTC (permalink / raw)
  To: git


I got this when i built v1.6.3-rc3 for the first time:

$ make -j
[...]
    CC builtin-annotate.o
    CC builtin-apply.o
    CC builtin-archive.o
    CC builtin-bisect--helper.o
mv: mv: cannot stat `perl.mak': No such file or directory
mv: cannot stat `perl.mak': No such file or directory
    CC builtin-blame.o
mv: cannot stat `perl.mak': No such file or directory
mv: cannot stat `perl.mak': No such file or directory
cannot stat `perl.mak': No such file or directory

a plain 'make' worked.

Interestingly, a second attempt to reproduce it after a 'make clean' 
failed to trigger the bug. So it's either timing sensitive or 
there's some other weirdness that caused this.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"
  2009-04-27  9:48 [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory" Ingo Molnar
@ 2009-04-27 17:01 ` Junio C Hamano
  2009-04-27 18:34   ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2009-04-27 17:01 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: git

Ingo Molnar <mingo@elte.hu> writes:

> I got this when i built v1.6.3-rc3 for the first time:
>
> $ make -j
> [...]
>     CC builtin-annotate.o
>     CC builtin-apply.o
>     CC builtin-archive.o
>     CC builtin-bisect--helper.o
> mv: mv: cannot stat `perl.mak': No such file or directory
> mv: cannot stat `perl.mak': No such file or directory
>     CC builtin-blame.o
> mv: cannot stat `perl.mak': No such file or directory
> mv: cannot stat `perl.mak': No such file or directory
> cannot stat `perl.mak': No such file or directory
>
> a plain 'make' worked.
>
> Interestingly, a second attempt to reproduce it after a 'make clean' 
> failed to trigger the bug. So it's either timing sensitive or 
> there's some other weirdness that caused this.

I've seen this a few times on the master machine at k.org but haven't seen
it elsewhere, perhaps because I do not have an access to 8-way parallelism
anywhere else.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"
  2009-04-27 17:01 ` Junio C Hamano
@ 2009-04-27 18:34   ` Ingo Molnar
  2009-04-27 20:19     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2009-04-27 18:34 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git


* Junio C Hamano <gitster@pobox.com> wrote:

> Ingo Molnar <mingo@elte.hu> writes:
> 
> > I got this when i built v1.6.3-rc3 for the first time:
> >
> > $ make -j
> > [...]
> >     CC builtin-annotate.o
> >     CC builtin-apply.o
> >     CC builtin-archive.o
> >     CC builtin-bisect--helper.o
> > mv: mv: cannot stat `perl.mak': No such file or directory
> > mv: cannot stat `perl.mak': No such file or directory
> >     CC builtin-blame.o
> > mv: cannot stat `perl.mak': No such file or directory
> > mv: cannot stat `perl.mak': No such file or directory
> > cannot stat `perl.mak': No such file or directory
> >
> > a plain 'make' worked.
> >
> > Interestingly, a second attempt to reproduce it after a 'make 
> > clean' failed to trigger the bug. So it's either timing 
> > sensitive or there's some other weirdness that caused this.
> 
> I've seen this a few times on the master machine at k.org but 
> haven't seen it elsewhere, perhaps because I do not have an access 
> to 8-way parallelism anywhere else.

btw, this happened on a plain dual-core box. But i couldnt reproduce 
after that.

	Ingo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"
  2009-04-27 18:34   ` Ingo Molnar
@ 2009-04-27 20:19     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2009-04-27 20:19 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Junio C Hamano, git

On Mon, Apr 27, 2009 at 08:34:51PM +0200, Ingo Molnar wrote:

> > I've seen this a few times on the master machine at k.org but 
> > haven't seen it elsewhere, perhaps because I do not have an access 
> > to 8-way parallelism anywhere else.
> 
> btw, this happened on a plain dual-core box. But i couldnt reproduce 
> after that.

I've seen it occasionally on a dual-core, as well, but was never able to
track it down. I suspect it is caused by the fact that there are two
rules which recurse into the perl subdir: perl/perl.mak, if needed, will
recurse, as will "all".  So I think we are losing the usual parallelism
guard there, and we have two makes running inside "perl" at the same
time, both of which then try to make perl.mak and step on each other.

But I still can't reproduce it at will, so it is hard to test.

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-27 20:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-27  9:48 [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory" Ingo Molnar
2009-04-27 17:01 ` Junio C Hamano
2009-04-27 18:34   ` Ingo Molnar
2009-04-27 20:19     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).