zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Vincent Lefevre <vincent@vinc17.org>, zsh-workers@sunsite.dk
Subject: Re: Building zsh should work with "make -j2"
Date: Sat, 13 Jan 2007 10:21:41 -0800	[thread overview]
Message-ID: <070113102141.ZM26285@torch.brasslantern.com> (raw)
In-Reply-To: <20070112235849.GZ22968@prunille.vinc17.org>

On Jan 13, 12:58am, Vincent Lefevre wrote:
}
} When building zsh with make -j2, in fact
} 
} A dependency bug in the Makefile?

Yes, but it's a really insidious one -- it's an implicit dependency on a
sequential build rather than a true file-to-file dependency that can be
expressed in make syntax.

I've tried several different ways to introduce dummy build targets to
force the one portion of the build that is required to be sequetial to
really be sequential, and failed every time.  The problem is related
to the way that zsh uses recursive invocations of make with makefiles
that are (re)compiled as part of the outer invocation; it appears to be
truly impossible to create a description of this in make syntax because
the necessary parts of the syntax can't even exist until the outer make
has already decided that it's OK to parallelize the recurive make.

That's not the whole story, but it's a large subset of it ...


  reply	other threads:[~2007-01-13 18:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 23:58 Vincent Lefevre
2007-01-13 18:21 ` Bart Schaefer [this message]
2007-01-14 20:10   ` Vincent Lefevre
2007-01-14 20:30     ` Bart Schaefer
2007-01-15  0:26       ` Vincent Lefevre
2007-01-15  1:57         ` Dan Nelson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=070113102141.ZM26285@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=vincent@vinc17.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).