[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-API] api-xen-lib build error
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
--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
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|