All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John C. McCullough" <jmccullo@cs.ucsd.edu>
To: xen-devel@lists.xensource.com
Subject: Re: XEN building "make world" broken?
Date: Thu, 17 Feb 2011 11:56:35 -0800	[thread overview]
Message-ID: <4D5D7D73.3020700@cs.ucsd.edu> (raw)
In-Reply-To: <AANLkTikkZt=6d+CFUR+issvF86Hq+zH2=kBB5jqjby6D@mail.gmail.com>

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@cs.ucsd.edu>  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@lists.xensource.com
> http://lists.xensource.com/xen-devel
>    

  reply	other threads:[~2011-02-17 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17  4:38 XEN building "make world" broken? Yuvraj Agarwal
2011-02-17  5:04 ` Todd Deshane
2011-02-17 19:56   ` John C. McCullough [this message]
2011-02-18 15:24     ` Ian Jackson
2011-02-18 15:44       ` Ward Vandewege
2011-02-18 15:56         ` Ian Jackson
2011-02-17 22:51 ` Teck Choon Giam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D5D7D73.3020700@cs.ucsd.edu \
    --to=jmccullo@cs.ucsd.edu \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.