From: Ian Campbell Subject: Re: XCP: how to build dom0 kernel Date: Tue, 8 Jun 2010 09:20:50 +0100 Message-ID: <1275985250.24218.49904.camel@zakaz.uk.xensource.com> References: <1275983187.24218.49837.camel@zakaz.uk.xensource.com> <20100608075954.74AC6719F7@kuma.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100608075954.74AC6719F7@kuma.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: YAMAMOTO Takashi Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2010-06-08 at 08:59 +0100, YAMAMOTO Takashi wrote: > hi, > > > OK. I'll install up a VM and give it a go see if I can work out what is > > happening. > > thanks. > > > Oh, I have an idea -- is you host running 32 or 64 bit CentOS? > > 64 bit. > > head-006% uname -a > Linux head-006 2.6.18-128.el5_vaj2010022501xen #1 SMP Mon Mar 1 09:28:06 JST 2010 x86_64 x86_64 x86_64 GNU/Linux > head-006% > > does it matter? Unfortunately I think it does. XCP domain 0 is 32 bit and the kernel-xen.spec is obviously not quite right for cross compiling. I'd recommend installing a 32 bit CentOS VM and using that. You may be able to make cross compiling work for the kernel but if you get into building anything further down the userspace part you may run into even more troubles. If you want to try and get cross compilation working for the kernel only I think you would need to start by modifying the macro near the top of kernel-xen.spec file include a correct ARCH= in MAKEOPTS, probably by defining a kernelarch variable in the "%ifarch %{ix86}" and "%ifarch x86_64" blocks just above and using that. Ian.