[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Xen unstable fails to build on ubutnu 12.04
JUST a heads up, the latest relase of xen-unstable.hg is " 25459" as of today, AND i just tried compiling it and it finally works and compiles without errors or any additional patches.Granted, only tried it on Debian Wheezy. If you are advanterious, you could try it on Ubuntu 12.04. SO, and awesome thumbs up for the Xen-devel team for fixing all of the issues prevent compile... :) On 6/5/2012 12:53 PM, Will McDermott wrote: Finally got it to build, needed this patch: http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html and the texi2html and texinfo packages. Good to know the compilation process on Debian is a bit nicer :) Thank you so much for your help! --Will06/05/12 5:31 AM>>>humm, well that sucks. I know compiling changeset 25392 works for me, with the packages and instructions i described, i have compiled it several times now. I know the main reason why the later changests won't compile is because of the different GCC version seem to do different enough to fail, SO maybe Ubuntu has a different subset of GCC. I have no idea. Well, if it was no trouble for you, maybe try to install Debian Wheezy and try to compile again. Otherwise i could always send you the Xen 4.2 rev-25392 compiled DEB package and you can just install that, BUT that wouldn't solve your problem if you wanted to compile it later on.Hmm same error:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_update_file_credÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:note: each undeclared identifier is reported only once for eachfunctionit appears in/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_lstatÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:87:34:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_symlinkÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:314:62:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_linkÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:337:45:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_chownÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:373:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function) make[4]: *** [9pfs/virtio-9p-handle.o] Error 1 make[4]: *** Waiting for unfinished jobs.... CC hmp.o CC libdis/i386-dis.o LINK qemu-ga LINK qemu-nbd LINK qemu-img LINK qemu-io make[3]: *** [subdir-libhw64] Error 2 make[3]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir-remote' make[2]: *** [subdir-install-qemu-xen-dir] Error 2 make[2]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools' make: *** [install-tools] Error 2 I had most of the packags, I ran "apt-get build-dep xen" from: http://wiki.xen.org/wiki/Compiling_Xen_From_Source But it still errors on the virtio file. I had also read that these errors had to different with different library/gcc versions. Maybe wheezy just has newer/different versions of those binaries/libs? --Will06/04/12 11:45 AM>>>WELL, actually NO need to install Wheezy. I am very sure you can getitworking just as easily with Ubuntu. The other thing i forgot to mention is you have to have all of the required packages installed before you can compile Xen. I think youarejust missing a bunch of dependent packages. The packages i use andhaveinstalled are as follows: sudo apt-get install wget tar bzip2 build-essential libncurses5-dev kernel-package fakeroot bcc gcc ssh bridge-utils python-dev uuid-dev libglib2.0-dev l> bison qt4-dev-tools patch ocaml-findlib libsdl1.2-dev Granted some of the above packages are more important for compilingthekernel. SO, as long as you have all required packages and follow the instructions before about getting and compiling Xen 4.2 revision25392,it should be fine, no matter if you are using Debian or Ubuntu. Ubuntu however "might" need more packages, not sure, i have not compiled Xen under Ubuntu yet. On 6/4/2012 12:43 PM, Will McDermott wrote:Darn, made it farther but now I get this: CC libhw64/9pfs/virtio-9p-synth.o CC libhw64/9pfs/virtio-9p-handle.o CC qemu-char.o/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_update_file_credÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:note: each undeclared identifier is reported only once for eachfunctionit appears in/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_lstatÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:87:34:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_symlinkÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:314:62:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_linkÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:337:45:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:In function Ãhandle_chownÃ:/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:373:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function) make[4]: *** [9pfs/virtio-9p-handle.o] Error 1 make[4]: *** Waiting for unfinished jobs.... CC savevm.o CC msmouse.o CC ps2.o make[3]: *** [subdir-libhw64] Error 2 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools/qemu-xen-dir-remote' make[2]: *** [subdir-install-qemu-xen-dir] Error 2 make[2]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/root/xen-unstable.hg-rev-25392/tools' make: *** [install-tools] Error 2 With revision 25392. Thank you so much for your clear instructions! I will install wheezy tonight and try the build again. --Will06/04/12 4:56 AM>>>On 6/4/2012 2:58 AM, Will McDermott wrote:I'm not sure what version (how do I check?) but I just cloned fromthatURL today. --WillWell than you probably already have the latest revision. You can also check what revision your locally cloned repository is at by going tothefolder and running: *cd ../xen-unstable.hg hg summary * And that will show you a summary of the local mercurial clone andshowthe latest revisions that was cloned. SO, anyhow, compiling the Xen 4.2-unstable from the mercurial has not been working very well for a few weeks now. I have asked theXen-develabout that a several times and there are issues and problems with different GCC compilers AND the Xen-devel team knows all that and are working on fixing that. For now, the LAST revision i was able to compile and get running was *"revision 25392*", but even that was possibly ONLY if you remo>> patch. You can try to download and compile THAT version by runningthefollowing commands: _*Cloning Xen:*_ *- cd /some/directory/in/home - rev=25392&& hg clone -r $rev http://xenbits.xen.org/hg/xen-unstable.hg/ xen-unstable.hg-rev-${rev} - cd xen-unstable.hg-rev-25392 - hg backout -r 25364* This will clone the xen-unstable.hg mercurial and download Xen 4.2-unstable revision 25392 into the folder "*xen-unstable.hg-rev-25392*". Running the command "*hg backour -r 25364*" removes or backs out that particular patch. It seems that without that, even that revision wont compile. _*Compiling Xen:*_ Than just simply run these commands to compile Xen. *- cd xen-unstable.hg-rev-25392* *- ./configure - sudo make -j5 xen&& sudo make The compile command above juststrings together the 4 compiling commandsto run and will execute one after the other SO you don't have to manually run each and every one. Also, In the above "*make*"commands,using the "*-j5*" option after each make tells the compile to usemorethan one core to compile with. It speeds up the compili> have amulti-core CPU. SO in my case, i have a Quad Core CPU, so thatcommand option is "*-j1 + number of CPU cores*". You can modify or remove that as you wish. The above will also create for you a nice DEB package after all the compiling is done, if you do not want to create a DEB package at theendof it all, than just remove the last "*&& sudo make -j5 deb*"command.Granted, i am running and doing all of this on Debian Wheezy BUT itherearen't any differences in compiling it on Ubuntu 12.04.06/03/12 2:34 PM>>>The latest revision of Xen 4.2-unstable is *25452:6bea63e6c780* atthelink *http://xenbits.xen.org/hg/xen-unstable.hg/* What reversion ofXen4.2-Unstable are you trying to compile?Hello, I am trying to compile xen 4.2 unstable from mercurial. I can't getpastthe make tools step. When I run make tools, the build fails with: CC libhw64/9pfs/coxattr.o CC libhw64/9pfs/virtio-9p-synth.o CC libhw64/9pfs/virtio-9p-handle.o/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:Infunction Ãhandle_update_file_credÃ:/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:70:58:note: each undeclared identifier is reported only once for eachfunctionit appears in/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:Infunction Ãhandle_lstatÃ:/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:87:34:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:Infunction Ãhandle_symlinkÃ:/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:314:62:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:Infunction Ãhandle_linkÃ:/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:337:45:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function)/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:Infunction Ãhandle_chownÃ:/root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c:373:58:error: ÃAT_EMPTY_PATHÃ undeclared (first use in this function) make[4]: *** [9pfs/virtio-9p-handle.o] Error 1 make[3]: *** [subdir-libhw64] Error 2 make[3]: Leaving directory `/root/xen-unstable.hg/tools/qemu-xen-dir-remote' make[2]: *** [subdir-install-qemu-xen-dir] Error 2 make[2]: Leaving directory `/root/xen-unstabl>>>> make[1]: Leaving directory `/root/xen-unstable.hg/tools' make: *** [install-tools] Error 2 I am running ubuntu 12.04, kernel ver: 3.2.0-24-generic Any ideas? I have googled furiously and found some people talkingaboutqemu-kvm having the same issue: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/930181 But I was not able to find the patch Thanks in advance! Mercurialm _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |