The beta release of OCaml 4.10 is around the corner, and currently, the latest version of ocp-index does not support 4.10 and fails with the following error message:
#=== ERROR while compiling ocp-index.1.1.9 ====================================#
# context 2.0.5 | linux/x86_64 | ocaml-variants.4.10.0+trunk | file:///home/opam/opam-repository
# path ~/.opam/4.10.0+trunk/.opam-switch/build/ocp-index.1.1.9
# command ~/.opam/4.10.0+trunk/bin/dune build -p ocp-index -j 71
# exit-code 1
# env-file ~/.opam/log/ocp-index-6-ae7898.env
# output-file ~/.opam/log/ocp-index-6-ae7898.out
### output ###
# [...]
# Error: This variant expression is expected to have type Type_immediacy.t
# The constructor false does not belong to type Type_immediacy.t
# ocamlc libs/.indexLib.objs/byte/indexBuild.{cmo,cmt} (exit 2)
# (cd _build/default && /home/opam/.opam/4.10.0+trunk/bin/ocamlc.opt -w -40 -w -9 -g -bin-annot -I libs/.indexLib.objs/byte -I /home/opam/.opam/4.10.0+trunk/lib/bytes -I /home/opam/.opam/4.10.0+trunk/lib/ocaml/compiler-libs -I /home/opam/.opam/4.10.0+trunk/lib/ocp-indent/lexer -I /home/opam/.opam/4.10.0+trunk/lib/ocp-indent/utils -intf-suffix .ml -no-alias-deps -o libs/.indexLib.objs/byte/index[...]
# File "libs/indexBuild.ml", line 409, characters 34-39:
# Error: This variant expression is expected to have type Type_immediacy.t
# The constructor false does not belong to type Type_immediacy.t
# ocamlopt libs/.indexLib.objs/native/indexPredefined.{cmx,o} (exit 2)
# (cd _build/default && /home/opam/.opam/4.10.0+trunk/bin/ocamlopt.opt -w -40 -w -9 -g -I libs/.indexLib.objs/byte -I libs/.indexLib.objs/native -I /home/opam/.opam/4.10.0+trunk/lib/bytes -I /home/opam/.opam/4.10.0+trunk/lib/ocaml/compiler-libs -I /home/opam/.opam/4.10.0+trunk/lib/ocp-indent/lexer -I /home/opam/.opam/4.10.0+trunk/lib/ocp-indent/utils -intf-suffix .ml -no-alias-deps -o libs/.ind[...]
# File "libs/indexPredefined.ml", line 38, characters 26-31:
# Error: This variant expression is expected to have type Type_immediacy.t
# The constructor false does not belong to type Type_immediacy.t
The beta release of OCaml 4.10 is around the corner, and currently, the latest version of ocp-index does not support 4.10 and fails with the following error message: