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

Re: [Xen-users] Xen unstable fails to build on ubutnu 12.04



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 -j5 tools && sudo make -j5 stubdom && sudo make -j5 deb


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 compiling a lot if you 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@xxxxxxxxxxxxx
http://lists.xen.org/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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