Hi, I am trying to compile the xen tools natively on an OMAP5 board running Debian Wheezy 7.0. Currently the compilation fails with the following message: [...] make -C libs install make[5]: Entering directory `/root/xen/tools/ocaml/libs'' make[6]: Entering directory `/root/xen/tools/ocaml/libs'' make -C mmap install make[7]: Entering directory `/root/xen/tools/ocaml/libs/mmap'' MLOPT xenmmap.cmx /bin/sh: 1: ocamlopt: not found make[7]: *** [xenmmap.cmx] Error 127 make[7]: Leaving directory `/root/xen/tools/ocaml/libs/mmap'' make[6]: *** [subdir-install-mmap] Error 2 make[6]: Leaving directory `/root/xen/tools/ocaml/libs'' make[5]: *** [subdirs-install] Error 2 make[5]: Leaving directory `/root/xen/tools/ocaml/libs'' make[4]: *** [subdir-install-libs] Error 2 make[4]: Leaving directory `/root/xen/tools/ocaml'' make[3]: *** [subdirs-install] Error 2 make[3]: Leaving directory `/root/xen/tools/ocaml'' make[2]: *** [subdir-install-ocaml] Error 2 make[2]: Leaving directory `/root/xen/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/root/xen/tools'' make: *** [install-tools] Error 2 From what i could gather this is happening due to missing ocaml-native-compiler for armhf in Debian. Googling for the solution i came across the page on Xen wiki which talks about cross-compiling the tools http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling I initially tried the steps on a machine running Lubuntu 13.04 and after transferring the dist-tools ended up with the following error message: root@arm:~/xen# xl xl: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.15'' not found (required by xl) xl: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.15'' not found (required by /usr/local/lib/libxenlight.so.4.3) xl: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.15'' not found (required by /usr/local/lib/libblktapctl.so.1.0) root@arm:~/xen# Next i tried the cross-compilation on a machine running Debian Wheezy 7.2. However the cross-compiled binaries again gave the GLIBC mismatch error. How are others getting xen-tools on their ARM platforms? Can someone tell me how to proceed here? Regards, Vaibhav
On Sat, 2013-10-26 at 15:43 -0400, Vaibhav Bedia wrote:> make[7]: Entering directory `/root/xen/tools/ocaml/libs/mmap'' > MLOPT xenmmap.cmx > /bin/sh: 1: ocamlopt: not foundWe have checks for ocaml in the configure script, which we use to enable/disable ocaml support depending on the support available. We currently check for ocamlc and ocamlfind before enabling ocaml support but it looks like we end up using ocamlopt too. I suspect on x86 the presence of ocamlc implies the presence fo ocamlopt, but perhaps this is not true on arm (at least for the distro you are on). I''d be happy to receive a patch for tools/configure.ac to add a test for $OCAMLOPT to the existing $OCAMLC/$OCAMLFIND test.> How are others getting xen-tools on their ARM platforms? Can someone tell > me how to proceed here?I think we don''t have any ocaml compiler stuff installed at all, so it gets auto disabled. I expect there is also a configure option to force it off? Ian.