All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH] libxl: fix incremental parallel build
Date: Fri, 1 Sep 2017 16:28:24 +0100	[thread overview]
Message-ID: <20170901152824.vg525wpi6sc2i32t@citrix.com> (raw)
In-Reply-To: <59A6800202000078001755C4@prv-mh.provo.novell.com>

On Wed, Aug 30, 2017 at 01:06:10AM -0600, Jan Beulich wrote:
> Short-circuit absolute paths of generated headers to their pathless
> equivalents, to avoid two racing invocations of the same rule producing
> them.
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> ---
> This wants to be backported to 4.9 and 4.8.
> 
> --- a/tools/libxl/Makefile
> +++ b/tools/libxl/Makefile
> @@ -264,6 +264,13 @@ $(LIBXL_OBJS) $(LIBXL_TEST_OBJS) $(LIBXL
>  	$(TEST_PROG_OBJS) $(SAVE_HELPER_OBJS): libxl.h
>  $(LIBXL_OBJS) $(LIBXL_TEST_OBJS): libxl_internal.h
>  
> +# libacpi sources (living in another subdirectory) will have their inclusions
> +# of headers from this directory recorded as absolute paths in the .*.o.d
> +# files.  In order to not invoke the subsequent rule twice (and perhaps in a
> +# racing way when doing a parallel build), short-circuit the absolute paths to
> +# the local ones first.
> +$(CURDIR)/_libxl_type%.h: _libxl_type%.h ;

I don't quite get this. I normally build with -j8 and never saw a race.

Do you mean parallel build in which two makes enter libxl? Is that
possible?

Why does libacpi matter? All dependencies files (*.o.d) should be local
to libxl anyway.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-09-01 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-30  7:06 [PATCH] libxl: fix incremental parallel build Jan Beulich
2017-09-01 15:28 ` Wei Liu [this message]
2017-09-01 15:35   ` Jan Beulich
2017-09-01 17:04     ` Ian Jackson
2017-09-04  8:38       ` Jan Beulich
2017-09-04 10:59         ` Ian Jackson
2017-09-04 11:33         ` Ian Jackson
2017-09-04 12:51           ` Jan Beulich
2017-09-04 13:33             ` Ian Jackson
2017-09-04 14:36               ` Jan Beulich
2017-09-04 14:39                 ` Ian Jackson
2017-09-04 16:46                   ` [PATCH 1/4] DEPS handling: Provide DEPS_RM and DEPS_INCLUDE Ian Jackson
2017-09-04 16:46                     ` [PATCH 2/4] DEPS handling: Use DEPS_RM everywhere Ian Jackson
2017-09-04 16:46                     ` [PATCH 3/4] DEPS handling: Use DEPS_INCLUDE everywhere Ian Jackson
2017-09-04 16:46                     ` [PATCH 4/4] DEPS handling: Remove absolute paths from references to cwd Ian Jackson
2017-09-05 14:44                       ` Jan Beulich
2017-09-05 15:32                         ` Ian Jackson
2017-09-05 15:53                           ` Jan Beulich

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=20170901152824.vg525wpi6sc2i32t@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.