{"thread":{"id":"19083","subject":"[spurious parallel build bug] make -j fails with: \"mv: mv: cannot stat `perl.mak': No such file or directory\"","startedAt":"2009-04-27T09:48:43Z","lastAt":"2009-04-27T20:19:20Z","messageCount":4,"participants":["Ingo Molnar","Junio C Hamano","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"112411","messageId":"20090427094843.GA5849@elte.hu","threadId":"19083","inReplyTo":null,"subject":"[spurious parallel build bug] make -j fails with: \"mv: mv: cannot stat `perl.mak': No such file or directory\"","fromName":"Ingo Molnar","fromEmail":"mingo@elte.hu","sentAt":"2009-04-27T09:48:43Z","receivedAt":"2009-04-27T09:48:43Z","isPatch":false,"sender":{"key":"mingo@elte.hu","avatar":null},"body":"\nI got this when i built v1.6.3-rc3 for the first time:\n\n$ make -j\n[...]\n    CC builtin-annotate.o\n    CC builtin-apply.o\n    CC builtin-archive.o\n    CC builtin-bisect--helper.o\nmv: mv: cannot stat `perl.mak': No such file or directory\nmv: cannot stat `perl.mak': No such file or directory\n    CC builtin-blame.o\nmv: cannot stat `perl.mak': No such file or directory\nmv: cannot stat `perl.mak': No such file or directory\ncannot stat `perl.mak': No such file or directory\n\na plain 'make' worked.\n\nInterestingly, a second attempt to reproduce it after a 'make clean' \nfailed to trigger the bug. So it's either timing sensitive or \nthere's some other weirdness that caused this.\n\n\tIngo\n"},{"id":"112440","messageId":"7vk5563ua8.fsf@gitster.siamese.dyndns.org","threadId":"19083","inReplyTo":"20090427094843.GA5849@elte.hu","subject":"Re: [spurious parallel build bug] make -j fails with: \"mv: mv: cannot stat `perl.mak': No such file or directory\"","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-04-27T17:01:35Z","receivedAt":"2009-04-27T17:01:35Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Ingo Molnar <mingo@elte.hu> writes:\n\n> I got this when i built v1.6.3-rc3 for the first time:\n>\n> $ make -j\n> [...]\n>     CC builtin-annotate.o\n>     CC builtin-apply.o\n>     CC builtin-archive.o\n>     CC builtin-bisect--helper.o\n> mv: mv: cannot stat `perl.mak': No such file or directory\n> mv: cannot stat `perl.mak': No such file or directory\n>     CC builtin-blame.o\n> mv: cannot stat `perl.mak': No such file or directory\n> mv: cannot stat `perl.mak': No such file or directory\n> cannot stat `perl.mak': No such file or directory\n>\n> a plain 'make' worked.\n>\n> Interestingly, a second attempt to reproduce it after a 'make clean' \n> failed to trigger the bug. So it's either timing sensitive or \n> there's some other weirdness that caused this.\n\nI've seen this a few times on the master machine at k.org but haven't seen\nit elsewhere, perhaps because I do not have an access to 8-way parallelism\nanywhere else.\n"},{"id":"112449","messageId":"20090427183451.GA23862@elte.hu","threadId":"19083","inReplyTo":"7vk5563ua8.fsf@gitster.siamese.dyndns.org","subject":"Re: [spurious parallel build bug] make -j fails with: \"mv: mv: cannot stat `perl.mak': No such file or directory\"","fromName":"Ingo Molnar","fromEmail":"mingo@elte.hu","sentAt":"2009-04-27T18:34:51Z","receivedAt":"2009-04-27T18:34:51Z","isPatch":false,"sender":{"key":"mingo@elte.hu","avatar":null},"body":"\n* Junio C Hamano <gitster@pobox.com> wrote:\n\n> Ingo Molnar <mingo@elte.hu> writes:\n> \n> > I got this when i built v1.6.3-rc3 for the first time:\n> >\n> > $ make -j\n> > [...]\n> >     CC builtin-annotate.o\n> >     CC builtin-apply.o\n> >     CC builtin-archive.o\n> >     CC builtin-bisect--helper.o\n> > mv: mv: cannot stat `perl.mak': No such file or directory\n> > mv: cannot stat `perl.mak': No such file or directory\n> >     CC builtin-blame.o\n> > mv: cannot stat `perl.mak': No such file or directory\n> > mv: cannot stat `perl.mak': No such file or directory\n> > cannot stat `perl.mak': No such file or directory\n> >\n> > a plain 'make' worked.\n> >\n> > Interestingly, a second attempt to reproduce it after a 'make \n> > clean' failed to trigger the bug. So it's either timing \n> > sensitive or there's some other weirdness that caused this.\n> \n> I've seen this a few times on the master machine at k.org but \n> haven't seen it elsewhere, perhaps because I do not have an access \n> to 8-way parallelism anywhere else.\n\nbtw, this happened on a plain dual-core box. But i couldnt reproduce \nafter that.\n\n\tIngo\n"},{"id":"112456","messageId":"20090427201920.GD4067@coredump.intra.peff.net","threadId":"19083","inReplyTo":"20090427183451.GA23862@elte.hu","subject":"Re: [spurious parallel build bug] make -j fails with: \"mv: mv: cannot stat `perl.mak': No such file or directory\"","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2009-04-27T20:19:20Z","receivedAt":"2009-04-27T20:19:20Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Apr 27, 2009 at 08:34:51PM +0200, Ingo Molnar wrote:\n\n> > I've seen this a few times on the master machine at k.org but \n> > haven't seen it elsewhere, perhaps because I do not have an access \n> > to 8-way parallelism anywhere else.\n> \n> btw, this happened on a plain dual-core box. But i couldnt reproduce \n> after that.\n\nI've seen it occasionally on a dual-core, as well, but was never able to\ntrack it down. I suspect it is caused by the fact that there are two\nrules which recurse into the perl subdir: perl/perl.mak, if needed, will\nrecurse, as will \"all\".  So I think we are losing the usual parallelism\nguard there, and we have two makes running inside \"perl\" at the same\ntime, both of which then try to make perl.mak and step on each other.\n\nBut I still can't reproduce it at will, so it is hard to test.\n\n-Peff\n"}]}