Mailing List Archive

build issue with xapi
Hi All,

I am trying to build xapi via opam install xapi, and getting following error:

---=-=-= Installing xapi.1.0.0 =-=-=
Building xapi.1.0.0:
./configure --varpatchdir /contrail/opam/system/var/patch --optdir /contrail/opam/system/lib/xcp --plugindir /contrail/opam/system/lib/xcp/plugins --hooksdir /contrail/opam/system/etc/hook-scripts --xapiconf /contrail/opam/system/etc/xapi.conf --libexecdir /contrail/opam/system/lib/xcp/bin --scriptsdir /contrail/opam/system/lib/xcp/scripts --sharedir /contrail/opam/system/share/xcp --webdir /contrail/opam/system/share/xcp/web --xhadir /contrail/opam/system/bin/xha --bindir /contrail/opam/system/bin --sbindir /contrail/opam/system/bin --etcdir /contrail/opam/system/etc --vardir /var/lib/xcp
make version
omake phase1
omake phase2
omake ocaml/xapi/xapi
install -m 0755 ocaml/xapi/xapi.opt /contrail/opam/system/bin/xapi
[ERROR] The compilation of xapi.1.0.0 failed.
Removing xapi.1.0.0.
rm /contrail/opam/system/bin/xapi

[ERROR] Failure while processing xapi.1.0.0


===== ERROR while installing xapi.1.0.0 =====
# opam-version 1.1.1 (d2d459e390e869bf20f1889a5d2cf7933f2851ae)
# os linux
# command ./configure --varpatchdir /contrail/opam/system/var/patch --optdir /contrail/opam/system/lib/xcp --plugindir /contrail/opam/system/lib/xcp/plugins --hooksdir /contrail/opam/system/etc/hook-scripts --xapiconf /contrail/opam/system/etc/xapi.conf --libexecdir /contrail/opam/system/lib/xcp/bin --scriptsdir /contrail/opam/system/lib/xcp/scripts --sharedir /contrail/opam/system/share/xcp --webdir /contrail/opam/system/share/xcp/web --xhadir /contrail/opam/system/bin/xha --bindir /contrail/opam/system/bin --sbindir /contrail/opam/system/bin --etcdir /contrail/opam/system/etc --vardir /var/lib/xcp
# path /contrail/opam/system/build/xapi.1.0.0
# compiler system (4.01.0)
# exit-code 2
# env-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.env
# stdout-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.out
# stderr-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.err
### stdout ###
# Cannot find file topfind.
### stderr ###
# Unknown directive `require'.

——

The configure script is not able to find topfind, as it looks from the messages. However, I do have following set:

OCAML_TOPLEVEL_PATH=/contrail/opam/system/lib/toplevel

As a check, when I run utop and then in the cmd prompt issue, use “topfind”, it doesn’t complain. So, as it appears that the configure script doesn’t find “topfind" whereas utop can find it. Does it mean that findlib could not be resolved properly?

I am pretty new to OCaml. Can some one shed some light on it?

My xapi code is at following change set:
commit ffd3561cb05e828ffa8646fb9cc91e3c3e721b2f
Merge: 1b6ff5f 8fa2e83
Author: Dave Scott <djs55@users.noreply.github.com>
Date: Mon Nov 25 03:27:02 2013 -0800

Merge pull request #6 from jonludlam/fusion-vbdfix

Relax the rules about ISO vbds coming from ISO SRs
———
and ocaml version is:

[root@localhost xapi.1.0.0]# ocaml
OCaml version 4.01.0

Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads

-----

thanks much,
Anirban



_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: build issue with xapi [ In reply to ]
As a workaround, you could try:

$ opam switch 4.00.1 # or 4.01.0
$ opam install xapi

This topfind problem tends to only happen with the system compiler.

-anil

On 3 Mar 2014, at 05:45, Anirban Chakraborty <abchak@juniper.net> wrote:

