Hello, I am trying to compile xen 4.2 unstable from mercurial. I can't get past the 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: In function â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 each function it appears in /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: In function â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: In function â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: In function â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: In function â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-unstable.hg/tools' make[1]: *** [subdirs-install] Error 2 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 talking about qemu-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@lists.xen.org http://lists.xen.org/xen-users
cyberhawk001@gmail.com
2012-Jun-03 21:25 UTC
Re: Xen unstable fails to build on ubutnu 12.04
cyberhawk001@gmail.com
2012-Jun-04 11:46 UTC
Re: Xen unstable fails to build on ubutnu 12.04
cyberhawk001@gmail.com
2012-Jun-05 12:19 UTC
Re: Xen unstable fails to build on ubutnu 12.04
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 each function > it 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? > > --Will > > >>>> 06/04/12 11:45 AM>>> > WELL, actually NO need to install Wheezy. I am very sure you can get it > working 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 you are > just missing a bunch of dependent packages. The packages i use and have > installed 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 libyajl-dev libaio-dev gcc-multilib iasl libpci-dev flex > bison qt4-dev-tools patch ocaml-findlib libsdl1.2-dev > > Granted some of the above packages are more important for compiling the > kernel. > > SO, as long as you have all required packages and follow the > instructions before about getting and compiling Xen 4.2 revision 25392, > 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 each > function >> it 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. >> >> --Will >> >>>>> 06/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 from >> that >>> URL today. >>> >>> --Will >> Well than you probably already have the latest revision. You can also >> check what revision your locally cloned repository is at by going to > the >> folder and running: >> >> *cd ../xen-unstable.hg >> hg summary >> * >> And that will show you a summary of the local mercurial clone and show >> the 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 the Xen-devel >> about 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 remove one >> patch. You can try to download and compile THAT version by running the >> following 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 just > strings together the 4 compiling commands >> to 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 use more >> than one core to compile with. It speeds up the compili> have a multi-core CPU. SO in my case, i have a Quad Core CPU, so that >> command 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 the > end >> of 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 i > there >> aren'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* at > the >>> link *http://xenbits.xen.org/hg/xen-unstable.hg/* What reversion of >> Xen >>> 4.2-Unstable are you trying to compile? >>> >>> >>>> Hello, >>>> >>>> I am trying to compile xen 4.2 unstable from mercurial. I can't get >>> past >>>> the 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: >>> In >>>> function â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 each >>> function >>>> it appears in >>>> /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: >>> In >>>> function â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: >>> In >>>> function â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: >>> In >>>> function â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: >>> In >>>> function â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-unstable.hg/tools' >>>> make[1]: *** [subdirs-install] Error 2 >>>> 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 talking >>> about >>>> qemu-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@lists.xen.org >>>> http://lists.xen.org/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Kristian Hagsted Rasmussen
2012-Jun-05 14:34 UTC
Re: Xen unstable fails to build on ubutnu 12.04
Hi I had this problem, and found a patch here. http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html Which I applied manually. It seems to be a problem with the gcc version. Best regards Kristian -----Oprindelig meddelelse----- Fra: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] På vegne af cyberhawk001@gmail.com Sendt: 5. juni 2012 14:20 Til: xen-users@lists.xen.org Emne: Re: [Xen-users] Xen unstable fails to build on ubutnu 12.04 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 each > function it 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? > > --Will > > >>>> 06/04/12 11:45 AM>>> > WELL, actually NO need to install Wheezy. I am very sure you can get > it working 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 you > are just missing a bunch of dependent packages. The packages i use and > have installed 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 libyajl-dev libaio-dev gcc-multilib iasl libpci-dev > flex bison qt4-dev-tools patch ocaml-findlib libsdl1.2-dev > > Granted some of the above packages are more important for compiling > the kernel. > > SO, as long as you have all required packages and follow the > instructions before about getting and compiling Xen 4.2 revision > 25392, 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 each > function >> it 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. >> >> --Will >> >>>>> 06/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 from >> that >>> URL today. >>> >>> --Will >> Well than you probably already have the latest revision. You can also >> check what revision your locally cloned repository is at by going to > the >> folder and running: >> >> *cd ../xen-unstable.hg >> hg summary >> * >> And that will show you a summary of the local mercurial clone and >> show the 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 the >> Xen-devel about 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 remove one >> patch. You can try to download and compile THAT version by running >> the following 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 just > strings together the 4 compiling commands >> to 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 use more than one core to compile with. It speeds up the compili> >> have a multi-core CPU. SO in my case, i have a Quad Core CPU, so that >> command 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 the > end >> of 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 i > there >> aren'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* at > the >>> link *http://xenbits.xen.org/hg/xen-unstable.hg/* What reversion of >> Xen >>> 4.2-Unstable are you trying to compile? >>> >>> >>>> Hello, >>>> >>>> I am trying to compile xen 4.2 unstable from mercurial. I can't get >>> past >>>> the 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: >>> In >>>> function â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 each >>> function >>>> it appears in >>>> /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: >>> In >>>> function â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: >>> In >>>> function â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: >>> In >>>> function â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: >>> In >>>> function â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-unstable.hg/tools' >>>> make[1]: *** [subdirs-install] Error 2 >>>> 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 talking >>> about >>>> qemu-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@lists.xen.org >>>> http://lists.xen.org/xen-users >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Sun, 2012-06-03 at 22:16 +0100, Will McDermott wrote:> Hello, > > I am trying to compile xen 4.2 unstable from mercurial. I can't get past > the make tools step. When I run make tools, the build fails with:Thanks Will, this looks like a new one, I've not noticed any reports of this before. CCing xen-devel@ and our Qemu folks. Guys, this looks like http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html or https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/930181 (which Will references below). I didn't look if any patch has gone in upstream or not. I can't explain why other Ubuntu users aren't seeing this though. Ian.> > 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: In > function â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 each function > it appears in > /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: In > function â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: In > function â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: In > function â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: In > function â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-unstable.hg/tools' > make[1]: *** [subdirs-install] Error 2 > 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 talking about > qemu-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@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ian Campbell
2012-Jun-06 08:50 UTC
Re: [Xen-users] Xen unstable fails to build on ubutnu 12.04
On Sun, 2012-06-03 at 22:16 +0100, Will McDermott wrote:> Hello, > > I am trying to compile xen 4.2 unstable from mercurial. I can't get past > the make tools step. When I run make tools, the build fails with:Thanks Will, this looks like a new one, I've not noticed any reports of this before. CCing xen-devel@ and our Qemu folks. Guys, this looks like http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html or https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/930181 (which Will references below). I didn't look if any patch has gone in upstream or not. I can't explain why other Ubuntu users aren't seeing this though. Ian.> > 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: In > function â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 each function > it appears in > /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: In > function â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: In > function â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: In > function â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: In > function â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-unstable.hg/tools' > make[1]: *** [subdirs-install] Error 2 > 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 talking about > qemu-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@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Stefano Stabellini
2012-Jun-06 10:34 UTC
Re: [Xen-users] Xen unstable fails to build on ubutnu 12.04
On Wed, 6 Jun 2012, Ian Campbell wrote:> On Sun, 2012-06-03 at 22:16 +0100, Will McDermott wrote: > > Hello, > > > > I am trying to compile xen 4.2 unstable from mercurial. I can''t get past > > the make tools step. When I run make tools, the build fails with: > > Thanks Will, this looks like a new one, I''ve not noticed any reports of > this before. CCing xen-devel@ and our Qemu folks. > > Guys, this looks like > http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html or > https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/930181 (which > Will references below). I didn''t look if any patch has gone in upstream > or not. > > I can''t explain why other Ubuntu users aren''t seeing this though.You must have libcap and libattr installed, because that''s what it takes to enable virtfs in QEMU by default. And virtfs at the moment doesn''t compile without that patch. I''ll ping the QEMU maintainers about it, and also submit a patch to our build system to disable virtfs.
On Wed, 6 Jun 2012, Ian Campbell wrote:> On Sun, 2012-06-03 at 22:16 +0100, Will McDermott wrote: > > Hello, > > > > I am trying to compile xen 4.2 unstable from mercurial. I can''t get past > > the make tools step. When I run make tools, the build fails with: > > Thanks Will, this looks like a new one, I''ve not noticed any reports of > this before. CCing xen-devel@ and our Qemu folks. > > Guys, this looks like > http://lists.gnu.org/archive/html/qemu-devel/2012-02/msg03460.html or > https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/930181 (which > Will references below). I didn''t look if any patch has gone in upstream > or not. > > I can''t explain why other Ubuntu users aren''t seeing this though.You must have libcap and libattr installed, because that''s what it takes to enable virtfs in QEMU by default. And virtfs at the moment doesn''t compile without that patch. I''ll ping the QEMU maintainers about it, and also submit a patch to our build system to disable virtfs.
cyberhawk001@gmail.com
2012-Jun-07 15:40 UTC
Re: 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! > > --Will > >>>> 06/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 each > function >> it 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? >> >> --Will >> >> >>>>> 06/04/12 11:45 AM>>> >> WELL, actually NO need to install Wheezy. I am very sure you can get > it >> working 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 you > are >> just missing a bunch of dependent packages. The packages i use and > have >> installed 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 compiling > the >> kernel. >> >> SO, as long as you have all required packages and follow the >> instructions before about getting and compiling Xen 4.2 revision > 25392, >> 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 each >> function >>> it 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. >>> >>> --Will >>> >>>>>> 06/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 from >>> that >>>> URL today. >>>> >>>> --Will >>> Well than you probably already have the latest revision. You can also >>> check what revision your locally cloned repository is at by going to >> the >>> folder and running: >>> >>> *cd ../xen-unstable.hg >>> hg summary >>> * >>> And that will show you a summary of the local mercurial clone and > show >>> the 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 the > Xen-devel >>> about 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 running > the >>> following 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 just >> strings together the 4 compiling commands >>> to 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 use > more >>> than one core to compile with. It speeds up the compili> have a > multi-core CPU. SO in my case, i have a Quad Core CPU, so that >>> command 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 the >> end >>> of 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 i >> there >>> aren'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* at >> the >>>> link *http://xenbits.xen.org/hg/xen-unstable.hg/* What reversion of >>> Xen >>>> 4.2-Unstable are you trying to compile? >>>> >>>> >>>>> Hello, >>>>> >>>>> I am trying to compile xen 4.2 unstable from mercurial. I can't get >>>> past >>>>> the 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: >>>> In >>>>> function â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 each >>>> function >>>>> it appears in >>>>> > /root/xen-unstable.hg/tools/qemu-xen-dir/hw/9pfs/virtio-9p-handle.c: >>>> In >>>>> function â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: >>>> In >>>>> function â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: >>>> In >>>>> function â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: >>>> In >>>>> function â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 talking >>>> about >>>>> qemu-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@lists.xen.org >>>>> http://lists.xen.org/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Thu, Jun 7, 2012 at 5:40 PM, <cyberhawk001@gmail.com> wrote:> 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... :) >I compiled 25459 on Ubuntu 12.04 today and still needed the patch. Other than that it compiles properly. It didn''t work though, as I described in another mail to this list. For reference, I needed these packages to build deb: apt-get build-dep xen apt-get install build-essential mercurial pkg-config libglib2.0-dev libyajl-dev git flex texinfo fakeroot This was in addition to whatever I got by installing xen-hypervisor-4.1-amd64 and xen-tools earlier. Other than that, it''s a fresh 12.04 server install.