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

Re: [Xen-API] Intel CQM feature enabling in XenAPI


  • To: "Ren, Qiaowei" <qiaowei.ren@xxxxxxxxx>, Euan Harris <euan.harris@xxxxxxxxxx>
  • From: Bob Ball <bob.ball@xxxxxxxxxx>
  • Date: Wed, 9 Apr 2014 08:48:54 +0000
  • Accept-language: en-GB, en-US
  • Cc: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • Deferred-delivery: Wed, 9 Apr 2014 08:48:00 +0000
  • Delivery-date: Wed, 09 Apr 2014 08:49:19 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: Ac9TLtIzmSJQhjuMSEa1094toeWeJv//80AAgADWhID//4gvcA==
  • Thread-topic: [Xen-API] Intel CQM feature enabling in XenAPI

Hi Qiaowei,

This sounds like it could be heading down a rabbit hole, trying to get 
xenserver-core building from XAPI trunk.  If I remember correctly, the current 
issue is that you need to take a newer ocaml-xcp-idl.

I've made a number of changes which I suspect you may need at 
https://github.com/BobBall/xenserver-core/commit/73ad5a198e8a68ab399f8c2a07e440e2fc7121f2.
  Note that these changes are to enable us to build from master of all 
repositories on a daily basis (e.g. the RPM version numbers will contain the 
build date).  If that's not your intention, you may need to modify the patch to 
suit your needs. 

Some of these are to make things build with Ocaml 4.0.1 as XAPI now depends on 
4.1 which is not available in any distribution.

I do not claim that these changes are all that are needed; I have not finished 
my investigations into building from master and I'll be getting back to it soon 
I hope.

Bob

> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-
> bounces@xxxxxxxxxxxxx] On Behalf Of Ren, Qiaowei
> Sent: 09 April 2014 04:33
> To: Euan Harris
> Cc: xen-api@xxxxxxxxxxxxx
> Subject: Re: [Xen-API] Intel CQM feature enabling in XenAPI
> 
> Hi Euan,
> 
> >
> > This is happening because building and installing xenserver-core does
> > not install xen-api's build dependencies.   xenserver-core builds RPMs
> > in temporary chroot environments, using mock, so even though you have
> build
> > xen-api as part of xenserver-core, its dependencies were not
> > installed on your machine.   You can use 'yum-builddep' to install
> > them from your xenserver-core repository, but if you want to build trunk
> xen-api
> > you will need to install a couple of other dependencies which are not yet
> > packaged in xenserver-core.
> >
> > This should do the trick:
> >
> >    # install the packaged dependencies
> >    sudo yum-builddep xapi
> >
> >    # build and install ocaml-ctypes, needed by ocaml-opasswd below
> >    sudo yum install libffi-devel
> >    curl -OL
> > https://github.com/ocamllabs/ocaml-ctypes/archive/ocaml-ctypes-
> 0.2.3.tar.gz
> >    tar zxvf ocaml-ctypes-0.2.3.tar.gz
> >    cd ocaml-ctypes-ocaml-ctypes-0.2.3
> >    make
> >    make install
> >    cd ..
> >
> >    # build and install ocaml-passwd
> >    # ocaml-opasswd must be patched to build with the version of ocaml
> used
> > by
> >    # xenserver-core
> >    git clone https://github.com/xapi-project/ocaml-opasswd
> >    sudo yum install oasis
> >    cd ocaml-opasswd
> >    patch -p1 < ocaml-opasswd.patch
> >    oasis setup
> >    make
> >    sudo make install
> >    cd ..
> >
> >    # build xen-api
> >    git clone https://github.com/xapi-project/xen-api
> >    cd xen-api
> >    make
> >
> 
> Thanks much for your detail guide. I firstly built xsenserver-core, and then
> followed your instructions and there are not those package dependence
> issues when built xapi. But unfortunately, I met one make error as follow:
> 
> --- Checking for gcc... (found /usr/bin/gcc)                   ] 00283 / 02615
> --- Checking for g++... (found /usr/bin/g++)
> - build ocaml/xapi storage_proxy.o
> + ocamlfind ocamlopt -package oclock,xml-
> light2,cdrom,pciutil,sexpr,xcp,stunnel,http-svr,xen-
> utils,netdev,tapctl,rpclib,xenstore-
> compat,xenctrl,uuid,gzip,sha1,xcp.network,xcp.rrd,xcp.storage,xcp.xen,xcp.
> memory,tar,tar.unix,oPasswd,xenctrl,xenctrlext,xenstore-compat,cpuid -g -
> dtypes -bin-annot -thread -warn-error +a-4-6-9-27-28-29 -ccopt -fPIC -I ../idl
> -I ../idl/ocaml_backend -I ../autogen -I ../database/ -I ../xenops -I ../xva 
> -I
> ../util -I ../auth -I ../license -I ../client_records -I ../rfb -I ../gpg -I
> ../rrdd/interface -I .. -c storage_proxy.ml
> File "storage_proxy.ml", line 41, characters 16-31:
> Error: Unbound value Client.SR.probe
> *** omake: 2117/2630 targets are up to date
> *** omake: failed (3 min 18.94 sec, 448/502 scans, 359/926 rules, 1235/3484
> digests)
> *** omake: targets were not rebuilt because of errors:
>    ocaml/xapi/storage_proxy.cmi
>       depends on: ocaml/xapi/storage_proxy.ml
>    ocaml/xapi/storage_proxy.cmx
>       depends on: ocaml/xapi/storage_proxy.ml
>    ocaml/xapi/storage_proxy.o
>       depends on: ocaml/xapi/storage_proxy.ml
> make: *** [all] Error 2
> 
> Maybe I am missing something?
> 
> Thanks,
> Qiaowei
> 
> 
> _______________________________________________
> Xen-api mailing list
> Xen-api@xxxxxxxxxxxxx
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


 


Rackspace

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