> Hi All,
>
> I am trying to build xapi via opam install xapi, and getting following error:
>
> ---=-=-= Installing xapi.1.0.0 =-=-=
> Building xapi.1.0.0:
> ./configure --varpatchdir /contrail/opam/system/var/patch --optdir /contrail/opam/system/lib/xcp --plugindir /contrail/opam/system/lib/xcp/plugins --hooksdir /contrail/opam/system/etc/hook-scripts --xapiconf /contrail/opam/system/etc/xapi.conf --libexecdir /contrail/opam/system/lib/xcp/bin --scriptsdir /contrail/opam/system/lib/xcp/scripts --sharedir /contrail/opam/system/share/xcp --webdir /contrail/opam/system/share/xcp/web --xhadir /contrail/opam/system/bin/xha --bindir /contrail/opam/system/bin --sbindir /contrail/opam/system/bin --etcdir /contrail/opam/system/etc --vardir /var/lib/xcp
> make version
> omake phase1
> omake phase2
> omake ocaml/xapi/xapi
> install -m 0755 ocaml/xapi/xapi.opt /contrail/opam/system/bin/xapi
> [ERROR] The compilation of xapi.1.0.0 failed.
> Removing xapi.1.0.0.
> rm /contrail/opam/system/bin/xapi
>
> [ERROR] Failure while processing xapi.1.0.0
>
>
> ===== ERROR while installing xapi.1.0.0 =====
> # opam-version 1.1.1 (d2d459e390e869bf20f1889a5d2cf7933f2851ae)
> # os linux
> # command ./configure --varpatchdir /contrail/opam/system/var/patch --optdir /contrail/opam/system/lib/xcp --plugindir /contrail/opam/system/lib/xcp/plugins --hooksdir /contrail/opam/system/etc/hook-scripts --xapiconf /contrail/opam/system/etc/xapi.conf --libexecdir /contrail/opam/system/lib/xcp/bin --scriptsdir /contrail/opam/system/lib/xcp/scripts --sharedir /contrail/opam/system/share/xcp --webdir /contrail/opam/system/share/xcp/web --xhadir /contrail/opam/system/bin/xha --bindir /contrail/opam/system/bin --sbindir /contrail/opam/system/bin --etcdir /contrail/opam/system/etc --vardir /var/lib/xcp
> # path /contrail/opam/system/build/xapi.1.0.0
> # compiler system (4.01.0)
> # exit-code 2
> # env-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.env
> # stdout-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.out
> # stderr-file /contrail/opam/system/build/xapi.1.0.0/xapi-22122-7afd23.err
> ### stdout ###
> # Cannot find file topfind.
> ### stderr ###
> # Unknown directive `require'.
>
> ——
>
> The configure script is not able to find topfind, as it looks from the messages. However, I do have following set:
>
> OCAML_TOPLEVEL_PATH=/contrail/opam/system/lib/toplevel
>
> As a check, when I run utop and then in the cmd prompt issue, use “topfind”, it doesn’t complain. So, as it appears that the configure script doesn’t find “topfind" whereas utop can find it. Does it mean that findlib could not be resolved properly?
>
> I am pretty new to OCaml. Can some one shed some light on it?
>
> My xapi code is at following change set:
> commit ffd3561cb05e828ffa8646fb9cc91e3c3e721b2f
> Merge: 1b6ff5f 8fa2e83
> Author: Dave Scott <djs55@users.noreply.github.com>
> Date: Mon Nov 25 03:27:02 2013 -0800
>
> Merge pull request #6 from jonludlam/fusion-vbdfix
>
> Relax the rules about ISO vbds coming from ISO SRs
> ———
> and ocaml version is:
>
> [root@localhost xapi.1.0.0]# ocaml
> OCaml version 4.01.0
>
> Findlib has been successfully loaded. Additional directives:
> #require "package";; to load a package
> #list;; to list the available packages
> #camlp4o;; to load camlp4 (standard syntax)
> #camlp4r;; to load camlp4 (revised syntax)
> #predicates "p,q,...";; to set these predicates
> Topfind.reset();; to force that packages will be reloaded
> #thread;; to enable threads
>
> -----
>
> thanks much,
> Anirban
>
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>


_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: build issue with xapi [ In reply to ]
On Mar 3, 2014, at 5:41 AM, Anil Madhavapeddy <anil@recoil.org> wrote:

> As a workaround, you could try:
>
> $ opam switch 4.00.1 # or 4.01.0
> $ opam install xapi
>
> This topfind problem tends to only happen with the system compiler.

Thanks a lot. switching to 4.00.1 solved the topfind issue. However, now I see a different issue (given below):

- build ocaml/xenops domain.o
+ ocamlfind ocamlopt -syntax camlp4o -package oclock,xml-light2,sexpr,stunnel,http-svr,netdev,rpclib,threads,xenctrl,xenstore-compat,xenctrlext,stdext,cdrom,netdev,oUnit,uuid,xcp-inventory,xcp,xcp.xen,rpclib.syntax -g -dtypes -thread -warn-error +a-4-6-9-27-28-29 -thread -ccopt -fPIC -I ../xapi -I ../util -I .. -c domain.ml
File "domain.ml", line 307, characters 6-38:
Error: Unbound module Xenctrl.Domain_info

My xapi code is at following change set:

commit 0320fb13cc176d0864865851672131acaad7be86
Author: David Scott <dave.scott@eu.citrix.com>
Date: Wed Oct 30 13:58:04 2013 +0000

import_raw_vdi: look for vhd-tool in %{_bindir}

