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-unstable: build fails

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xen-unstable: build fails
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Wed, 16 Mar 2011 15:45:50 +0100
Delivery-date: Wed, 16 Mar 2011 07:47:11 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1300286753; x=1331822753; h=message-id:date:from:mime-version:to:subject:references: in-reply-to:content-transfer-encoding; bh=cnk52KTrsXPMP0tYONELoQy2EFV764VMZtPuWGp+p9w=; b=gWWFzRWjD7wjLTswJCZ+MGfogKGdYqed6JR3zUQVuXwdZ9SBJU0vtY2r 3EJxggMPZPgQYhini1aUcqCOEpwhIB46zdWknulU5OtMVUmvefl+SjMON XmhQaDEGABfbad5KVHVdRy0y1hfmondJifOz6Jvvt+Af9VKxLST7q5itC 2LhFJAO69iJMl65FG5LFlT6lZFTXh4GJzX6UywqQaWZbmZE3SEyqSVvpD u+KujCei2tf2zRF1WinJB5z76PXBP;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=YjOdNnBrSe5nvtPBTvIXc8bXhvRcn0gtNOP7l5Zc1i2il98JhPrCnzU4 lJniuUcLTMD0+EIvzHKSWyJMghWWnWM0HPRBYQu1K9BqxIfOIIhI1hp+s B8VV9+47n7hGRi2hDfs3jCz3uuL+OLo44OWuUjVUGkhvBAywGmnlN0Lx2 jnYGCw4i/r2MUeWQ0s0ekAKlPQRw7qFez6DD9bLlqp63Uv9BXf7ll+t1h mmMiddelHDR3lGgJy8M+6Rlf51AL4;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D80C037.5010602@xxxxxxxxxxxxxx>
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: Fujitsu Technology Solutions
References: <4D80C037.5010602@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Iceowl/1.0b1 Icedove/3.0.11
On 03/16/11 14:50, Juergen Gross wrote:
Hi,

I've just set up a machine with OpenSuse 11.4 and tried to build Xen.

Under root I did:

hg clone http://xenbits.xensource.com/xen-unstable.hg
cd xen-unstable.hg
make xen

The make failed with:

make[4]: Entering directory `/root/xen-unstable.hg/xen/arch/x86/boot'
RELOC=0x7c000 make -f build32.mk reloc.S
make[5]: Entering directory `/root/xen-unstable.hg/xen/arch/x86/boot'
make[5]: *** ../../../../.config: Is a directory. Stop.
make[5]: Leaving directory `/root/xen-unstable.hg/xen/arch/x86/boot'
make[4]: *** [reloc.S] Error 2
make[4]: Leaving directory `/root/xen-unstable.hg/xen/arch/x86/boot'
make[3]: *** [/root/xen-unstable.hg/xen/arch/x86/boot/built_in.o] Error 2
make[3]: Leaving directory `/root/xen-unstable.hg/xen/arch/x86'
make[2]: *** [/root/xen-unstable.hg/xen/xen] Error 2
make[2]: Leaving directory `/root/xen-unstable.hg/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/xen-unstable.hg/xen'
make: *** [install-xen] Error 2

The reason seems to be a directory /root/.config which isn't present on my
other machines.

And /.config as well.


make tools

fails in a similar way. Many Makefiles seem to contain lines like:

XEN_ROOT=../..

which is a really bad idea in my opinion. XEN_ROOT should only be set,
if it
is not yet defined.

I'd suggest to use

XEN_ROOT ?= $(PWD)/../..

should be $(CURDIR), of course.


instead. A patch is easily made, but affects ca. 100 Makefiles. And this
change could break the possibility to just do a "make" in a subdirectory.

The patch isn't really easy, as more seems to go wrong.
I've changed some Makefiles and get now with "make tools":

make[4]: Leaving directory `/root/xen-unstable.hg/tools/include/xen-foreign'
/root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/arch-ia64 /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/arch-ia64/hvm /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/arch-x86 /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/arch-x86/hvm /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/foreign /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/hvm /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/io /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/sys /root/xen-unstable.hg/tools/cross-install -d -m0755 -p /root/xen-unstable.hg/dist/install/usr/include/xen/xsm /root/xen-unstable.hg/tools/cross-install -m0644 -p xen/COPYING /root/xen-unstable.hg/dist/install/usr/include/xen
install: cannot stat `xen/COPYING': No such file or directory
make[3]: *** [install] Error 1
make[3]: Leaving directory `/root/xen-unstable.hg/tools/include'
make[2]: *** [subdir-install-include] Error 2
make[2]: Leaving directory `/root/xen-unstable.hg/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/root/xen-unstable.hg/tools'
make: *** [install-tools] Error 2


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

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