error: incompatible types when assigning to type 'libxl_defbool' from type 'int'
ts468 opened this issue · comments
Hi!
I'm trying to build the XenServer tools on NixOS, and compiling ocaml_xenLowlevelLibs causes the following error when building against Xen 4.5.0 as officially released:
https://gist.github.com/ts468/316c69f7f0203a204d41
Could you maybe assist me in solving this issue?
Many thanks,
Thomas
I have the same error. Did you learn any more about it?
I have the same problem in Ubuntu 15.04 on x86.
$ opam install xenctrl
[...]
#=== ERROR while installing xenctrl.0.9.26 ====================================#
# opam-version 1.2.2
# os linux
# command make
# path /home/mag/.opam/system/build/xenctrl.0.9.26
# compiler system (4.01.0)
# exit-code 2
# env-file /home/mag/.opam/system/build/xenctrl.0.9.26/xenctrl-30361-e7966f.env
# stdout-file /home/mag/.opam/system/build/xenctrl.0.9.26/xenctrl-30361-e7966f.out
# stderr-file /home/mag/.opam/system/build/xenctrl.0.9.26/xenctrl-30361-e7966f.err
### stdout ###
# /usr/lib/ocaml/caml/mlvalues.h:71:36: note: in definition of macro ‘Val_long’
# [...]
# ^
# /usr/lib/ocaml/caml/mlvalues.h:281:21: note: in expansion of macro ‘Val_int’
# #define Val_bool(x) Val_int((x) != 0)
# ^
# xenlight/xenlight_stubs.c:2954:29: note: in expansion of macro ‘Val_bool’
# domain_remus_info_field = Val_bool(domain_remus_info_c->compression);
# ^
# Command exited with code 2.
# Makefile:27: recipe for target 'build' failed
### stderr ###
# E: Failure("Command ''/usr/bin/ocamlbuild' lib/libxenctrl_stubs.a lib/dllxenctrl_stubs.so lib/xenctrl.cma lib/xenctrl.cmxa lib/xenctrl.a lib/xenctrl.cmxs xenlight/libxenlight_stubs.a xenlight/dllxenlight_stubs.so xenlight/xenlight.cma xenlight/xenlight.cmxa xenlight/xenlight.a xenlight/xenlight.cmxs xenlight/libxentoollog_stubs.a xenlight/dllxentoollog_stubs.so xenlight/xentoollog.cma xenlight/xentoollog.cmxa xenlight/xentoollog.a xenlight/xentoollog.cmxs test/test_hvm_check_pvdriver.native -tag debug -j 4' terminated with error code 10")
# make: *** [build] Error 1
$ ocaml -version 2 ↵
The OCaml toplevel, version 4.01.0
$ apt-cache policy libxen-dev
libxen-dev:
Installed: 4.5.0-1ubuntu4.1
Candidate: 4.5.0-1ubuntu4.1
Version table:
*** 4.5.0-1ubuntu4.1 0
500 http://no.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages
100 /var/lib/dpkg/status
4.5.0-1ubuntu4 0
500 http://no.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
$ gcc --version
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2
[...]
As far as I remember ocaml_xenLowlevelLibs is not needed for Xen 4.5 anymore.
Hm - so the Xenctrl package in opam will not work with Xen 4.5? Are there any alternatives?