WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xen 4.1.0 rc1 build problem for local CONFIG_QEMU direct

To: M A Young <m.a.young@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen 4.1.0 rc1 build problem for local CONFIG_QEMU directory
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Fri, 14 Jan 2011 08:03:24 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 14 Jan 2011 00:04:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.LFD.2.02.1101132159400.30902@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <alpine.LFD.2.02.1101132159400.30902@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2011-01-13 at 22:54 +0000, M A Young wrote: 
> If you edit Config.mk by commenting CONFIG_QEMU ?= $(QEMU_REMOTE) and 
> uncommenting CONFIG_QEMU ?= ../qemu-xen.git then the build fails with the 
> error
> + test -d ../qemu-xen.git
> + mkdir -p ioemu-dir
> ...
>       cd ioemu-dir; \
>       ../qemu-xen.git/xen-setup
> /bin/sh: line 4: ../qemu-xen.git/xen-setup: No such file or directory
> make[1]: *** [ioemu-dir-find] Error 1
> 
> The problem is that (in tools/Makefile) if CONFIG_QEMU is a directory 
> (when tested from tools) then QEMU_ROOT is set to this. Then the script 
> goes into the ioemu-dir directory and runs $(QEMU_ROOT)/xen-setup . 
> Unfortunately QEMU_ROOT is relative to tools not tools/ioemu-dir and 
> things break. If you hack around this by adding and extra ../ to QEMU_ROOT 
> it fails later because symbolic links created later on such as 
> ioemu-dir/i386-dm/Makefile don't work.
> 
> So far the only way I have found to get it to work properly is to set 
> CONFIG_QEMU to an absolute directory (because I know what it will be) 
> which isn't portable.

Perhaps you could/should use $(XEN_ROOT) and specify the path relative
to it?

Ian.

> 
>       Michael Young
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel