[Pkg-xen-devel] Bug#710650: xen-api: FTBFS: gcc: error: /home/blank/debian/xen/releases/xen/xen-4.2.1/debian/build/build-utils_amd64/tools/ocaml/libs/xc/../../../../tools/libxc/libxenctrl.so: No such file or directory- build ocaml/xapi rrddump.opt

Michael Tokarev mjt at tls.msk.ru
Wed Jun 12 11:16:19 UTC 2013


08.06.2013 12:01, Mike McClurg wrote:
> Thanks, I'll take a look at this.

I know right to nothing about this whole xen/ocaml thing.

I attempted to rebuild it locally, and found out that
it is actually _xen_ bits which are wrong, apparently:

$ strings /usr/lib/ocaml/xenlight/xenlight.cmxa
-Wl,-rpath-link=/home/blank/debian/xen/releases/xen/xen-4.2.1/debian/build/build-utils_amd64/tools/ocaml/libs/xl/../../../../tools/blktap2/control
-Wl,-rpath-link=/home/blank/debian/xen/releases/xen/xen-4.2.1/debian/build/build-utils_amd64/tools/ocaml/libs/xl/../../../../tools/xenstore
-Wl,-rpath-link=/home/blank/debian/xen/releases/xen/xen-4.2.1/debian/build/build-utils_amd64/tools/ocaml/libs/xl/../../../../tools/libxc
/home/blank/debian/xen/releases/xen/xen-4.2.1/debian/build/build-utils_amd64/tools/ocaml/libs/xl/../../../../tools/libxl/libxenlight.so

(which comes from libxen-ocaml-dev).  Apparently when
building xen, runtime paths weren't recorded properly.

i386 port (32bit) also has the same issue:

$ strings /usr/lib/ocaml/xenlight/xenlight.cmxa
-Wl,-rpath-link=/build/buildd-xen_4.2.1-2-i386-yflrOB/xen-4.2.1/debian/build/build-utils_i386/tools/ocaml/libs/xl/../../../../tools/blktap2/control
-Wl,-rpath-link=/build/buildd-xen_4.2.1-2-i386-yflrOB/xen-4.2.1/debian/build/build-utils_i386/tools/ocaml/libs/xl/../../../../tools/xenstore
-Wl,-rpath-link=/build/buildd-xen_4.2.1-2-i386-yflrOB/xen-4.2.1/debian/build/build-utils_i386/tools/ocaml/libs/xl/../../../../tools/libxc
/build/buildd-xen_4.2.1-2-i386-yflrOB/xen-4.2.1/debian/build/build-utils_i386/tools/ocaml/libs/xl/../../../../tools/libxl/libxenlight.so

(both are of version 4.2.1-2).

Note also that xen-api FTBFS with xen 4.2 due to another reason,
as shown on buildd page at:
 https://buildd.debian.org/status/package.php?p=xen-api
It looks like it needs some (minimal) forward-porting to the
more recent xen API, namely xc_domain_restore():

 xenguest_stubs.c:552:10: warning: passing argument 8 of 'xc_domain_restore' makes pointer from integer without a cast [enabled by default]
 In file included from xenguest_stubs.c:23:0:
 /usr/include/xenguest.h:119:5: note: expected 'long unsigned int *' but argument is of type 'int'
 xenguest_stubs.c:552:10: error: too few arguments to function 'xc_domain_restore'
 In file included from xenguest_stubs.c:23:0:
 /usr/include/xenguest.h:119:5: note: declared here

Thanks!

/mjt



More information about the Pkg-xen-devel mailing list