Error on `opam install utop` (Fedora)

omerk@fedora:~$ opam install utop
The following actions will be performed:
  ∗ install utop 2.14.0

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved utop.2.14.0  (cached)
[ERROR] The compilation of utop.2.14.0 failed at "dune build -p utop -j 11
        @install".

#=== ERROR while compiling utop.2.14.0 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml-variants.5.3.0+trunk | https://opam.ocaml.org#5125fae2
# path        ~/.opam/5.3.0+trunk/.opam-switch/build/utop.2.14.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p utop -j 11 @install
# exit-code   1
# env-file    ~/.opam/log/utop-90144-4764a7.env
# output-file ~/.opam/log/utop-90144-4764a7.out
### output ###
# (cd _build/default && /home/omerk/.opam/5.3.0+trunk/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/lib/.uTop.objs/byte -I /home/omerk/.opam/5.3.0+trunk/lib/bytes -I /home/omerk/.opam/5.3.0+trunk/lib/findlib -I /home/omerk/.opam/5.3.0+trunk/lib/lambda-term -I /home/omerk/.opam/5.3.0+trunk/lib/logs -I /home/omerk/.opam/5.3.0+trunk/lib/lwt -I /home/omerk/.opam/5.3.0+trunk/lib/[...]
# File "src/lib/uTop_compat.ml", line 81, characters 8-30:
# Error: This expression has type
#          "string Format_doc.printer" = "Format_doc.formatter -> string -> unit"
#        but an expression was expected of type "Format.formatter -> 'a -> unit"
#        Type "Format_doc.formatter" is not compatible with type "Format.formatter"



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build utop 2.14.0
└─ 
╶─ No changes have been performed

and this, with --debug

