Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocp-index is not compatible with OCaml 5.2 #25276

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

kit-ty-kate
Copy link
Member

Was fixed upstream by OCamlPro/ocp-index#169

#=== ERROR while compiling ocp-index.1.3.5 ====================================#
# context     2.2.0~beta1 | linux/arm64 | ocaml-variants.5.2.0+trunk | git+https://github.com/ocaml/opam-repository
# path        ~/.opam/trunk/.opam-switch/build/ocp-index.1.3.5
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p ocp-index -j 9
# exit-code   1
# env-file    ~/.opam/log/ocp-index-5409-51339f.env
# output-file ~/.opam/log/ocp-index-5409-51339f.out
### output ###
# Error: This expression has type
# [...]
# (cd _build/default && /home/kit_ty_kate/.opam/trunk/bin/ocamlopt.opt -w -40 -w -9 -g -I libs/.indexLib.objs/byte -I libs/.indexLib.objs/native -I /home/kit_ty_kate/.opam/trunk/lib/bytes -I /home/kit_ty_kate/.opam/trunk/lib/ocaml/compiler-libs -I /home/kit_ty_kate/.opam/trunk/lib/ocp-indent/lexer -I /home/kit_ty_kate/.opam/trunk/lib/ocp-indent/utils -intf-suffix .ml -no-alias-deps -o libs/.ind[...]
# File "libs/indexPredefined.ml", line 35, characters 24-89:
# Error: This expression has type
#          "('a * (Asttypes.variance * Asttypes.injectivity)) list"
#        but an expression was expected of type "Outcometree.out_type_param list"
#        Type "'a * (Asttypes.variance * Asttypes.injectivity)"
#        is not compatible with type "Outcometree.out_type_param"
# (cd _build/default && /home/kit_ty_kate/.opam/trunk/bin/ocamlc.opt -w -40 -w -9 -g -bin-annot -I libs/.indexLib.objs/byte -I /home/kit_ty_kate/.opam/trunk/lib/bytes -I /home/kit_ty_kate/.opam/trunk/lib/ocaml/compiler-libs -I /home/kit_ty_kate/.opam/trunk/lib/ocp-indent/lexer -I /home/kit_ty_kate/.opam/trunk/lib/ocp-indent/utils -intf-suffix .ml -no-alias-deps -o libs/.indexLib.objs/byte/index[...]
# File "libs/indexBuild.ml", line 450, characters 4-23:
# Error: The constructor "Types.Type_abstract" expects 1 argument(s),
#        but is applied here to 0 argument(s)

@mseri mseri merged commit c537531 into ocaml:master Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants