From: "KUWAMURA Shin'ya" Subject: Re: Problems Building Xen 4.0.x on ia64 (various releases) Date: Mon, 20 Dec 2010 18:10:23 +0900 (JST) Message-ID: <20101220.181023.434304322.kuwa@jp.fujitsu.com> References: <20101219100816.2455372jqa7en64g@correo.onuva.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Mon_Dec_20_18_10_23_2010_517)--" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101219100816.2455372jqa7en64g@correo.onuva.com> <1288882434.2472.22.camel@E4310> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jortega@onuva.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Mon_Dec_20_18_10_23_2010_517)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, >>>>> On Sun, 19 Dec 2010 10:08:16 -0430 >>>>> jortega@onuva.com("Julio C. Ortega") said: > > I've faced a couple of problems building Xen 4.0.0, 4.0.1 and 4.0.2rc1 > from sources on an itanium2 machine running debian 6.0 > I'll describe the problems i've faced with all three releases. > > XEN 4.0.0: > In file included from xc_dom_ia64.c:26: > ia64/asm/dom_fw_common.h:47:23: error: asm/fpswa.h: No such file or > directory Could you try gcc-4.1 instead of gcc-4.4? Building xen with GCC 4.4 has a known problem and using GCC 4.1 can avoid it: http://lists.xensource.com/archives/html/xen-ia64-devel/2010-05/msg00007.html > XEN 4.0.1 & XEN 4.0.2rc1 (testing) > /root/xen-4.0.1/xen/common/built_in.o: In function `kexec_exec': > /root/xen-4.0.1/xen/common/kexec.c:493: undefined reference to > `continue_hypercall_on_cpu' > 4.0.2rc1: > /root/xen-4.0.2rc1/xen/common/built_in.o: In function `kexec_exec': > /root/xen-4.0.2rc1/xen/common/kexec.c:493: undefined reference to > `continue_hypercall_on_cpu' > make[3]: *** [/root/xen-4.0.2rc1/xen/xen-syms] Error 1 > Digging up and googling i've found out nothing, but seems weird that > particularly continue_hypercall_on_cpu() it's only present in > architecture specific include files. You are right. Could you apply the attached patch? # Notice that this fix is ad hoc. Best regards, -- KUWAMURA Shin'ya ----Next_Part(Mon_Dec_20_18_10_23_2010_517)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-kexec-continue_hypercall_on_cpu.patch" diff -r b536ebfba183 xen/common/kexec.c --- a/xen/common/kexec.c Wed Aug 25 09:22:42 2010 +0100 +++ b/xen/common/kexec.c Mon Dec 20 14:44:33 2010 +0900 @@ -490,7 +490,12 @@ static int kexec_exec(XEN_GUEST_HANDLE(v { case KEXEC_TYPE_DEFAULT: image = &kexec_image[base + pos]; +#ifdef CONFIG_X86 ret = continue_hypercall_on_cpu(0, kexec_reboot, image); +#else + one_cpu_only(); + machine_reboot_kexec(image); /* Does not return */ +#endif break; case KEXEC_TYPE_CRASH: kexec_crash(); /* Does not return */ ----Next_Part(Mon_Dec_20_18_10_23_2010_517)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Mon_Dec_20_18_10_23_2010_517)----