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

OCaml 5.2 support #60

Closed
kit-ty-kate opened this issue Feb 20, 2024 · 0 comments · Fixed by #61
Closed

OCaml 5.2 support #60

kit-ty-kate opened this issue Feb 20, 2024 · 0 comments · Fixed by #61
Assignees
Labels
enhancement New feature or request

Comments

@kit-ty-kate
Copy link

the current version of earlybird fails with the following message on OCaml 5.2:

#=== ERROR while compiling earlybird.1.3.0 ====================================#
# context              2.2.0~beta2~dev | linux/x86_64 | ocaml-variants.5.2.0+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/5.2/.opam-switch/build/earlybird.1.3.0
# command              ~/.opam/5.2/bin/dune build -p earlybird -j 1 @install
# exit-code            1
# env-file             ~/.opam/log/earlybird-19-f89a06.env
# output-file          ~/.opam/log/earlybird-19-f89a06.out
### output ###
# (cd _build/default && /home/opam/.opam/5.2/bin/ocamlopt.opt -w -40 -w -9 -g -I src/typenv/.typenv.objs/byte -I src/typenv/.typenv.objs/native -I /home/opam/.opam/5.2/lib/ocaml-compiler-libs/common -I /home/opam/.opam/5.2/lib/ocaml/compiler-libs -intf-suffix .ml -no-alias-deps -o src/typenv/.typenv.objs/native/typenv.cmx -c -impl src/typenv/typenv.pp.ml)
# File "src/typenv/typenv.ml", lines 11-15, characters 46-5:
# 11 | ..............................................(fun ~unit_name ->
# 12 |       let search_dirs = !persistent_env_get_search_dirs unit_name in
# 13 |       load_path_init search_dirs;
# 14 |       old_load ~unit_name
# 15 |     )
# Error: This function should have type
#          "allow_hidden:bool ->
#          unit_name:string -> Persistent_env.Persistent_signature.t option"
#        but its first argument is labeled "~unit_name" instead of "~allow_hidden"
# (cd _build/default && /home/opam/.opam/5.2/bin/ocamlc.opt -w -40 -g -bin-annot -I src/debugger/.debugger.objs/byte -I /home/opam/.opam/5.2/lib/bytes -I /home/opam/.opam/5.2/lib/iter -I /home/opam/.opam/5.2/lib/logs -I /home/opam/.opam/5.2/lib/lru -I /home/opam/.opam/5.2/lib/lwt -I /home/opam/.opam/5.2/lib/lwt/unix -I /home/opam/.opam/5.2/lib/lwt_react -I /home/opam/.opam/5.2/lib/menhirLib -I /home/opam/.opam/5.2/lib/ocaml-compiler-libs/common -I /home/opam/.opam/5.2/lib/ocaml/compiler-libs -I /home/opam/.opam/5.2/lib/ocaml/str -I /home/opam/.opam/5.2/lib/ocaml/threads -I /home/opam/.opam/5.2/lib/ocaml/unix -I /home/opam/.opam/5.2/lib/ocplib-endian -I /home/opam/.opam/5.2/lib/ocplib-endian/bigstring -I /home/opam/.opam/5.2/lib/path_glob -I /home/opam/.opam/5.2/lib/ppx_deriving/runtime -I /home/opam/.opam/5.2/lib/psq -I /home/opam/.opam/5.2/lib/react -I /home/opam/.opam/5.2/lib/result -I /home/opam/.opam/5.2/lib/seq -I src/global/.global.objs/byte -I src/ground/.ground.objs/byte -I src/trivia_check/.trivia_check.objs/byte -I src/typenv/.typenv.objs/byte -no-alias-deps -open Debugger__ -o src/debugger/.debugger.objs/byte/debugger__Eval.cmo -c -impl src/debugger/inspect/eval.pp.ml)
# File "src/debugger/inspect/eval.ml", line 17, characters 58-65:
# 17 |             let pos = Ident.find_same id event.ev_compenv.ce_heap in
#                                                                ^^^^^^^
# Error: This expression has type "Instruct.compilation_env"
#        There is no field "ce_heap" within type "Instruct.compilation_env"
# (cd _build/default && /home/opam/.opam/5.2/bin/ocamlc.opt -w -40 -g -bin-annot -I src/debugger/.debugger.objs/byte -I /home/opam/.opam/5.2/lib/bytes -I /home/opam/.opam/5.2/lib/iter -I /home/opam/.opam/5.2/lib/logs -I /home/opam/.opam/5.2/lib/lru -I /home/opam/.opam/5.2/lib/lwt -I /home/opam/.opam/5.2/lib/lwt/unix -I /home/opam/.opam/5.2/lib/lwt_react -I /home/opam/.opam/5.2/lib/menhirLib -I /home/opam/.opam/5.2/lib/ocaml-compiler-libs/common -I /home/opam/.opam/5.2/lib/ocaml/compiler-libs -I /home/opam/.opam/5.2/lib/ocaml/str -I /home/opam/.opam/5.2/lib/ocaml/threads -I /home/opam/.opam/5.2/lib/ocaml/unix -I /home/opam/.opam/5.2/lib/ocplib-endian -I /home/opam/.opam/5.2/lib/ocplib-endian/bigstring -I /home/opam/.opam/5.2/lib/path_glob -I /home/opam/.opam/5.2/lib/ppx_deriving/runtime -I /home/opam/.opam/5.2/lib/psq -I /home/opam/.opam/5.2/lib/react -I /home/opam/.opam/5.2/lib/result -I /home/opam/.opam/5.2/lib/seq -I src/global/.global.objs/byte -I src/ground/.ground.objs/byte -I src/trivia_check/.trivia_check.objs/byte -I src/typenv/.typenv.objs/byte -no-alias-deps -open Debugger__ -o src/debugger/.debugger.objs/byte/debugger__Value_basic.cmo -c -impl src/debugger/inspect/value_basic.pp.ml)
# File "src/debugger/inspect/value_basic.ml", line 80, characters 21-34:
# 80 |          type_kind = Type_abstract;
#                           ^^^^^^^^^^^^^
# Error: The constructor "Type_abstract" expects 1 argument(s),
#        but is applied here to 0 argument(s)
@sim642 sim642 self-assigned this Feb 21, 2024
@sim642 sim642 added the bug Something isn't working label Feb 21, 2024
@sim642 sim642 mentioned this issue Feb 21, 2024
2 tasks
@sim642 sim642 added enhancement New feature or request and removed bug Something isn't working labels Feb 25, 2024
sim642 added a commit to sim642/opam-repository that referenced this issue Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants