git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bizarro race conditions in the Git Makefile

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 6, 2010, 21:40 UTC
Message-ID
<AANLkTin=6pmfPjmM-W4UFf1g+0Z9Rrprc0h0mThUOUFx@mail.gmail.com>
In-Reply-To
<20100806211407.GB6495@burratino>
On Fri, Aug 6, 2010 at 21:14, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 20 quoted lines
> Ęvar Arnfjörš Bjarmason wrote:
>
>> Those interested in
>> poking their eyes can try:
>>
>>     while nice -n 30 make -j 15 clean all CFLAGS=-O0 CC=gcc; do 1; done
>
> You are asking make to simultaneously build and unbuild everything.
> It does not really surprise me that it gets confused.
>
> Does
>
>  while
>        nice -n 30 make -j 15 clean CFLAGS=-O0 CC=gcc &&
>        nice -n 30 make -j 15 all CFLAGS=-O0 CC=gcc
>  do
>        :
>  done
>
> behave better?

Yes that works. I thought that -j $n would mean that make would use $n jobs to complete the first target, then move onto the next. Not execute them all in paralell.

Thanks, and I have no idea about those Makefile/Perl changes.
Previous: Jonathan Nieder
Message 3 of 3 in “Bizarro race conditions in the Git Makefile”
  1. Ævar Arnfjörð BjarmasonAug 6, 2010
  2. Jonathan NiederAug 6, 2010
  3. Ævar Arnfjörð BjarmasonAug 6, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.