From: "Jan Beulich" Subject: Re: missing dependency to compat/xen.h Date: Wed, 17 Sep 2014 12:35:15 +0100 Message-ID: <54198E130200007800035A72@mail.emea.novell.com> References: <20140917110104.GA27369@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140917110104.GA27369@aepfle.de> Content-Disposition: inline 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 >>> On 17.09.14 at 13:01, wrote: > Not sure if I messed up my staging tree, or if there is a real dependency > bug. > Today it happend two times that my build fails like this: > > In file included from > /home/olaf/work/github/olafhering/xen/xen/include/xen/sched.h:7:0, > from x86_64/asm-offsets.c:10: > /home/olaf/work/github/olafhering/xen/xen/include/xen/shared.h:6:24: fatal > error: compat/xen.h: No such file or directory > #include > ^ > compilation terminated. > Makefile:150: recipe for target 'asm-offsets.s' failed > make[3]: *** [asm-offsets.s] Error 1 > > Initially I had make -j8, but another run with '-j1' appended did not fix it > for me. > How is compat/xen.h supposed to be created? This make rule $(TARGET): delete-unfresh-files $(MAKE) -C tools $(MAKE) -f $(BASEDIR)/Rules.mk include/xen/compile.h [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm $(MAKE) -f $(BASEDIR)/Rules.mk -C include $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) asm-offsets.s $(MAKE) -f $(BASEDIR)/Rules.mk include/asm-$(TARGET_ARCH)/asm-offsets.h $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) $(TARGET) is - afaict - guaranteeing that the include/compat/ generation happens before that of asm-offsets.s. Jan