[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] Make world problem compiling Xen 4.0.1 from source



Hi Mark,
 
Thanks for the suggestion.  I installed 10.04 with OpenSSH and ran through the instructions in the post you suggested.  Parts 1 and 2 seemed to go well (the /usr/src directory by default is owned by root and only allows write to owner so I worked under the assumption that the instructions in part 2 are expected to be run as root) but when I got to section 3 and make prep-kernels I got another error.  Here are the results below and it looks like the same fatal git error regarding "branch already exists" is preventing me from completing the process and nothing really works after that.  Unfortunately, I'm out of my depth in trying to understand what's wrong and googling the git error doesn't seem to produce anything relevant.  There seems to be something related to either the distro or my hardware that's causing compile from source to be problematic.  If anyone has any suggestions on how to get around this git problem I'd love to hear from you as I could then go back to either installation path and try again.
 
Stepping back from this particular issue, I like Ubuntu, but I'm not completely attached to it for this purpose.  Does anyone have any recommendations for a distro they've had better luck with installing Xen server on?  It seems to be relatively highly recommended in the community, but I'm just not having any luck with it.   Should I just get the live CD and install it as my Xen server and then figure out my guest OSes from there?
 
Thanks,
 
Scott
 
---------------
 
root@xen-host:/usr/src/xen-4.0.1#  make prep-kernels
for i in  linux-2.6-pvops  ; do make $i-prep || exit 1; done
make[1]: Entering directory `/usr/src/xen-4.0.1'
make -f buildconfigs/mk.linux-2.6-pvops prep
make[2]: Entering directory `/usr/src/xen-4.0.1'
set -ex; \
        if ! [ -d linux-2.6-pvops.git ]; then \
                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; \
                (cd linux-2.6-pvops.git.tmp; git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x ); \
                mv linux-2.6-pvops.git.tmp linux-2.6-pvops.git; \
        fi
+ [ -d linux-2.6-pvops.git ]
+ 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
Initialized empty Git repository in /usr/src/xen-4.0.1/linux-2.6-pvops.git.tmp/.git/
remote: Counting objects: 1856803, done.
remote: Compressing objects: 100% (292454/292454), done.
remote: Total 1856803 (delta 1554356), reused 1848760 (delta 1547505)
Receiving objects: 100% (1856803/1856803), 368.77 MiB | 928 KiB/s, done.
Resolving deltas: 100% (1554356/1554356), 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
+ 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  /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_64/.config; \
        elif [ -r /usr/src/xen-4.0.1/dist/install/boot/config-2.6.$CONFIG_VERSION ] ; then \
          cp /usr/src/xen-4.0.1/dist/install/boot/config-2.6.$CONFIG_VERSION /usr/src/xen-4.0.1/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 \
                /usr/src/xen-4.0.1/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" ; \
        fi
sed: can't read linux-2.6-pvops.git/Makefile: No such file or directory
make[2]: *** [build-linux-2.6-pvops_x86_64/include/linux/autoconf.h] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1'
make[1]: *** [linux-2.6-pvops-prep] Error 2
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [prep-kernels] Error 1
 
---------------
 
> Date: Sat, 4 Dec 2010 10:36:37 -0800
> From: tlviewer@xxxxxxxxx
> Subject: Re: [Xen-users] Make world problem compiling Xen 4.0.1 from source
> To: sawozny@xxxxxxxxxxx
> CC: xen-users@xxxxxxxxxxxxxxxxxxx
>
>
> --- On Sat, 12/4/10, Scott A. Wozny <sawozny@xxxxxxxxxxx> wrote:
>
> From: Scott A. Wozny <sawozny@xxxxxxxxxxx>
> Subject: [Xen-users] Make world problem compiling Xen 4.0.1 from source
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Date: Saturday, December 4, 2010, 9:18 AM
>
>
>
>
> Greetings, Xen gurus!
>  
> Per the Ubuntu community documentation at https://help.ubuntu.com/community/Xen#Maverick%20Notes%20(Xen%204.0.1%20pvops%20on%20Ubuntu%2010.10) I am trying to install Xen 4.0.1 from source which I got from bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz because apparently the ubuntu-xen-server package has broken dependencies.  The instructions as provided state that gettext, bin86, bcc, libc6-dev-i386, iasl, texinfo and git are needed and even after that, I found (presumably because the server was installed with only the core operating system and OpenSSH server) that make world wouldn't run properly and I also needed to install build-essential libssl-dev uuid-dev zlib1g-dev libncurses5-dev libx11-dev and python-dev.
>
>  
>
> So I've installed all those packages, re-expanded the tarball into an empty directory and tried running make world again but this time I'm running into a different kind of problem. There are thousands of lines of output, but here's the section at the end that seems most salient:
>
> ----------------
>
> `make world` is not the only way. Here is a xen-users post where they use the step-wise approach of breaking `make world` into parts
>
> http://lists.xensource.com/archives/html/xen-users/2010-08/msg00743.html
>
> --
> Mark
>
>
>
>
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.