Output of opam install stdune
:
#=== ERROR while compiling stdune.3.15.0 ======================================#
# context 2.1.5 | linux/x86_64 | ocaml.5.1.1 | https://opam.ocaml.org#f2df0b10
# path ~/.opam/default/.opam-switch/build/stdune.3.15.0
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p stdune -j 7 @install
# exit-code 1
# env-file ~/.opam/log/stdune-953120-c77bb5.env
# output-file ~/.opam/log/stdune-953120-c77bb5.out
### output ###
# Error: The files /usr/lib/ocaml/dyn/dyn.cmi
# [...]
# make inconsistent assumptions over interface Pp
# (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/src/.stdune.objs/byte -I /home/willow/.opam/default/lib/csexp -I /home/willow/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune[...]
# File "otherlibs/stdune/src/exn_with_backtrace.mli", line 1:
# Error: The files otherlibs/stdune/src/.stdune.objs/byte/stdune__Result.cmi
# and /home/willow/.opam/default/lib/pp/pp.cmi
# make inconsistent assumptions over interface Pp
# (cd _build/default && /usr/bin/ocamlc.opt -w -40 -alert -unstable -g -bin-annot -I otherlibs/stdune/src/.stdune.objs/byte -I /home/willow/.opam/default/lib/csexp -I /home/willow/.opam/default/lib/pp -I /usr/lib/ocaml/dyn -I /usr/lib/ocaml/ordering -I /usr/lib/ocaml/unix -I otherlibs/stdune/dune_filesystem_stubs/.dune_filesystem_stubs.objs/byte -no-alias-deps -open Stdune__ -o otherlibs/stdune[...]
# File "otherlibs/stdune/src/path.mli", line 1:
# Error: The files otherlibs/stdune/src/.stdune.objs/byte/stdune__Path_intf.cmi
# and /home/willow/.opam/default/lib/pp/pp.cmi
# make inconsistent assumptions over interface Pp
I’m trying to install ocaml-lsp-server
, which depends on stdune
. For some reason, stdune
always fails to install on my machine… I tried doing this in a fresh opam switch, and I still got the same exact error.
Please help !