[virt-tools-list] virt-top compilation failure
Richard W.M. Jones
rjones at redhat.com
Thu Oct 25 21:47:08 UTC 2012
On Mon, Oct 22, 2012 at 07:40:19PM +0200, Jasper Lievisse Adriaanse wrote:
> Hi,
>
> Is this build error a known issue with virt-top?
>
> gmake[1]: Entering directory `/usr/obj/ports/virt-top-1.0.8/virt-top-1.0.8/virt-top'
> rm -f .depend .depend-t
> ocamlfind ocamldep -package unix,extlib,curses,str,libvirt -package csv virt_top.mli virt_top_utils.mli virt_top.ml virt_top_utils.ml virt_top_version.ml virt_top_calendar2.ml virt_top_calendar1.ml virt_top_xml.ml virt_top_csv.ml virt_top_main.ml virt_top_gettext.ml | \
> sed 's/ :/:/' | \
> sed 's/ *$//' | \
> sed -e :a -e '/ *\\$/N; s/ *\\\n */ /; ta' | \
> sort > .depend-t
> mv .depend-t .depend
> gmake[1]: Leaving directory `/usr/obj/ports/virt-top-1.0.8/virt-top-1.0.8/virt-top'
> gmake[1]: Entering directory `/usr/obj/ports/virt-top-1.0.8/virt-top-1.0.8/virt-top'
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top_version.ml
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top_gettext.ml
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top_utils.mli
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top_utils.ml
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top.mli
> ocamlfind ocamlc -g -warn-error A -package unix,extlib,curses,str,libvirt -package csv -c virt_top.ml
> File "virt_top.ml", line 83, characters 6-110:
> Error: This expression has type string but an expression was expected of type
> sort_order
> gmake[1]: *** [virt_top.cmo] Error 2
> gmake[1]: Leaving directory `/usr/obj/ports/virt-top-1.0.8/virt-top-1.0.8/virt-top'
>
> The offending line 83 is:
> failwithf (f_"%s: sort order should be: %s")
>
> Any idea what's going on here?
No. The error makes no sense since failwithf should return 'a
(any type) which trivially matches type sort_order.
What version of OCaml is this? Is ocaml-gettext installed, and if
so what version?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
More information about the virt-tools-list
mailing list