Scott A. Wozny
2010-Dec-04 17:18 UTC
[Xen-users] Make world problem compiling Xen 4.0.1 from source
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: Initialized empty Git repository in /home/sawozny/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 1554357), reused 1848761 (delta 1547505) Receiving objects: 100% (1856803/1856803), 368.76 MiB | 366 KiB/s, done. Resolving deltas: 100% (1554357/1554357), 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 make[3]: *** [linux-2.6-pvops.git/.valid-src] Error 128 make[3]: Leaving directory `/home/sawozny/xen-4.0.1'' make[2]: *** [linux-2.6-pvops-install] Error 2 make[2]: Leaving directory `/home/sawozny/xen-4.0.1'' make[1]: *** [install-kernels] Error 1 make[1]: Leaving directory `/home/sawozny/xen-4.0.1'' make: *** [world] Error 2 So, I was wondering if anyone knew if this is an issue with the actual source tarball I have or if I need to be doing something else before the make world to prepare. Any and all assistance would be GREATLY appreciated! Thanks, Scott _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2010-Dec-04 18:36 UTC
Re: [Xen-users] Make world problem compiling Xen 4.0.1 from source
--- On Sat, 12/4/10, Scott A. Wozny <sawozny@hotmail.com> wrote: From: Scott A. Wozny <sawozny@hotmail.com> Subject: [Xen-users] Make world problem compiling Xen 4.0.1 from source To: xen-users@lists.xensource.com 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@lists.xensource.com http://lists.xensource.com/xen-users
Scott A. Wozny
2010-Dec-04 21:16 UTC
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@yahoo.com > Subject: Re: [Xen-users] Make world problem compiling Xen 4.0.1 from source > To: sawozny@hotmail.com > CC: xen-users@lists.xensource.com > > > --- On Sat, 12/4/10, Scott A. Wozny <sawozny@hotmail.com> wrote: > > From: Scott A. Wozny <sawozny@hotmail.com> > Subject: [Xen-users] Make world problem compiling Xen 4.0.1 from source > To: xen-users@lists.xensource.com > 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@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Teck Choon Giam
2010-Dec-06 15:50 UTC
Re: [Xen-users] Make world problem compiling Xen 4.0.1 from source
> + 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 > * >Can you go into linux-2.6-pvops.git directory and do: git branch -a And show us the output? I guess the remote branches are there but with git checkout -b option to create a local branch name conflict with remote branch somehow if I am not wrong. Someone correct me if I am wrong. Here is the patch which I only tested with unpack the xen-4.0.1.tar.gz then cd to the source then make prep-kernels after applying the below patch: --- a/buildconfigs/src.git-clone 2010-12-06 23:37:52.000000000 +0800 +++ b/buildconfigs/src.git-clone 2010-12-06 23:38:47.000000000 +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 -b local/$(XEN_LINUX_GIT_LOCALBRANCH) --track $(XEN_LINUX_GITREV) ); \ mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \ fi touch $@ OR without the patch you can do: # make V=2 XEN_LINUX_GIT_LOCALBRANCH=local/xen/stable-2.6.32.x prep-kernels Basically, just overwrite the default XEN_LINUX_GIT_LOCALBRANCH variable which is default to: XEN_LINUX_GIT_LOCALBRANCH ?= $(XEN_LINUX_GIT_REMOTEBRANCH) # grep XEN_LINUX_GIT_LOCALBRANCH ./*/* ./buildconfigs/src.git-clone:XEN_LINUX_GIT_LOCALBRANCH ?$(XEN_LINUX_GIT_REMOTEBRANCH) ./buildconfigs/src.git-clone: (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \ Hope the above is useful ;) Thanks. Kindest regards, Giam Teck Choon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Scott A. Wozny
2010-Dec-11 18:04 UTC
RE: [Xen-users] Make world problem compiling Xen 4.0.1 from source
Just to close the loop on this, I found something in the Ubuntu forums I tried before heading down the path you''ve described. I think it''s basically the same thing as what you''ve suggested, I was just more comfortable with directly editing the file. After the untar of the source: nano buildconfigs/src.git-clone # Replace Line # (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \ # with: # (cd $(LINUX_SRCDIR).tmp; git checkout -b local/$(XEN_LINUX_GIT_LOCALBRANCH) --track $(XEN_LINUX_GITREV) ); \ make world sudo make install and everything went swimmingly. I guess there''s some sort of issue with the source tarball as I''ve seen similar solutions posted in multiple places all dealing with the remote vs. local branch issue. While I''m sure your solution would have worked, this one seemed easiet for me to implement and the makes went through without errors so I think I''m OK now. Now to get it to boot... :) Thanks very much! Scott Date: Mon, 6 Dec 2010 23:50:29 +0800 Subject: Re: [Xen-users] Make world problem compiling Xen 4.0.1 from source From: giamteckchoon@gmail.com To: sawozny@hotmail.com CC: tlviewer@yahoo.com; xen-users@lists.xensource.com + 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 Can you go into linux-2.6-pvops.git directory and do: git branch -a And show us the output? I guess the remote branches are there but with git checkout -b option to create a local branch name conflict with remote branch somehow if I am not wrong. Someone correct me if I am wrong. Here is the patch which I only tested with unpack the xen-4.0.1.tar.gz then cd to the source then make prep-kernels after applying the below patch: --- a/buildconfigs/src.git-clone 2010-12-06 23:37:52.000000000 +0800 +++ b/buildconfigs/src.git-clone 2010-12-06 23:38:47.000000000 +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 -b local/$(XEN_LINUX_GIT_LOCALBRANCH) --track $(XEN_LINUX_GITREV) ); \ mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \ fi touch $@ OR without the patch you can do: # make V=2 XEN_LINUX_GIT_LOCALBRANCH=local/xen/stable-2.6.32.x prep-kernels Basically, just overwrite the default XEN_LINUX_GIT_LOCALBRANCH variable which is default to: XEN_LINUX_GIT_LOCALBRANCH ?= $(XEN_LINUX_GIT_REMOTEBRANCH) # grep XEN_LINUX_GIT_LOCALBRANCH ./*/* ./buildconfigs/src.git-clone:XEN_LINUX_GIT_LOCALBRANCH ?= $(XEN_LINUX_GIT_REMOTEBRANCH) ./buildconfigs/src.git-clone: (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \ Hope the above is useful ;) Thanks. Kindest regards, Giam Teck Choon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maybe Matching Threads
- how to reduce time of git pulling each time when you do a make world on Xen source
- Xen 4.0 build error
- make world troubles
- Still un-answered: How-To build Xen (3.2) to override XenSource''s linux-kernel (2.6.18) with a xenified kernel (your own or distribution)
- Building Modules Against Xen Sources