and xenstore is at:

commit 03df4be36f6cb2236f813dad7b13db8b060060e8
Author: David Scott <dave.scott@eu.citrix.com>
Date: Wed Sep 11 11:15:14 2013 +0100

Regenerate OASIS
——

xenstore build and install went fine. ocamlfind list shows following:

xenstore (version: 1.2.4)
xenstore-compat (version: 0.9.3)
xenstore.client (version: 1.2.4)
xenstore.server (version: 1.2.4)
xenstore.unix (version: 1.2.4)
xenstore_transport (version: 0.9.2)
xenstore_transport.lwt (version: 0.9.2)
xenstore_transport.unix (version: 0.9.2)

Am I missing something in building xapi? My build OS is 2.6.32.43-0.4.1.xs1.8.0.847.170785xen.

Any pointer will be highly appreciated. Thanks much.

Anirban

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: build issue with xapi [ In reply to ]
2nd Attempt.
I have updated xapi code to the latest change set:

commit 3b707dc67642021412b5e6a78f435a645b278545
Merge: 4d931bf 738d81f
Author: Jon Ludlam <jonathan.ludlam@eu.citrix.com>

and still it doesn’t build. However, it fails with different error messages now:

omake -j 8 phase1
*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.12 sec)
--- Checking for ocamlfind... (found /contrail/opam/4.00.1/bin/ocamlfind)
--- Checking for ocamlc.opt... (found /contrail/opam/4.00.1/bin/ocamlc.opt)
--- Checking for ocamlopt.opt... (found /contrail/opam/4.00.1/bin/ocamlopt.opt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
- scan ocaml scan-ocaml-fhs.ml
+ ocamlfind ocamldep -package stdext,uuid,gzip -native -I ../ocaml/idl -I +ocamldoc fhs.ml
File "fhs.ml", line 5, characters 1-4:
Error: Syntax error
*** omake: 220/331 targets are up to date
*** omake: failed (0.70 sec, 31/31 scans, 8/11 rules, 104/444 digests)
*** omake: targets were not rebuilt because of errors:
<scanner ocaml/scan-ocaml-fhs.ml>
depends on: ocaml/fhs.ml
make: *** [all] Error 2


Am I missing anything here?

Any pointer will be highly appreciated. Thanks.

Anirban

On Mar 3, 2014, at 2:44 PM, Anirban Chakraborty <abchak@juniper.net> wrote:

>
> On Mar 3, 2014, at 5:41 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
>
>> As a workaround, you could try:
>>
>> $ opam switch 4.00.1 # or 4.01.0
>> $ opam install xapi
>>
>> This topfind problem tends to only happen with the system compiler.
>
> Thanks a lot. switching to 4.00.1 solved the topfind issue. However, now I see a different issue (given below):
> —
> - build ocaml/xenops domain.o
> + ocamlfind ocamlopt -syntax camlp4o -package oclock,xml-light2,sexpr,stunnel,http-svr,netdev,rpclib,threads,xenctrl,xenstore-compat,xenctrlext,stdext,cdrom,netdev,oUnit,uuid,xcp-inventory,xcp,xcp.xen,rpclib.syntax -g -dtypes -thread -warn-error +a-4-6-9-27-28-29 -thread -ccopt -fPIC -I ../xapi -I ../util -I .. -c domain.ml
> File "domain.ml", line 307, characters 6-38:
> Error: Unbound module Xenctrl.Domain_info
> —
> My xapi code is at following change set:
>
> commit 0320fb13cc176d0864865851672131acaad7be86
> Author: David Scott <dave.scott@eu.citrix.com>
> Date: Wed Oct 30 13:58:04 2013 +0000
>
> import_raw_vdi: look for vhd-tool in %{_bindir}
>
> and xenstore is at:
>
> commit 03df4be36f6cb2236f813dad7b13db8b060060e8
> Author: David Scott <dave.scott@eu.citrix.com>
> Date: Wed Sep 11 11:15:14 2013 +0100
>
> Regenerate OASIS
> ——
>
> xenstore build and install went fine. ocamlfind list shows following:
>
> xenstore (version: 1.2.4)
> xenstore-compat (version: 0.9.3)
> xenstore.client (version: 1.2.4)
> xenstore.server (version: 1.2.4)
> xenstore.unix (version: 1.2.4)
> xenstore_transport (version: 0.9.2)
> xenstore_transport.lwt (version: 0.9.2)
> xenstore_transport.unix (version: 0.9.2)
>
> Am I missing something in building xapi? My build OS is 2.6.32.43-0.4.1.xs1.8.0.847.170785xen.
>
> Any pointer will be highly appreciated. Thanks much.
>
> Anirban
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>



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