From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Mason Subject: [PATCH] mbootpack Makefile error Date: Mon, 13 Jun 2005 18:25:09 -0500 Message-ID: <20050613232509.GA6152@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On my x86-64 Gentoo system, the xen-unstable compile breaks in tools/misc/mbootpack. It complains about not being able to find errno.h and page.h. After some digging (and help from Anthony, Jerone, and Scott), I found out that Gentoo's /usr/include/asm/errno.h errouniously has #include "../asm-x86_64/errno.h" instead of #include I am reporting the bug to Gentoo, but until this bug is fixed the patch below is needed. It removes the "-I-", which prevented gcc from using user include files. Scott and Jerone verified that the header files in Ubuntu and Fedora do not have this file, though this may be a problem in SuSE (unable to confirm). Gentoo on x86 does not have the same /usr/include/asm/errno.h, so this is not an issue. Signed-off-by: Jon Mason --- tools/misc/mbootpack/Makefile.orig 2005-06-13 16:53:56.000000000 -0500 +++ tools/misc/mbootpack/Makefile 2005-06-13 16:54:08.000000000 -0500 @@ -17,7 +17,7 @@ install: build # Tools etc. RM := rm -f GDB := gdb -INCS := -I. -I- +INCS := -I. DEFS := LDFLAGS := CC := gcc