From: Anthony PERARD Subject: Re: [PATCH] tools/hotplug/Linux: Fix build Date: Fri, 10 Oct 2014 11:42:38 +0100 Message-ID: <20141010104238.GC1742@perard.uk.xensource.com> References: <1412872535-8221-1-git-send-email-anthony.perard@citrix.com> <20141009165408.GB12637@aepfle.de> <5436BEC1.9020604@citrix.com> <1412930128.10650.17.camel@citrix.com> <1412930678.10650.20.camel@citrix.com> <20141010095908.GA26050@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20141010095908.GA26050@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: Andrew Cooper , Ian Jackson , Ian Campbell , Xen Devel List-Id: xen-devel@lists.xenproject.org On Fri, Oct 10, 2014 at 11:59:08AM +0200, Olaf Hering wrote: > On Fri, Oct 10, Ian Campbell wrote: > > > I expect the actual problem is that the buildsystem is recusing into > > this directory twice simultaneously for "all" and "install" at the same > > time. That seems likely to be an issue with the Makefile in the parent > > directory. > > > > Should subdirs-install depend on subdirs-all perhaps? > > Anthony, how do you invoke make? While I have seen it often right now > I'm unable to reproduce. There are never 'all' and 'install' targets in > the log. I think my script always called make rpmball. There are a lot of things in my build script, but it should be done to this: git clone ./configure --enable-systemd --other-stuff export MAKEFLAGS="-j24" edit .config to use local git tree make And later in the process, a `make install` is called but the faillure is before that. > I think only the install rule should depend on ALL_XEN_SYSTEMD because > in the end thats the only place that matters. There is nothing to build, > and the single xen.conf file could also be generated on the fly during > install. > > But still it would be nice to know what the root cause is. It look like hotplug stuff are done like that: make[2]: Entering directory '/build/xen-unstable/src/xen-unstable/tools' make -C hotplug install then calling make install on other subdir. And after entering tools/Linux, I can see both rules "all" and "install" been called on systemd directory (unfortunatly, at the same time on this machine). I think the problem is in tools/Linux/Makefile, where we have: all: subdirs-all install: all subdirs-install Maybe the "install" rules should depend only on the things it need to install, and not an "all". -- Anthony PERARD