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

Installation fails with OCaml 5.0.0 #3

Open
lkuty opened this issue Dec 30, 2022 · 0 comments
Open

Installation fails with OCaml 5.0.0 #3

lkuty opened this issue Dec 30, 2022 · 0 comments

Comments

@lkuty
Copy link

lkuty commented Dec 30, 2022

Hello,
IMHO Lazy.lazy_is_val is used although Lazy.is_val should be used with OCaml 5.0.0. I guess the name changed between OCaml versions.

$ opam install dum
The following actions will be performed:
  ∗ install easy-format 1.3.4 [required by dum]
  ∗ install dum         1.0.3
===== ∗ 2 =====
Do you want to continue? [Y/n] Y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><>  🐫
⬇ retrieved dum.1.0.3  (https://opam.ocaml.org/cache)
⬇ retrieved easy-format.1.3.4  (https://opam.ocaml.org/cache)
∗ installed easy-format.1.3.4
[ERROR] The compilation of dum.1.0.3 failed at "dune build -p dum -j 7 @install".

#=== ERROR while compiling dum.1.0.3 ==========================================#
# context     2.1.4 | macos/x86_64 | ocaml.5.0.0 | https://opam.ocaml.org#750de479
# path        ~/.opam/default/.opam-switch/build/dum.1.0.3
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p dum -j 7 @install
# exit-code   1
# env-file    ~/.opam/log/dum-76865-0392b2.env
# output-file ~/.opam/log/dum-76865-0392b2.out
### output ###
# (cd _build/default && /Users/ludo/.opam/default/bin/ocamlopt.opt -w -40 -g -I .dum.objs/byte -I .dum.objs/native -I /Users/ludo/.opam/default/lib/easy-format -intf-suffix .ml -no-alias-deps -o .dum.objs/native/dum.cmx -c -impl dum.ml)
# File "dum.ml", line 236, characters 9-25:
# 236 | 	assert (Lazy.lazy_is_val (Obj.obj r));
#       	        ^^^^^^^^^^^^^^^^
# Error: Unbound value Lazy.lazy_is_val
# (cd _build/default && /Users/ludo/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I .dum.objs/byte -I /Users/ludo/.opam/default/lib/easy-format -intf-suffix .ml -no-alias-deps -o .dum.objs/byte/dum.cmo -c -impl dum.ml)
# File "dum.ml", line 236, characters 9-25:
# 236 | 	assert (Lazy.lazy_is_val (Obj.obj r));
#       	        ^^^^^^^^^^^^^^^^
# Error: Unbound value Lazy.lazy_is_val
TristanAllaire pushed a commit to mavryk-network/flexmasa that referenced this issue Nov 6, 2023
Had to remove dependency on `dum` which does not OCaml 5:
[mjambon/dum#3](mjambon/dum#3)
(*Installation fails with OCaml 5.0.0*, **@lkuty**).

Also there is a new warning for unused record fields.
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

No branches or pull requests

1 participant