From: Ian Jackson Subject: Re: [PATCH] tools/vtpm: fix version.h error during parallel build Date: Mon, 23 Jul 2012 18:14:19 +0100 Message-ID: <20493.34411.301558.56360@mariner.uk.xensource.com> References: <51506c407f3ef3e238a4.1342105720@probook.site> <20493.33251.292891.101019@mariner.uk.xensource.com> <20120723171201.GA4555@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120723171201.GA4555@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("Re: [Xen-devel] [PATCH] tools/vtpm: fix version.h error during parallel build"): > On Mon, Jul 23, Ian Jackson wrote: > > > Olaf Hering writes ("[Xen-devel] [PATCH] tools/vtpm: fix version.h error during parallel build"): > > > tools/vtpm: fix version.h error during parallel build > > > > > > Generating the tpm_version.h is not make -j safe: > > > > Thanks for tracking this down. However, wouldn't it be possible to > > fix this entirely in our Makefile, somehow ? The patch to the > > upstream Makefile risks getting conflicts in the future with changes > > to the upstream code. > > The build_sub rule in tools/vtpm/Makefile could be changed to > $(MAKE) -C $(VTPM_DIR) version && $(MAKE) -C $(VTPM_DIR) all-recursive; \ > > And the install rule in that Makefile perhaps to > $(MAKE) -C $(VTPM_DIR) install-recursive Right, something like that. > I will see how that works, the failure happens rarely. I find that adding sleeps can help repro these kind of problems. Ian.