Hello! The latest xen-unstable (changeset:20345:e74a1223a09c) does not compile for me. It stops during retrieving linux-2.6-pvops: + git clone http://www.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp Initialized empty Git repository in /data/xu-smt-02/linux-2.6-pvops.git.tmp/.git/ got f8d90bc6b5897d46b5cbb53a18494fdbc15f5964 Getting alternates list for http://www.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git [...] walk ac1abbeeb152ea640a13c677c3612a0b6e09aef5 walk 190846e03852691f4e54c8b4a8ed316a904edb47 error: Unable to find dee5847df4461d56802c534c7ac0e15830591533 under http://www.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git Cannot obtain needed object dee5847df4461d56802c534c7ac0e15830591533 while processing commit 190846e03852691f4e54c8b4a8ed316a904edb47. fatal: Fetch failed. make[2]: *** [linux-2.6-pvops.git/.valid-src] Error 128 make[2]: Leaving directory `/data/xu-smt-02'' make[1]: *** [linux-2.6-pvops-install] Error 2 make[1]: Leaving directory `/data/xu-smt-02'' make: *** [install-kernels] Error 1 Just did a ''hg pull && hg update && make world''. Did I do something wrong? Is linux-2.6-pvops not supported any longer? What must I do to get a ready to use xen-unstable with 2.6-pvops? (Environment: Debian 5.0.1 on i686). Kind regards Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 20/10/2009 11:37, "Andreas Florath" <xen@flonatel.org> wrote:> Just did a ''hg pull && hg update && make world''. Did I do something > wrong? Is linux-2.6-pvops not supported any longer? What must I do to > get a ready to use xen-unstable with 2.6-pvops?If you revert c/s 20296, does it then work for you? Reverting that changeset will cause you to grab the Linux tree via git protocol rather than http. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Oct-20 13:17 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Hello! Reverted to c/s 20296. Better now: + rmdir linux-2.6-pvops.git.tmp + git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp Initialized empty Git repository in /data/xu-smt-02/linux-2.6-pvops.git.tmp/.git/ remote: Counting objects: 1506427, done. remote: Compressing objects: 100% (252812/252812), done. remote: Total 1506427 (delta 1256517), reused 1492515 (delta 1242759) Receiving objects: 100% (1506427/1506427), 314.56 MiB | 1851 KiB/s, done. Resolving deltas: 100% (1256517/1256517), done. Checking out files: 100% (29196/29196), done. + cd linux-2.6-pvops.git.tmp + git checkout xen/master Already on "xen/master" But later on it asks silly questions: Lguest guest support (LGUEST_GUEST) [N/y/?] (NEW) Paravirtualization layer for spinlocks (PARAVIRT_SPINLOCKS) [N/y/?] (NEW) SCSI tape drive support for Smart Array 5xxx (CISS_SCSI_TAPE) [N/y/?] (NEW) Fusion MPT ScsiHost drivers for FC (FUSION_FC) [N/m/y/?] (NEW) Maximum number of scatter gather entries (16 - 128) (FUSION_MAX_SGE) [128] (NEW) Fusion MPT misc device (ioctl) driver (FUSION_CTL) [N/m/?] (NEW) Fusion MPT logging facility (FUSION_LOGGING) [N/y/?] (NEW) Net channel 2 support (XEN_NETCHANNEL2) [Y/n/m/?] (NEW) Net channel 2 backend support (XEN_NETDEV2_BACKEND) [Y/n] (NEW) Net channel 2 frontend support (XEN_NETDEV2_FRONTEND) [Y/n] (NEW) Net channel 2 bypassee support (XEN_NETDEV2_BYPASSABLE) [Y/n/?] (NEW) Net channel 2 bypass endpoint support (XEN_NETDEV2_BYPASS_ENDPOINT) [Y/n/?] (NEW) Automatically manage netchannel2 bypasses (XEN_NETDEV2_AUTOMATIC_BYPASS) [Y/n/?] (NEW) PCI-device backend driver (XEN_PCIDEV_BACKEND) [Y/n/m/?] (NEW) PCI Backend Mode > 1. Virtual PCI (XEN_PCIDEV_BACKEND_VPCI) (NEW) 2. Passthrough (XEN_PCIDEV_BACKEND_PASS) (NEW) 3. Slot (XEN_PCIDEV_BACKEND_SLOT) (NEW) choice[1-3]: PCI Backend Debugging (XEN_PCIDEV_BE_DEBUG) [N/y] (NEW) Using all the defaults here. Starts to compile the kernel now. Keep my fingers crossed... Regards Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Oct-20 13:54 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Nope! The version it pulls now is: linux-2.6-pvops.git# git log | head -6 commit f8d90bc6b5897d46b5cbb53a18494fdbc15f5964 Merge: 3dd8101... b260298... Author: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Date: Tue Oct 20 16:03:55 2009 +0900 Merge branch ''xen/core'' into xen/master And stops with: LD drivers/xen/pciback/built-in.o CC drivers/xen/xenbus/xenbus_client.o CC drivers/xen/xenbus/xenbus_comms.o CC drivers/xen/xenbus/xenbus_xs.o CC drivers/xen/xenbus/xenbus_probe.o cc1: error: include/linux/autoconf.h: No such file or directory In file included from /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/thread_info.h:22, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/thread_info.h:56, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/preempt.h:9, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/spinlock.h:50, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mmzone.h:7, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/gfp.h:4, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mm.h:8, from /data/xu-smt-02/linux-2.6-pvops.git/drivers/xen/xenbus/xenbus_probe.c:42: /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h:115: error: ''CONFIG_X86_L1_CACHE_SHIFT'' undeclared here (not in a function) /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h:115: error: requested alignment is not a constant In file included from /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/thread_info.h:22, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/thread_info.h:56, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/preempt.h:9, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/spinlock.h:50, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mmzone.h:7, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/gfp.h:4, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mm.h:8, from /data/xu-smt-02/linux-2.6-pvops.git/drivers/xen/xenbus/xenbus_probe.c:42: /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h:161:1: warning: "cache_line_size" redefined In file included from /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h:28, from /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/thread_info.h:22, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/thread_info.h:56, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/preempt.h:9, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/spinlock.h:50, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mmzone.h:7, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/gfp.h:4, from /data/xu-smt-02/linux-2.6-pvops.git/include/linux/mm.h:8, from /data/xu-smt-02/linux-2.6-pvops.git/drivers/xen/xenbus/xenbus_probe.c:42: /data/xu-smt-02/linux-2.6-pvops.git/include/linux/cache.h:64:1: warning: this is the location of the previous definition /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h: In function ''load_cr3'': /data/xu-smt-02/linux-2.6-pvops.git/arch/x86/include/asm/processor.h:192: error: ''CONFIG_PAGE_OFFSETUL'' undeclared (first use in this function) :-( Regards - Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Oct-20 15:35 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Hu - I like to answer my own mails... After ''make world'' stops and after sending the bug report - I did a ''make dist''. And: it compiled - and boots - and xm-tests are running. I''ll start all over tomorrow and check the build problem again. Kind regards - Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mr. Teo En Ming (Zhang Enming)
2009-Oct-20 16:19 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Hi Andreas, Why don''t you do compilation of xen-unstable and pvops kernel separately? E.g. Compiling xen-unstable =================== prerequisites: install pciutils and pciutils-devel first>From Boris'' instructions (adapted to your case):# hg clone http://xenbits.xensource.com/xen-unstable.hg # cd xen-unstable.hg # make xen # make install-xen # make tools # make install-tools Compiling pvops kernel 2.6.31.1 ========================== Also from Boris'' instructions: # git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen # cd linux-2.6-xen No need to do a checkout at all as the default is xen/master and at the moment it is pvops 2.6.31.1 if I am not wrong. Then my own steps: # make mrproper # vi Makefile # change the extraversion string Try my 2.6.31.1 xen pvops kernel config as attached in this email and rename it to .config in linux-2.6-xen/ source directory Then # make oldconfig For any NEW kernel features, just accept the defaults by pressing ENTER # make # make modules_install # make install Then edit your grub configuration to reflect your newly installed Xen pvops dom0 kernel. You need to use a kernel and two modules statement instead of the conventional kernel and initrd statements. -- Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering) Alma Maters: (1) Singapore Polytechnic (2) National University of Singapore Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com Email: space.time.universe@gmail.com MSN: teoenming@hotmail.com Mobile Phone: +65-9648-9798 Street: Bedok Reservoir Road Republic of Singapore On Tue, Oct 20, 2009 at 11:35 PM, Andreas Florath <xen@flonatel.org> wrote:> Hu - I like to answer my own mails... > > After ''make world'' stops and after sending the bug report - I did a ''make > dist''. And: it compiled - and boots - and xm-tests are running. > > I''ll start all over tomorrow and check the build problem again. > > Kind regards - Andreas > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Nice complete set of instructions. One change added below. On Tue, Oct 20, 2009 at 9:19 AM, Mr. Teo En Ming (Zhang Enming) <space.time.universe@gmail.com> wrote:> Hi Andreas, > > Why don''t you do compilation of xen-unstable and pvops kernel separately? > > E.g. > > Compiling xen-unstable > ===================> > prerequisites: install pciutils and pciutils-devel first > > >From Boris'' instructions (adapted to your case): > > # hg clone http://xenbits.xensource.com/xen-unstable.hg > # cd xen-unstable.hgI would add one modification to the Xen build here. Since you''re building the 2.6.31.1 kernel separately there''s no need to build the default xen kernels, so you can disable that part of the build with: export KERNELS="" I also like to build the xen deliverables in a location that is easily installable to other targets: export DISTDIR=/install-from-location (some shared filesystem) # make dist Then from each target: cd /install-from-location install.sh> # make xen > # make install-xen > # make tools > # make install-tools > > Compiling pvops kernel 2.6.31.1 > ==========================> > Also from Boris'' instructions: > > # git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git > linux-2.6-xen > # cd linux-2.6-xen > > No need to do a checkout at all as the default is xen/master and at > the moment it is pvops 2.6.31.1 if I am not wrong. > > Then my own steps: > > # make mrproper > # vi Makefile # change the extraversion string > > Try my 2.6.31.1 xen pvops kernel config as attached in this email and > rename it to .config in linux-2.6-xen/ source directory > > Then > > # make oldconfig > > For any NEW kernel features, just accept the defaults by pressing ENTER > > # make > # make modules_install > # make install > > Then edit your grub configuration to reflect your newly installed Xen > pvops dom0 kernel. You need to use a kernel and two modules statement > instead of the conventional kernel and initrd statements. > > -- > Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical > Engineering) > Alma Maters: > (1) Singapore Polytechnic > (2) National University of Singapore > Blog URL: http://teo-en-ming-aka-zhang-enming.blogspot.com > Email: space.time.universe@gmail.com > MSN: teoenming@hotmail.com > Mobile Phone: +65-9648-9798 > Street: Bedok Reservoir Road > Republic of Singapore > > > > On Tue, Oct 20, 2009 at 11:35 PM, Andreas Florath <xen@flonatel.org> wrote: >> Hu - I like to answer my own mails... >> >> After ''make world'' stops and after sending the bug report - I did a ''make >> dist''. And: it compiled - and boots - and xm-tests are running. >> >> I''ll start all over tomorrow and check the build problem again. >> >> Kind regards - Andreas >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xensource.com >> http://lists.xensource.com/xen-devel >> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Oct-21 10:31 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Hi! Started all over with c/s 20346:d7d7f978d704: it works perfect - everything compiles (only the questions are annoying...). Please ignore my previous post about a compile error during a ''make world'' - looks that some relict had some influence on the build process. Sorry for this. Kind regards - Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andreas Florath
2009-Oct-21 10:35 UTC
Re: [Xen-devel] Latest xen-unstable does not compile
Hello!> Why don''t you do compilation of xen-unstable and pvops kernel separately?Because I''m lazy and IMHO the makefile should do it better than I can ever do :-) Kind regards - Andreas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel