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

Re: [Xen-API] Compiling xen-api on Debian Wheezy AMD64



Yes - I just needed to compile rrddump.

This worked for. Thanks John.

> -----Original Message-----
> From: John Else
> Sent: Friday, April 26, 2013 2:22 PM
> To: Santosh Jodh; Dave Scott; Jonathan Ludlam
> Cc: xen-api@xxxxxxxxxxxxx
> Subject: RE: [Xen-API] Compiling xen-api on Debian Wheezy AMD64
>
> Hi Santosh, is rrddump the main thing you need from xen-api? It's
> actually a really tiny program with only a few dependencies, so I've
> put it in its own repo.
>
> Once you have opam set up with the xen-org/opam-repo-dev remote, try
> this (these steps worked for me just now on my Ubuntu box):
>
> opam install obuild
> opam install xmlm
> opam install stdext
> git clone git://github.com/xen-org/xcp-rrd cd xcp-rrd make && make
> install cd ..
> git clone git://github.com/johnelse/rrddump cd rrddump make && sudo
> make install
>
> You should now have /usr/local/bin/rrddump
>
> I'll get xcp-rrd and rrddump into our opam repository next week - you
> should then just be able to run "opam install rrddump"
>
> John
> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-
> bounces@xxxxxxxxxxxxx] On Behalf Of Santosh Jodh
> Sent: 26 April 2013 21:59
> To: Dave Scott; Jonathan Ludlam
> Cc: xen-api@xxxxxxxxxxxxx
> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy AMD64
>
> There were only 2 .omake* files in the xen-api folder. I deleted them
> and still get the error. Are there other locations for these files I
> need to clean?
>
> I renamed ocamlopt so there is only ocamlopt.opt in the path.
>
>
> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ make omake -j 8 phase1
> omake: Symbol `FamErrlist' has different size in shared object,
> consider re-linking
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.12 sec)
> --- Checking for ocamlfind... (found
> /shared/home/sjodh/.opam/system/bin/ocamlfind)
> --- Checking for ocamlc.opt... (found /usr/bin/ocamlc.opt)
> --- Checking for ocamlopt.opt... (found /usr/bin/ocamlopt.opt)
> --- Checking whether ocamlc understands the "z" warnings... (yes)
> *** omake: 149/277 targets are up to date
> *** omake: failed (0.23 sec, 20/20 scans, 4/5 rules, 76/281 digests)
> *** omake: targets were not rebuilt because of errors:
>    ocaml/database/string_marshall_helper.cmi
>       depends on: ocaml/database/string_marshall_helper.ml
>    ocaml/database/string_marshall_helper.cmx
>       depends on: ocaml/database/string_marshall_helper.ml
>    ocaml/database/string_marshall_helper.o
>       depends on: ocaml/database/string_marshall_helper.ml
> make: *** [all] Error 127
>
>
> > -----Original Message-----
> > From: Dave Scott
> > Sent: Friday, April 26, 2013 12:57 PM
> > To: Jonathan Ludlam
> > Cc: Santosh Jodh; Anil Madhavapeddy; xen-api@xxxxxxxxxxxxx
> > Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy AMD64
> >
> > Ah good point. Iirc Omake caches the compiler when you first run it.
> > Try removing all .omake* files to see if it picks up the opt.opt?
> >
> > --
> > Dave Scott
> > XenServer System Architect
> >
> > On Apr 26, 2013, at 8:52 PM, "Jonathan Ludlam"
> > <Jonathan.Ludlam@xxxxxxxxxxxxx> wrote:
> >
> > > I'm still suspicious that it's using the byte code compilers. I've
> > just tried here and when I compile datamodel.ml with ocamlopt.opt
> > (native compiler) it's ok, and when I use ocamlopt (bytecode) I, too,
> > get stack overflow.
> > >
> > > Try verifying with ps to see which compiler it's using?
> > >
> > > Jon
> > >
> > > Sent from my iPad
> > >
> > > On 26 Apr 2013, at 20:48, "Santosh Jodh" <Santosh.Jodh@xxxxxxxxxx>
> > wrote:
> > >
> > >> I guess the unit is kb.
> > >>
> > >> So it is 16MB and that's the highest it can go.
> > >> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ ulimit -s
> > >> 16384
> > >>
> > >> -bash: ulimit: stack size: cannot modify limit: Operation not
> > >> permitted sjodh@REDBLD-XS:~/src/netscaler/xen-api$ ulimit -s 32384
> > >>
> > >>> -----Original Message-----
> > >>> From: Dave Scott
> > >>> Sent: Friday, April 26, 2013 12:45 PM
> > >>> To: Santosh Jodh
> > >>> Cc: Anil Madhavapeddy; Jonathan Ludlam; xen-api@xxxxxxxxxxxxx
> > >>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy AMD64
> > >>>
> > >>> 16k seems a little small to me. According to Wikipedia the basic
> > >>> interpreter on the 48k ZX spectrum could recurse 13792 frames
> deep.
> > >>> I'm sure we could live with a 10 MiB stack (IIRC that's what we
> > >>> currently have, per thread, in XCP/XS dom0) :-)
> > >>>
> > >>> When I'm back at a proper computer I'll have a look at my default
> > >>> stack (on mobile device atm)
> > >>>
> > >>> --
> > >>> Dave Scott
> > >>> XenServer System Architect
> > >>>
> > >>> On Apr 26, 2013, at 8:13 PM, "Santosh Jodh"
> > >>> <Santosh.Jodh@xxxxxxxxxx>
> > >>> wrote:
> > >>>
> > >>>> I doubled it to 16k and it still fails.
> > >>>>
> > >>>> -----Original Message-----
> > >>>> From: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx]
> > >>>> Sent: Friday, April 26, 2013 11:16 AM
> > >>>> To: Jonathan Ludlam
> > >>>> Cc: Santosh Jodh; xen-api@xxxxxxxxxxxxx
> > >>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy AMD64
> > >>>>
> > >>>> Santosh,
> > >>>>
> > >>>> If you're getting a stack overflow exception, it's probably
> worth
> > >>> increasing your ulimit -s and trying again...
> > >>>>
> > >>>> -anil
> > >>>>
> > >>>> On 26 Apr 2013, at 19:06, Jonathan Ludlam
> > >>> <Jonathan.Ludlam@xxxxxxxxxxxxx> wrote:
> > >>>>
> > >>>>> Although it does seem to have found ocamlopt.opt - odd. Hmm.
> > >>>>>
> > >>>>> Sent from my iPad
> > >>>>>
> > >>>>> On 26 Apr 2013, at 18:52, "Santosh Jodh"
> > <Santosh.Jodh@xxxxxxxxxx>
> > >>> wrote:
> > >>>>>
> > >>>>>> Ok - I misunderstood you when you said  each repo has several
> > >>> branches.
> > >>>>>>
> > >>>>>> I get following on fusion branch:
> > >>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ git branch -l
> > >>>>>> * fusion
> > >>>>>> master
> > >>>>>>
> > >>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ make omake -j 8
> phase1
> > >>>>>> omake: Symbol `FamErrlist' has different size in shared
> object,
> > >>>>>> consider re-linking
> > >>>>>> *** omake: reading OMakefiles
> > >>>>>> *** omake: finished reading OMakefiles (0.17 sec)
> > >>>>>> --- Checking for ocamlfind... (found
> > >>>>>> /shared/home/sjodh/.opam/system/bin/ocamlfind)
> > >>>>>> --- Checking for ocamlc.opt... (found /usr/bin/ocamlc.opt)
> > >>>>>> --- Checking for ocamlopt.opt... (found /usr/bin/ocamlopt.opt)
> > >>>>>> --- Checking whether ocamlc understands the "z" warnings...
> > (yes)
> > >>>>>> - build ocaml/idl datamodel.cmx
> > >>>>>> + ocamlfind ocamlopt -package
> > >>>>>> + xml-light2,sexpr,log,rpclib,http-svr,uuid -g -dtypes -thread
> > >>>>>> + -warn-error +a-4-6-9-27-28-29 -ccopt -fPIC -I ocaml_backend
> > >>>>>> + -I ../database -I .. -c datamodel.ml
> > >>>>>> Fatal error: exception Stack_overflow
> > >>>>>> *** omake: 223/277 targets are up to date
> > >>>>>> *** omake: failed (32.08 sec, 38/38 scans, 29/61 rules,
> 133/396
> > >>>>>> digests)
> > >>>>>> *** omake: targets were not rebuilt because of errors:
> > >>>>>> ocaml/idl/datamodel.cmi
> > >>>>>>  depends on: ocaml/idl/datamodel.ml  ocaml/idl/datamodel.cmx
> > >>>>>> depends on: ocaml/idl/datamodel.ml  ocaml/idl/datamodel.o
> > >>>>>> depends on: ocaml/idl/datamodel.ml
> > >>>>>> make: *** [all] Error 2
> > >>>>>>
> > >>>>>> -----Original Message-----
> > >>>>>> From: Dave Scott
> > >>>>>> Sent: Friday, April 26, 2013 10:13 AM
> > >>>>>> To: Santosh Jodh
> > >>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> AMD64
> > >>>>>>
> > >>>>>>
> > >>>>>> I didn't read your email carefully enough, see below:
> > >>>>>>
> > >>>>>> On 26/04/13 18:02, Santosh Jodh wrote:
> > >>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ git checkout fusion
> > >>>>>>> error: pathspec 'fusion' did not match any file(s) known to
> > git.
> > >>>>>>>
> > >>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ more .git/config
> > [core]
> > >>>>>>>     repositoryformatversion = 0
> > >>>>>>>     filemode = true
> > >>>>>>>     bare = false
> > >>>>>>>     logallrefupdates = true
> > >>>>>>> [remote "origin"]
> > >>>>>>>     fetch = +refs/heads/*:refs/remotes/origin/*
> > >>>>>>>     url = git://github.com/xen-org/xen-api.git
> > >>>>>>
> > >>>>>> this is xen-org/xen-api.git not jonludlam/xen-api.git
> > >>>>>>
> > >>>>>>> [branch "master"]
> > >>>>>>>     remote = origin
> > >>>>>>>     merge = refs/heads/master
> > >>>>>>>
> > >>>>>>> -----Original Message-----
> > >>>>>>> From: Dave Scott
> > >>>>>>> Sent: Friday, April 26, 2013 9:22 AM
> > >>>>>>> To: Santosh Jodh
> > >>>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> > >>>>>>> AMD64
> > >>>>>>>
> > >>>>>>> On 26/04/13 16:55, Santosh Jodh wrote:
> > >>>>>>>> I guess I am still at master.
> > >>>>>>>>
> > >>>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ git branch -l
> > >>>>>>>> * master
> > >>>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ git remote -v
> origin
> > >>>>>>>> git://github.com/xen-org/xen-api.git (fetch) origin
> > >>>>>>>> git://github.com/xen-org/xen-api.git (push)
> > >>>>>>>>
> > >>>>>>>> Is the fusion one git://github.com/jonludlam/xen-api.git?
> > >>>>>>>
> > >>>>>>> It is... but each repo has several branches. I think all you
> > >>>>>>> need
> > >>> to do is:
> > >>>>>>>
> > >>>>>>> cd xen-api
> > >>>>>>> git checkout fusion
> > >>>>>>> make
> > >>>>>>
> > >>>>>> Try this (I've got a good feeling about this one!)
> > >>>>>>
> > >>>>>> rm -rf xen-api
> > >>>>>> git clone git://github.com/jonludlam/xen-api.git
> > >>>>>> cd xen-api
> > >>>>>> git checkout fusion
> > >>>>>> make
> > >>>>>>
> > >>>>>> Cheers,
> > >>>>>> Dave
> > >>>>>>
> > >>>>>>>
> > >>>>>>> Cheers,
> > >>>>>>> Dave
> > >>>>>>>
> > >>>>>>>>
> > >>>>>>>> -----Original Message-----
> > >>>>>>>> From: Dave Scott
> > >>>>>>>> Sent: Friday, April 26, 2013 8:52 AM
> > >>>>>>>> To: Santosh Jodh
> > >>>>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> > AMD64
> > >>>>>>>>
> > >>>>>>>> Could you confirm which xen-api branch you're trying to
> build?
> > >>> Something like "git branch -l" and "git remote -v".
> > >>>>>>>>
> > >>>>>>>> The package 'rpc-light' installs an OCaml package called
> > 'rpclib'
> > >>>>>>>> these
> > >>>>>>>> days:
> > >>>>>>>>
> > >>>>>>>> $ ocamlfind list | grep rpc
> > >>>>>>>> rpclib              (version: 1.2.0)
> > >>>>>>>> rpclib.core         (version: n/a)
> > >>>>>>>> rpclib.idl          (version: n/a)
> > >>>>>>>> rpclib.js           (version: n/a)
> > >>>>>>>> rpclib.json         (version: n/a)
> > >>>>>>>> rpclib.syntax       (version: n/a)
> > >>>>>>>> rpclib.unix         (version: n/a)
> > >>>>>>>> rpclib.xml          (version: n/a)
> > >>>>>>>>
> > >>>>>>>> It looks like the branch of xen-api you're trying to build
> is
> > >>> still using the old name.
> > >>>>>>>>
> > >>>>>>>> Cheers,
> > >>>>>>>> Dave
> > >>>>>>>>
> > >>>>>>>> On 26/04/13 15:28, Santosh Jodh wrote:
> > >>>>>>>>> The initial ones were from
> > >>>>>>>>>
> > http://wiki.xensource.com/wiki/XenAPI_client_libraries_for_oca
> > >>>>>>>>> ml
> > >>>>>>>>>
> > >>>>>>>>> Rest from this thread and compiler output.
> > >>>>>>>>>
> > >>>>>>>>> According to opam, rpc is already installed.
> > >>>>>>>>>
> > >>>>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ opam install rpc
> > >>> Package
> > >>>>>>>>> rpc is already installed (current version is 1.4.1)
> > >>>>>>>>>
> > >>>>>>>>> -----Original Message-----
> > >>>>>>>>> From: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx]
> > >>>>>>>>> Sent: Friday, April 26, 2013 7:23 AM
> > >>>>>>>>> To: Santosh Jodh
> > >>>>>>>>> Cc: Dave Scott; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> > >>>>>>>>> AMD64
> > >>>>>>>>>
> > >>>>>>>>> "opam install rpc" will give you rpc-light.
> > >>>>>>>>>
> > >>>>>>>>> Which wiki page are you getting all these instructions
> from?
> > >>> I'd like to see what the custom Xen OPAM packages are, as there
> > seem
> > >>> to be some custom ones that aren't distributed in mainline OPAM.
> > >>>>>>>>>
> > >>>>>>>>> -anil
> > >>>>>>>>>
> > >>>>>>>>> On 26 Apr 2013, at 15:05, Santosh Jodh
> > >>>>>>>>> <Santosh.Jodh@xxxxxxxxxx>
> > >>> wrote:
> > >>>>>>>>>
> > >>>>>>>>>> Where do I get rpc-light? ocamlffind nor opam seem to know
> > >>> about it.
> > >>>>>>>>>>
> > >>>>>>>>>> ocamlfind: Package `rpc-light' not found
> > >>>>>>>>>> - scan ocaml/idl scan-ocaml-dm_api.mli
> > >>>>>>>>>> + ocamlfind ocamldep -package
> > >>>>>>>>>> + xml-light2,sexpr,log,rpc-light,http-svr
> > >>>>>>>>>> + -native -I ocaml_backend -I ../database -I .. dm_api.mli
> > >>>>>>>>>> ocamlfind: Package `rpc-light' not found
> > >>>>>>>>>> *** omake: 210/355 targets are up to date
> > >>>>>>>>>> *** omake: failed (0.35 sec, 10/10 scans, 4/6 rules,
> > >>>>>>>>>> 104/387
> > >>>>>>>>>> digests)
> > >>>>>>>>>> *** omake: targets were not rebuilt because of errors:
> > >>>>>>>>>> <scanner ocaml/database/scan-ocaml-
> > string_marshall_helper.ml>
> > >>>>>>>>>>    depends on: ocaml/database/string_marshall_helper.ml
> > >>>>>>>>>> <scanner ocaml/idl/ocaml_backend/scan-ocaml-gen_common.ml>
> > >>>>>>>>>>    depends on: ocaml/idl/ocaml_backend/gen_common.ml
> > >>>>>>>>>> <scanner ocaml/idl/scan-ocaml-datamodel_utils.ml>
> > >>>>>>>>>>    depends on: ocaml/idl/datamodel_utils.ml <scanner
> > >>>>>>>>>> ocaml/idl/scan-ocaml-dm_api.ml>
> > >>>>>>>>>>    depends on: ocaml/idl/dm_api.ml <scanner
> > >>>>>>>>>> ocaml/idl/scan-ocaml-dm_api.mli>
> > >>>>>>>>>>    depends on: ocaml/idl/dm_api.mli
> > >>>>>>>>>> make: *** [all] Error 2
> > >>>>>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api$ opam install
> > >>>>>>>>>> rpc-light rpc-light is not a valid versioned package name
> > >>>>>>>>>> 'opam install rpc-light' failed.
> > >>>>>>>>>>
> > >>>>>>>>>> -----Original Message-----
> > >>>>>>>>>> From: Dave Scott
> > >>>>>>>>>> Sent: Thursday, April 25, 2013 11:31 PM
> > >>>>>>>>>> To: Santosh Jodh
> > >>>>>>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> > >>>>>>>>>> AMD64
> > >>>>>>>>>>
> > >>>>>>>>>> xen-api-libs-transitional is a fixed branch of
> > >>>>>>>>>> xen-api-libs;
> > >>> you should only need xen-api now...
> > >>>>>>>>>>
> > >>>>>>>>>> --
> > >>>>>>>>>> Dave Scott
> > >>>>>>>>>> XenServer System Architect
> > >>>>>>>>>>
> > >>>>>>>>>> On Apr 25, 2013, at 11:02 PM, "Santosh Jodh"
> > >>> <Santosh.Jodh@xxxxxxxxxx> wrote:
> > >>>>>>>>>>
> > >>>>>>>>>>> opam install xen-api-libs-transitional
> > >>>>>>>>>>>
> > >>>>>>>>>>> now succeeds after installing ocaml-native-compilers ,
> > >>>>>>>>>>> camlp4-
> > >>> extra, libxen-dev.
> > >>>>>>>>>>>
> > >>>>>>>>>>> However, xen-api-libs still fails with the same error.
> > >>>>>>>>>>> Will
> > >>> try the fusion branch next.
> > >>>>>>>>>>>
> > >>>>>>>>>>> -----Original Message-----
> > >>>>>>>>>>> From: Dave Scott
> > >>>>>>>>>>> Sent: Thursday, April 25, 2013 2:55 PM
> > >>>>>>>>>>> To: Santosh Jodh
> > >>>>>>>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian Wheezy
> > >>> AMD64
> > >>>>>>>>>>>
> > >>>>>>>>>>> Or sorry I also notice you haven't got the xen headers
> > >>> installed: try installing xen-devel.
> > >>>>>>>>>>>
> > >>>>>>>>>>> --
> > >>>>>>>>>>> Dave Scott
> > >>>>>>>>>>> XenServer System Architect
> > >>>>>>>>>>>
> > >>>>>>>>>>> On Apr 25, 2013, at 10:47 PM, "Santosh Jodh"
> > >>> <Santosh.Jodh@xxxxxxxxxx> wrote:
> > >>>>>>>>>>>
> > >>>>>>>>>>>> That command fails:
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> ==== ERROR [while installing xenctrl.5.0.0] ====
> > >>>>>>>>>>>> # opam-version    1.0.1
> > >>> (8c7302ecf30bd830a0055b8833292b4554bec0e2)
> > >>>>>>>>>>>> # os              linux
> > >>>>>>>>>>>> # command         make
> > >>>>>>>>>>>> # path
> > >>> /shared/home/sjodh/.opam/system/build/xenctrl.5.0.0
> > >>>>>>>>>>>> # exit-code       2
> > >>>>>>>>>>>> # env-file
> > >>> /shared/home/sjodh/.opam/system/build/xenctrl.5.0.0/xenctrl-2635-
> > >>> d474c2.env
> > >>>>>>>>>>>> # stdout-file
> > >>> /shared/home/sjodh/.opam/system/build/xenctrl.5.0.0/xenctrl-2635-
> > >>> d474c2.out
> > >>>>>>>>>>>> # stderr-file
> > >>> /shared/home/sjodh/.opam/system/build/xenctrl.5.0.0/xenctrl-2635-
> > >>> d474c2.err
> > >>>>>>>>>>>> ### stdout ###
> > >>>>>>>>>>>> ...[truncated]
> > >>>>>>>>>>>> ocamlfind ocamlc -c lib/gntshr_stubs.c ocamlfind ocamlc
> > >>>>>>>>>>>> -c lib/gnttab_stubs.c ocamlfind ocamlc -c
> > lib/eventchn_stubs.c
> > >>>>>>>>>>>> ocamlfind ocamlc -c lib/xenmmap_stubs.c mv
> > >>>>>>>>>>>> xenmmap_stubs.o lib/xenmmap_stubs.o ocamlfind ocamlc -c
> > lib/xenctrl_stubs.c
> > >>>>>>>>>>>> + ocamlfind ocamlc -c lib/eventchn_stubs.c
> > >>>>>>>>>>>> lib/eventchn_stubs.c:24:21: fatal error: xenctrl.h: No
> > such
> > >>>>>>>>>>>> file or directory compilation terminated.
> > >>>>>>>>>>>> Command exited with code 2.
> > >>>>>>>>>>>> ### stderr ###
> > >>>>>>>>>>>> /bin/sh: ocamlopt.opt: command not found
> > >>>>>>>>>>>> E: Failure("Command ''/usr/bin/ocamlbuild'
> > >>>>>>>>>>>> lib/libxenctrl_stubs.a lib/dllxenctrl_stubs.so
> > >>> lib/xenctrl.cma
> > >>>>>>>>>>>> lib/xenctrl.cmxa lib/xenctrl.a lib/xenctrl.cmxs -tag
> > >>>>>>>>>>>> debug -j 4' terminated with error code 10")
> > >>>>>>>>>>>> make: *** [build] Error 1
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> 'opam install xen-api-libs-transitional' failed.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> -----Original Message-----
> > >>>>>>>>>>>> From: Dave Scott
> > >>>>>>>>>>>> Sent: Thursday, April 25, 2013 2:40 PM
> > >>>>>>>>>>>> To: Santosh Jodh
> > >>>>>>>>>>>> Cc: Anil Madhavapeddy; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian
> Wheezy
> > >>>>>>>>>>>> AMD64
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> Try "opam install xen-api-libs-transitional" -- iirc the
> > >>>>>>>>>>>> name
> > >>> of type-conv changed upstream and we haven't changed everything
> > over
> > >>> to the new name yet.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> If that works you might want to try building either
> Jon's
> > >>> "fusion" branch of xen-api or my "upstream-packages" one on
> github.
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> --
> > >>>>>>>>>>>> Dave Scott
> > >>>>>>>>>>>> XenServer System Architect
> > >>>>>>>>>>>>
> > >>>>>>>>>>>> On Apr 25, 2013, at 10:36 PM, "Santosh Jodh"
> > >>> <Santosh.Jodh@xxxxxxxxxx> wrote:
> > >>>>>>>>>>>>
> > >>>>>>>>>>>>> opam install installed type_conv but I am still getting
> > >>>>>>>>>>>>> the
> > >>> exact same error. Do I need to refresh environment to pick up the
> > >>> newly installed type_conv?
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> -----Original Message-----
> > >>>>>>>>>>>>> From: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx]
> > >>>>>>>>>>>>> Sent: Thursday, April 25, 2013 2:34 PM
> > >>>>>>>>>>>>> To: Santosh Jodh
> > >>>>>>>>>>>>> Cc: Dave Scott; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian
> > >>>>>>>>>>>>> Wheezy
> > >>>>>>>>>>>>> AMD64
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> Try "opam install type_conv" and see if that helps when
> > >>>>>>>>>>>>> you
> > >>> retry xen-api-libs.
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> -anil
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>> On 25 Apr 2013, at 22:32, Santosh Jodh
> > >>> <Santosh.Jodh@xxxxxxxxxx> wrote:
> > >>>>>>>>>>>>>
> > >>>>>>>>>>>>>> I am hitting an error while building xen-api-libs now.
> > It
> > >>> cannot find type-conv:
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> ocamlfind ocamlc -I ../xml-light2 -I ../stdext -I
> > ../uuid
> > >>>>>>>>>>>>>> -package camlp4,type-conv -ppopt -I -ppopt
> > >>>>>>>>>>>>>> /usr/lib/ocaml/type-conv  -ppopt -I -ppopt ../rpc-
> light
> > >>>>>>>>>>>>>> -ppopt pa_rpc.cma -syntax camlp4o -I ../rpc-light -I
> > >>>>>>>>>>>>>> ../jsonrpc -I ../rpc-light  -I ../jsonrpc -I ../rpc-
> > light
> > >>>>>>>>>>>>>> -
> > >>> c
> > >>>>>>>>>>>>>> -o fe.cmo fe.ml
> > >>>>>>>>>>>>>> ocamlfind: Package `type-conv' not found
> > >>>>>>>>>>>>>> make[1]: *** [fe.cmo] Error 2
> > >>>>>>>>>>>>>> make[1]: Leaving directory
> > >>> `/shared/home/sjodh/src/netscaler/xen-api-libs/stdext'
> > >>>>>>>>>>>>>> make: *** [all] Error 2
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> -----Original Message-----
> > >>>>>>>>>>>>>> From: Anil Madhavapeddy [mailto:anil@xxxxxxxxxx]
> > >>>>>>>>>>>>>> Sent: Thursday, April 25, 2013 7:33 AM
> > >>>>>>>>>>>>>> To: Santosh Jodh
> > >>>>>>>>>>>>>> Cc: Dave Scott; John Else; xen-api@xxxxxxxxxxxxx
> > >>>>>>>>>>>>>> Subject: Re: [Xen-API] Compiling xen-api on Debian
> > Wheezy
> > >>>>>>>>>>>>>> AMD64
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> OPAM 1.0 has been released and will be in binary
> > packages
> > >>> as soon as Debian and other packaging vendors catch up in their
> > >>> release
> > >>> cycles:
> > >>>>>>>>>>>>>> https://github.com/OCamlPro/opam/issues/149
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> Therefore it is safe to remove the xen-org/opam
> > >>>>>>>>>>>>>> snapshot
> > >>> now.
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> To upgrade OPAM, you just need to compile OPAM-1.0 and
> > >>> replace the OPAM binary, and run 'opam update' to refresh your
> > >>> package list.  It may be easier to just delete ~/.opam and
> > recompile packages.
> > >>> There is no state for OPAM held outside of ~/.opam.
> > >>>>>>>>>
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> -anil
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>> On 25 Apr 2013, at 15:13, Santosh Jodh
> > >>> <Santosh.Jodh@xxxxxxxxxx> wrote:
> > >>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Yes - they are from wiki
> > >>> http://wiki.xensource.com/wiki/XenAPI_client_libraries_for_ocaml.
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Can we remove the obsolete repo git://github.com/xen-
> > >>> org/opam?
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> I will try the new instructions. Do I need to
> > >>>>>>>>>>>>>>> uninstall
> > >>> opam first? And how do I do that?
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Thanks,
> > >>>>>>>>>>>>>>> Santosh
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> From: Dave Scott
> > >>>>>>>>>>>>>>> Sent: Thursday, April 25, 2013 4:51 AM
> > >>>>>>>>>>>>>>> To: John Else
> > >>>>>>>>>>>>>>> Cc: Santosh Jodh; Jonathan Ludlam; xen-
> > api@xxxxxxxxxxxxx
> > >>>>>>>>>>>>>>> Subject: Re: Compiling xen-api on Debian Wheezy AMD64
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Hi,
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Thanks, John -- your instructions look right to me.
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Santosh: were the broken instructions on the wiki? If
> > >>>>>>>>>>>>>>> so,
> > >>> please update them once you get it working!
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Thanks,
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> --
> > >>>>>>>>>>>>>>> Dave Scott
> > >>>>>>>>>>>>>>> XenServer System Architect
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> On Apr 25, 2013, at 12:32 PM, "John Else"
> > >>> <john.else@xxxxxxxxxx> wrote:
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Hi Santosh,
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Firstly I'd recommend cloning opam from the OCamlPro
> > >>> repository, rather than xen-org's fork (it's several months out
> of
> > >>> date), and secondly building a tagged release of opam rather than
> > >>> the master branch. Try:
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> git clone git://github.com/OCamlPro/opam cd opam git
> > >>>>>>>>>>>>>>> checkout latest ./configure && make && sudo make
> > install
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Then you can initialise opam with the default
> > (OCamlPro)
> > >>> repository, and add xen-org's repository:
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> opam init
> > >>>>>>>>>>>>>>> eval `opam config env` opam remote add xen-org
> > >>>>>>>>>>>>>>> git://github.com/xen-org/opam-repo-dev
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Hope this helps,
> > >>>>>>>>>>>>>>> John
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> From: xen-api-bounces@xxxxxxxxxxxxx
> > >>>>>>>>>>>>>>> [mailto:xen-api-bounces@xxxxxxxxxxxxx] On Behalf
> > >>>>>>>>>>>>>>> OfSantosh Jodh
> > >>>>>>>>>>>>>>> Sent: 22 April 2013 23:12
> > >>>>>>>>>>>>>>> To: Jonathan Ludlam; Dave Scott; xen-
> api@xxxxxxxxxxxxx
> > >>>>>>>>>>>>>>> Subject: [Xen-API] Compiling xen-api on Debian Wheezy
> > >>> AMD64
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> I am trying to compile xen-api - specifically
> > >>>>>>>>>>>>>>> rrdump.ml
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> ocamlc version:
> > >>>>>>>>>>>>>>> The Objective Caml compiler, version 3.12.1 Standard
> > >>>>>>>>>>>>>>> library
> > >>>>>>>>>>>>>>> directory: /usr/lib/ocaml
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> git clone git://github.com/xen-org/opam cd opam;
> > >>>>>>>>>>>>>>> ./configure && make && sudo make install
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> This succeeded.
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> sjodh@REDBLD-XS:~/src/netscaler/xen-api-libs$ opam
> > >>>>>>>>>>>>>>> init git://github.com/xen-org/opam-repository
> > >>>>>>>>>>>>>>> Fetching git://github.com/xen-org/opam-repository ...
> > >>>>>>>>>>>>>>> { patches } are invalid field names in
> > >>>>>>>>>>>>>>> /home/sjodh/.opam/opam/bigbro.2.0.4-rev3.opam. Valid
> > >>> fields
> > >>>>>>>>>>>>>>> are { opam-version, maintainer, substs, build,
> remove,
> > >>>>>>>>>>>>>>> depends, depopts, conflicts, libraries, syntax,
> > >>>>>>>>>>>>>>> ocaml-version, build-env, license, authors, homepage,
> > >>>>>>>>>>>>>>> version, name }  'opam init
> > >>>>>>>>>>>>>>> git://github.com/xen-org/opam-repository' failed
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>>
> > >>>>>>>>>>>>>>> Regards,
> > >>>>>>>>>>>>>>> Santosh
> > >>>>>>>>>>>>>>> _______________________________________________
> > >>>>>>>>>>>>>>> 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
> > >>>>>
> > >>>>> _______________________________________________
> > >>>>> 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
>
> _______________________________________________
> 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®.