omerk@fedora:~$ opam install utop --debug
00:00.009  CLI                    Parsing CLI version 2.1
00:00.009  GSTATE                 LOAD-GLOBAL-STATE @ /home/omerk/.opam
00:00.009  RSTATE                 LOAD-REPOSITORY-STATE @ /home/omerk/.opam
00:00.135  CACHE(repository)      Loaded /home/omerk/.opam/repo/state-28AC8B61.cache in 0.127s
00:00.135  RSTATE                 Cache found
00:00.135  STATE                  LOAD-SWITCH-STATE @ 5.3.0+trunk
00:00.202  CACHE(installed)       Loaded /home/omerk/.opam/5.3.0+trunk/.opam-switch/packages/cache in 0.000s
00:00.334  STATE                  Switch state loaded in 0.199s
00:00.334  FILE(switch-state)     Wrote /home/omerk/.opam/5.3.0+trunk/.opam-switch/backup/state-20240710234419.export in 0.000s
00:00.473  CLIENT                 INSTALL utop
00:00.487  GSTATE                 Failed to evaluate global variable sys-ocaml-version: "ocamlc": command not found.
00:00.610  XSYS                   Adding to env { LC_ALL=C }
00:01.220  STATE                  depexts loaded in 0.611s
00:01.254  STATE                  ERR: undefined filter variable in dependencies of ambient-context.0.1.0: with-dev-setup
00:01.254  STATE                  ERR: undefined filter variable in dependencies of ambient-context.0.1.0: with-dev-setup
00:01.267  STATE                  ERR: undefined filter variable in dependencies of binsec.0.8.1: with-dev-setup
00:01.267  STATE                  ERR: undefined filter variable in dependencies of binsec.0.8.2: with-dev-setup
00:01.267  STATE                  ERR: undefined filter variable in dependencies of binsec.0.9.0: with-dev-setup
00:01.267  STATE                  ERR: undefined filter variable in dependencies of binsec.0.9.1: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.272  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap.0.1.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap.0.1.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap-core.0.1.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap-core.0.1.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap-server-lwt.0.1.0: with-dev-setup
00:01.274  STATE                  ERR: undefined filter variable in dependencies of coap-server-lwt.0.1.0: with-dev-setup
00:01.289  STATE                  ERR: undefined filter variable in dependencies of diff.1.0.2: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.2: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.311  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.1: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.1: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.2: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.2: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.3: with-dev-setup
00:01.322  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.3: with-dev-setup
00:01.329  STATE                  ERR: undefined filter variable in dependencies of melange-numeral.0.0.1: with-dev-setup
00:01.339  STATE                  ERR: undefined filter variable in dependencies of mlx.0.9: with-dev-setup
00:01.339  STATE                  ERR: undefined filter variable in dependencies of mlx.0.9: with-dev-setup
00:01.339  STATE                  ERR: undefined filter variable in dependencies of mqtt.0.2.2: with-dev-setup
00:01.339  STATE                  ERR: undefined filter variable in dependencies of mqtt.0.2.2: with-dev-setup
00:01.359  STATE                  ERR: undefined filter variable in dependencies of ocamlmerlin-mlx.0.9: with-dev-setup
00:01.359  STATE                  ERR: undefined filter variable in dependencies of ocamlmerlin-mlx.0.9: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.6: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.6: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.7: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.7: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.8: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.8: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.9: with-dev-setup
00:01.369  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.9: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.11.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.12.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.12.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.13.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.13.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.12.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.13.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.14.0: with-dev-setup
00:01.385  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.14.1: with-dev-setup
00:01.386  STATE                  ERR: undefined filter variable in dependencies of reshowcase.5.3.0: with-dev-setup
00:01.390  STATE                  ERR: undefined filter variable in dependencies of signal.0.4.2: with-dev-setup
00:01.390  STATE                  ERR: undefined filter variable in dependencies of signal.0.4.2: with-dev-setup
00:01.391  STATE                  ERR: undefined filter variable in dependencies of slipshow.0.0.32: with-dev-setup
00:01.392  STATE                  ERR: undefined filter variable in dependencies of slipshow.0.0.32: with-dev-setup
00:01.393  STATE                  ERR: undefined filter variable in dependencies of sqids.0.1.0: with-dev-setup
00:01.393  STATE                  ERR: undefined filter variable in dependencies of sqids.0.1.0: with-dev-setup
00:01.394  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.394  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.394  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.394  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.432  STATE                  ERR: undefined filter variable in dependencies of twirp_core.0.1: with-dev
00:01.588  STATE                  Detected changed packages (marked for reinstall): {}
00:01.592  CLIENT                 Base orphans: {}
00:01.610  CLIENT                 Orphans: (changes: { utop.1.2.1, utop.1.3.0, utop.1.4.0, utop.1.5, utop.1.6, utop.1.7, utop.1.8, utop.1.9, utop.1.10, utop.1.11, utop.1.12, utop.1.14, utop.1.15, utop.1.16, utop.1.17, utop.1.18, utop.1.18.1, utop.1.18.2, utop.1.19, utop.1.19.1, utop.1.19.2, utop.1.19.3, utop.2.0.0, utop.2.0.1, utop.2.0.2, utop.2.1.0, utop.2.2.0, utop.2.3.0, utop.2.4.0, utop.2.4.1, utop.2.4.2, utop.2.4.3, utop.2.5.0, utop.2.6.0, utop.2.7.0, utop.2.8.0, utop.2.9.0, utop.2.9.1, utop.2.9.2, utop.2.10.0, utop.2.11.0, utop.2.12.0, utop.2.12.1, utop.2.13.0, utop.2.13.1, utop.2.14.0 }, transitive: false) -> full {}, versions {}
00:01.669  STATE                  ERR: undefined filter variable in dependencies of ambient-context.0.1.0: with-dev-setup
00:01.669  STATE                  ERR: undefined filter variable in dependencies of ambient-context.0.1.0: with-dev-setup
00:01.686  STATE                  ERR: undefined filter variable in dependencies of binsec.0.8.1: with-dev-setup
00:01.686  STATE                  ERR: undefined filter variable in dependencies of binsec.0.8.2: with-dev-setup
00:01.686  STATE                  ERR: undefined filter variable in dependencies of binsec.0.9.0: with-dev-setup
00:01.686  STATE                  ERR: undefined filter variable in dependencies of binsec.0.9.1: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.9.0: with-dev-setup
00:01.693  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.694  STATE                  ERR: undefined filter variable in dependencies of catala.0.10.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap.0.1.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap.0.1.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap-core.0.1.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap-core.0.1.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap-server-lwt.0.1.0: with-dev-setup
00:01.696  STATE                  ERR: undefined filter variable in dependencies of coap-server-lwt.0.1.0: with-dev-setup
00:01.716  STATE                  ERR: undefined filter variable in dependencies of diff.1.0.2: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.2: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.3: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.744  STATE                  ERR: undefined filter variable in dependencies of html_of_jsx.0.0.4: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.1: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.1: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.2: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.2: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.3: with-dev-setup
00:01.759  STATE                  ERR: undefined filter variable in dependencies of jsonschema2atd.0.0.3: with-dev-setup
00:01.768  STATE                  ERR: undefined filter variable in dependencies of melange-numeral.0.0.1: with-dev-setup
00:01.781  STATE                  ERR: undefined filter variable in dependencies of mlx.0.9: with-dev-setup
00:01.781  STATE                  ERR: undefined filter variable in dependencies of mlx.0.9: with-dev-setup
00:01.782  STATE                  ERR: undefined filter variable in dependencies of mqtt.0.2.2: with-dev-setup
00:01.782  STATE                  ERR: undefined filter variable in dependencies of mqtt.0.2.2: with-dev-setup
00:01.800  STATE                  ERR: undefined filter variable in dependencies of ocamlmerlin-mlx.0.9: with-dev-setup
00:01.800  STATE                  ERR: undefined filter variable in dependencies of ocamlmerlin-mlx.0.9: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.6: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.6: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.7: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.7: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.8: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.8: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.9: with-dev-setup
00:01.813  STATE                  ERR: undefined filter variable in dependencies of opentelemetry.0.9: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.11.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.12.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.12.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.13.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.13.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react.0.14.1: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.12.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.13.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.14.0: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reason-react-ppx.0.14.1: with-dev-setup
00:01.832  STATE                  ERR: undefined filter variable in dependencies of reshowcase.5.3.0: with-dev-setup
00:01.837  STATE                  ERR: undefined filter variable in dependencies of signal.0.4.2: with-dev-setup
00:01.837  STATE                  ERR: undefined filter variable in dependencies of signal.0.4.2: with-dev-setup
00:01.839  STATE                  ERR: undefined filter variable in dependencies of slipshow.0.0.32: with-dev-setup
00:01.839  STATE                  ERR: undefined filter variable in dependencies of slipshow.0.0.32: with-dev-setup
00:01.841  STATE                  ERR: undefined filter variable in dependencies of sqids.0.1.0: with-dev-setup
00:01.841  STATE                  ERR: undefined filter variable in dependencies of sqids.0.1.0: with-dev-setup
00:01.842  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.842  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.842  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.842  STATE                  ERR: undefined filter variable in dependencies of styled-ppx.0.56.0: with-dev-setup
00:01.872  STATE                  ERR: undefined filter variable in dependencies of twirp_core.0.1: with-dev
00:02.335  SOLVER                 resolve request=install:(utop) remove:() upgrade:()
00:03.423  SOLVER                 Warn: fallback constraint for ocamlformat (< 0.25)
00:03.424  SOLVER                 Warn: fallback constraint for ocamlformat (>= 0.24)
00:03.729  SOLVER                 Warn: fallback constraint for ocamlformat (< 0.25)
00:03.731  SOLVER                 Warn: fallback constraint for ocamlformat (>= 0.24)
00:03.732  SOLVER                 Warn: fallback constraint for ocamlformat (< 0.25)
00:03.733  SOLVER                 Warn: fallback constraint for ocamlformat (>= 0.24)
00:03.734  SOLVER                 Warn: fallback constraint for ocamlformat (< 0.25)
00:03.735  SOLVER                 Warn: fallback constraint for ocamlformat (>= 0.24)
00:03.736  SOLVER                 Warn: fallback constraint for ocamlformat (< 0.25)
00:03.737  SOLVER                 Warn: fallback constraint for ocamlformat (>= 0.24)
00:03.791  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.792  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.793  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.795  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.796  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.797  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.798  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:03.799  SOLVER                 Warn: fallback constraint for ocamlformat (= 0.24.0)
00:04.506  SOLVER                 Load cudf universe (depopts:false, build:true, post:true)
00:04.620  CUDF                   resolve request=install:(utop) remove:() upgrade:()
00:08.050  CUDF                   Conflicts: 751 (93) pkgs to remove
00:08.050  CUDF                   Preprocess cudf request (trimming: full): from 28019 to 1646 packages in 0.40s
00:08.050  SOLVER                 Calling solver builtin-mccs+glpk with criteria -removed,-count[avoid-version,changed],-count[version-lag,request],-count[version-lag,changed],-count[missing-depexts,changed],-changed
00:08.105  CUDF                   Solver call done in 0.452s
00:08.123  SOLVER                 Load cudf universe (depopts:true, build:false, post:false)
00:08.249  SOLVER                 Load cudf universe (depopts:true, build:true, post:false)
00:08.394  SOLUTION               apply
The following actions will be performed:
  ∗ install utop 2.14.0
