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 building "make world" broken?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] XEN building "make world" broken?
From: "John C. McCullough" <jmccullo@xxxxxxxxxxx>
Date: Thu, 17 Feb 2011 11:56:35 -0800
Delivery-date: Thu, 17 Feb 2011 12:00:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikkZt=6d+CFUR+issvF86Hq+zH2=kBB5jqjby6D@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>
References: <AANLkTinyJsDp+DPq2aUYwcLj=5G5uC+u0QPDnnsMwKDs@xxxxxxxxxxxxxx> <AANLkTikkZt=6d+CFUR+issvF86Hq+zH2=kBB5jqjby6D@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 Icedove/3.0.11
A vanilla xen-4.0-testing.hg checkout won't build all the way through.

hg clone http://xenbits.xensource.com/xen-4.0-testing.hg
cd xen-4.0-testing.hg
make world
....
+ rm -rf linux-2.6-pvops.git linux-2.6-pvops.git.tmp
+ mkdir linux-2.6-pvops.git.tmp
+ rmdir linux-2.6-pvops.git.tmp
+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
Cloning into linux-2.6-pvops.git.tmp...
remote: Counting objects: 1941611, done.
remote: Compressing objects: 100% (318945/318945), done.
remote: Total 1941611 (delta 1614307), reused 1930825 (delta 1604777)
Receiving objects: 100% (1941611/1941611), 397.88 MiB | 3.68 MiB/s, done.
Resolving deltas: 100% (1614307/1614307), done.
+ cd linux-2.6-pvops.git.tmp
+ git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x
fatal: git checkout: branch xen/stable-2.6.32.x already exists
...
build failed.


Going exploring:
cd linux-2.6-pvops.git.tpm
git checkout xen/xen/stable-2.6.32.x
..works

git checkout xen/stable-2.6.32.x
..works

Looks like the local xen/stable-2.6.32.x branch that is started in the build process got pushed into the main repo.

Removing the local branch creation works:

diff -r 996f7815b070 buildconfigs/src.git-clone
--- a/buildconfigs/src.git-clone        Thu Feb 10 17:26:19 2011 +0000
+++ b/buildconfigs/src.git-clone        Thu Feb 17 11:50:35 2011 -0800
@@ -26,7 +26,7 @@
                rm -rf $(LINUX_SRCDIR) $(LINUX_SRCDIR).tmp; \
                mkdir $(LINUX_SRCDIR).tmp; rmdir $(LINUX_SRCDIR).tmp; \
$(GIT) clone -o $(XEN_GIT_ORIGIN) -n $(XEN_LINUX_GIT_URL) $(LINUX_SRCDIR).tmp; \ - (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \ + (cd $(LINUX_SRCDIR).tmp; git checkout $(XEN_LINUX_GITREV) ); \
                mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \
        fi
        touch $@

-John

On 02/16/2011 09:04 PM, Todd Deshane wrote:
On Thu, Feb 17, 2011 at 4:38 AM, Yuvraj Agarwal<yuvraj@xxxxxxxxxxx>  wrote:
Hi All,
<snip>
git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
linux-2.6-pvops.git.tmp
Initialized empty Git repository in
/home/yuvraj/XEN-Build/xen-4.0-testing.hg/linux-2.6-pvops.git.tmp/.git/
remote: Counting objects: 1941611, done.
remote: Compressing objects: 100% (318945/318945), done.
remote: Total 1941611 (delta 1614307), reused 1930825 (delta 1604777)
Receiving objects: 100% (1941611/1941611), 397.88 MiB | 1.33 MiB/s, done.
Resolving deltas: 100% (1614307/1614307), done.
+ cd linux-2.6-pvops.git.tmp
+ git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x
fatal: git checkout: branch xen/stable-2.6.32.x already exists
This look like the problem you are running into
http://lists.xensource.com/archives/html/xen-users/2010-12/msg00166.html

(A problem with your git tree for the kernel.)

+ mv linux-2.6-pvops.git.tmp linux-2.6-pvops.git
touch linux-2.6-pvops.git/.valid-src
rm -rf build-linux-2.6-pvops_x86_64
mkdir -p build-linux-2.6-pvops_x86_64
# Re-use config from install dir if one exists. Next try to use
# buildconfigs/create_config.sh is one is provided by the source
# tree. Finally attempt to use make defconfig.
set -e ; \
        CONFIG_VERSION=$(sed -ne 's/$(XENGUEST)//; s/^EXTRAVERSION =
//p' linux-2.6-pvops.git/Makefile); \
        if [ ! -z "" -a -r "" ]; then \
          cp  
/home/yuvraj/XEN-Build/xen-4.0-testing.hg/build-linux-2.6-pvops_x86_64/.config;
\
        elif [ -r
/home/yuvraj/XEN-Build/xen-4.0-testing.hg/dist/install/boot/config-2.6.$CONFIG_VERSION
] ; then \
          cp 
/home/yuvraj/XEN-Build/xen-4.0-testing.hg/dist/install/boot/config-2.6.$CONFIG_VERSION
/home/yuvraj/XEN-Build/xen-4.0-testing.hg/build-linux-2.6-pvops_x86_64/.config
; \
        elif [ -e linux-2.6-pvops.git/buildconfigs/create_config.sh ] ; then \
          cd linux-2.6-pvops.git&&  sh buildconfigs/create_config.sh \

/home/yuvraj/XEN-Build/xen-4.0-testing.hg/build-linux-2.6-pvops_x86_64/.config
  x86_64  ; \
          echo "Configured build-linux-2.6-pvops_x86_64 using
create_config.sh" ; \
        elif make -C linux-2.6-pvops.git ARCH=$(sh
buildconfigs/select-linux-arch linux-2.6-pvops.git) defconfig
O=$(/bin/pwd)/build-linux-2.6-pvops_x86_64 ; then \
          echo "Configured build-linux-2.6-pvops_x86_64 using defconfig" ; \
        else \
          echo "No configuration method found for this kernel" ; \
Based on getting an error here and looking above.
<snip>

This appears to be a question that is probably better addressed on the
xen-users list. It is better to post there first unless you are sure
something is really broken.

The Xen code is tested often by many users and developers all over the
world. I'm pretty sure we would figure out pretty quickly if make
world was broken :-)

Hope the suggestions above help solve your problem.

Thanks,
Todd

_______________________________________________
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