WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] api-xen-lib build error

To: Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx>
Subject: Re: [Xen-API] api-xen-lib build error
From: Sergei Lebedev <superbobry@xxxxxxxxx>
Date: Fri, 15 Jul 2011 10:21:26 +0400
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Jul 2011 23:22:20 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=p+yUFLn1kuUz+3hinv6hzxxCUjNyyvIs0jaRHuBRRHo=; b=hW0VfpeZkZ2L136KGNN++bsz4bDnCk0nbKnFvXhXlv1O51IWLYsSKGH+6a6nJ02uP+ HXSh8pvtPyXbn/dNQKsbBibRA8aHkgAV6qeoRG0/NfTdg3SfMFe8nl30S5TyAw/nzM40 yLNv8byLXI8I/R1ozJpnP7w/4+Gx6sRP/9DeM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1310684430.89914.YahooMailClassic@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <1310676137.85103.YahooMailClassic@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <1310684430.89914.YahooMailClassic@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Matthias,

As far as I'm concerned, the only thing you have to do, to make it build on a 64-bit CentOS installation, is rebuild all ocaml-* packages, mentioned in the wiki.  

--Sergei

On Fri, Jul 15, 2011 at 3:00 AM, Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx> wrote:
I thought I'd also list my build env:
- CentOS 6, with the following ocaml related pkgs:
ocaml-runtime-3.11.2-2.el6.x86_64
ocaml-camlp4-3.11.2-2.el6.x86_64
ocaml-type-conv-1.6.8-unknown.i686
ocaml-type-conv-debuginfo-1.6.8-unknown.i686
ocaml-findlib-1.2.5-5.el6.x86_64
ocaml-xmlm-1.0.2-unknown.i686
ocaml-getopt-20040811-unknown.i686
ocaml-3.11.2-2.el6.x86_64
ocaml-xmlm-devel-1.0.2-unknown.i686


--- On Thu, 7/14/11, Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx> wrote:

From: Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx>

Subject: Re: [Xen-API] api-xen-lib build error
To: "Sergei Lebedev" <superbobry@xxxxxxxxx>Date: Thursday, July 14, 2011, 1:42 PM


Sergei,

thanx for the OCAMLPATH hint.  BTW, I've installed the ocaml pkg via yum on a CentOS 6/64bit system assuming that the "right" pieces would be pulled down automatically.

I've tried building xen-api using the instruction that you've referred too.  I have tried it on CentOS 6 / 64bit and it did not work.  The page provides info about how to build it under CentOS 5.5 / 32bit.  And mentions toward the end that with the help of "mock" xen-api could be build on different systems.  It then continues to say that info about mock will be provided later on.  

I guess that's where I am stuck.

Matthias

--- On Thu, 7/14/11, Sergei Lebedev <superbobry@xxxxxxxxx> wrote:

From: Sergei Lebedev <superbobry@xxxxxxxxx>
Subject: Re: [Xen-API] api-xen-lib build error
To: "Matthias Blankenhaus" <matthiasblankenhaus@xxxxxxxxx>
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Date: Thursday, July 14, 2011, 3:03 AM

Hello Matthias,

The error message suggest architecture mismatch, are you sure that you've installed 64-bit packages? By the way, instead of copying those files, you could've altered OCAMLPATH:

$ export OCAMLPATH=/usr/lib64/ocaml:$OCAMLPATH

And one more thing, there's a wiki article on building XenAPI: http://wiki.xen.org/xenwiki/XCP_Building_Instructions -- it's a bit outdated but works for the most part.

--Sergei

On Thu, Jul 14, 2011 at 9:47 AM, Matthias Blankenhaus <matthiasblankenhaus@xxxxxxxxx> wrote:
Hi !

I am attempting to build xapi from scratch.  Thus, I started with xen-api-libs, downloading the sources from github.  Before starting my build I installed the following packges:

# yum install ocaml ocaml-findlib ocaml-getopt ocaml-type-conv ocaml-xmlm omake ocaml-xmlm-devel

I then got the following build error:

make -C stdext
ocamlfind: Package `type-conv' not found
make[1]: Entering directory `/root/xen-api-libs/stdext'
ocamlc -g -pp 'camlp4o -I ../rpc-light -I  pa_type_conv.cmo pa_rpc.cma' -I ../jsonrpc -I ../rpc-light -c -o fe.cmo fe.ml
Camlp4: Uncaught exception: DynLoader.Error ("pa_rpc.cma", "file not found in path")

File "fe.ml", line 1, characters 0-1:


I realized that some of the caml pkgs were placed under /usr/lib/ocaml instead of /usr/lib64/ocaml:

# ls /usr/lib/ocaml/
getopt  type-conv  xmlm

Next, I copied those dirs to /usr/lib64/ocaml.  This seems to have improved the situtation slightly as the type-conv module can now be found.  However, I now receive the following error:

make[1]: Entering directory `/root/xen-api-libs/stdext'
ocamlc -g -pp 'camlp4o -I ../rpc-light -I /usr/lib64/ocaml/type-conv pa_type_conv.cmo pa_rpc.cma' -I ../jsonrpc -I ../rpc-light -c -o fe.cmo fe.ml
Camlp4: Uncaught exception: DynLoader.Error ("/usr/lib64/ocaml/type-conv/pa_type_conv.cmo", "/usr/lib64/ocaml/type-conv/pa_type_conv.cmo is not a bytecode object file")

File "fe.ml", line 1, characters 0-1:
Error: Preprocessor error
make[1]: *** [fe.cmo] Error 2
make[1]: Leaving directory `/root/xen-api-libs/stdext'
make: *** [all] Error 2


Your help is much appreciated.

Matthias



_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


-----Inline Attachment Follows-----


_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>