Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:40

Ingo Molnar [off-list ref] 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.

Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"

From: Ingo Molnar <hidden>
Date: 2016-06-15 22:46:40

* Junio C Hamano [off-list ref] wrote:
Ingo Molnar [off-list ref] writes:
quoted
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

Re: [spurious parallel build bug] make -j fails with: "mv: mv: cannot stat `perl.mak': No such file or directory"

From: Jeff King <hidden>
Date: 2016-06-15 22:46:40

On Mon, Apr 27, 2009 at 08:34:51PM +0200, Ingo Molnar wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help