00:08.396  SOLUTION               parallel_apply

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
00:08.397  PARALLEL               Iterate over 3 task(s) with 11 process(es)
00:08.397  PARALLEL               Starting job 54828435 (worker -/11 -/1 1/3): ⬇ utop.2.14.0
00:08.397  SOLUTION               Fetching sources for utop.2.14.0
00:08.397  ACTION                 download_package: utop.2.14.0
00:08.397  SYSTEM                 rmdir /home/omerk/.opam/5.3.0+trunk/.opam-switch/sources/utop.2.14.0
00:08.400  HASH                   openssl not found, use internal sha library
00:08.413  HASH                   openssl not found, use internal sha library
00:08.421  FILENAME               cleandir /home/omerk/.opam/5.3.0+trunk/.opam-switch/sources/utop.2.14.0
00:08.421  SYSTEM                 mkdir /home/omerk/.opam/5.3.0+trunk/.opam-switch/sources/utop.2.14.0
00:08.421  SYSTEM                 mkdir /tmp/opam-91021-2afaa5
00:08.421  PARALLEL               Next task in job 54828435: /usr/bin/tar xfj /home/omerk/.opam/download-cache/sha256/0f/0fd5a9bc5b458524a71463a1fe0cd16f9b7be13673ae303118b7216e0d273ba9 -C /tmp/opam-91021-2afaa5
Processing  1/3:
00:08.449  PARALLEL               Collected task for job 54828435 (ret:0)
00:08.453  SYSTEM                 rmdir /tmp/opam-91021-2afaa5
⬇ retrieved utop.2.14.0  (cached)
00:08.455  PARALLEL               Job 54828435 finished
00:08.455  PARALLEL               Starting job 829839474 (worker 1/11 -/1 -/3): λ utop.2.14.0
00:08.455  SYSTEM                 rmdir /home/omerk/.opam/5.3.0+trunk/.opam-switch/build/utop.2.14.0
00:08.482  ACTION                 prepare_package_source: utop.2.14.0 at /home/omerk/.opam/5.3.0+trunk/.opam-switch/build/utop.2.14.0
00:08.483  SYSTEM                 mkdir /tmp/opam-91021-7b7004
00:08.905  PARALLEL               Next task in job 829839474: /home/omerk/.opam/opam-init/hooks/sandbox.sh build dune build -p utop -j 11 @install
Processing  2/3: [utop: dune build]
00:09.313  PARALLEL               Collected task for job 829839474 (ret:1)
[ERROR] The compilation of utop.2.14.0 failed at "dune build -p utop -j 11
        @install".
00:09.313  PARALLEL               Job 829839474 finished
00:09.313  PARALLEL               Starting job 854653255 (worker -/11 1/1 -/3): ∗ utop.2.14.0
00:09.313  PARALLEL               Job 854653255 finished

#=== ERROR while compiling utop.2.14.0 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml-variants.5.3.0+trunk | https://opam.ocaml.org#5125fae2
# path        ~/.opam/5.3.0+trunk/.opam-switch/build/utop.2.14.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p utop -j 11 @install
# exit-code   1
# env-file    ~/.opam/log/utop-91021-ed2077.env
# output-file ~/.opam/log/utop-91021-ed2077.out
### output ###
# (cd _build/default && /home/omerk/.opam/5.3.0+trunk/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/lib/.uTop.objs/byte -I /home/omerk/.opam/5.3.0+trunk/lib/bytes -I /home/omerk/.opam/5.3.0+trunk/lib/findlib -I /home/omerk/.opam/5.3.0+trunk/lib/lambda-term -I /home/omerk/.opam/5.3.0+trunk/lib/logs -I /home/omerk/.opam/5.3.0+trunk/lib/lwt -I /home/omerk/.opam/5.3.0+trunk/lib/[...]
# File "src/lib/uTop_compat.ml", line 81, characters 8-30:
# Error: This expression has type
#          "string Format_doc.printer" = "Format_doc.formatter -> string -> unit"
#        but an expression was expected of type "Format.formatter -> 'a -> unit"
#        Type "Format_doc.formatter" is not compatible with type "Format.formatter"

00:09.314  CACHE(installed)       Writing the installed cache to ~/.opam/5.3.0+trunk/.opam-switch/packages/cache ...
00:09.314  CACHE(installed)       ~/.opam/5.3.0+trunk/.opam-switch/packages/cache written in 0.000s


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build utop 2.14.0
└─ 
╶─ No changes have been performed
00:09.314  ENV                    Environment is up-to-date
00:09.314  SYSTEM                 rm /home/omerk/.opam/5.3.0+trunk/.opam-switch/backup/state-20240710234419.export
00:09.315  SYSTEM                 rmdir /tmp/opam-91021-7b7004/default
00:09.624  SYSTEM                 rmdir /tmp/opam-91021-7b7004

Did you run opam update before trying to install?

I downgraded my switch version to 4.11.3 . Now everything works as it should. Thanks.

yes, the issue is that utop doesn’t support ocaml 5.3 at the moment.

It doesn’t have to be this old, utop supports 5.2 as well as 4.14, the current LTS release.

@OmerKural out of curiosity, how did you end up with an OCaml 5.3 switch? Did you use opam switch list-available to look up which compiler to use and took the last one on the list expecting it to be a stable version? (if so i think this is definitely an issue that should be fixed in opam, i’ll have a look at that)

Yes. It was the last one in the list so I downloaded it.