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

Failed to build dune 3.16.1 #11289

Closed
LaicepS opened this issue Jan 13, 2025 · 1 comment
Closed

Failed to build dune 3.16.1 #11289

LaicepS opened this issue Jan 13, 2025 · 1 comment

Comments

@LaicepS
Copy link

LaicepS commented Jan 13, 2025

I'm unable to install a recent version of dune required by ocaml-lsp-server.
Note: if there is another way to have ocaml-lsp-server installed and working with the Coc plugin, that would be very helpful.

Expected Behavior

opam install dune.3.16.1

Succeed.

Actual Behavior

[ERROR] The compilation of dune.3.16.1 failed at "./_boot/dune.exe build dune.install --release --profile dune-bootstrap -j 15".

#=== ERROR while compiling dune.3.16.1 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml-base-compiler.4.14.1 | file:///home/dorian/tis-analyzer/deps/opam
# path        ~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1
# command     ~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1/./_boot/dune.exe build dune.install --release --profile dune-bootstrap -j 15
# exit-code   1
# env-file    ~/tis/deps/opam/root-2.1.x/log/dune-67371-1abe65.env
# output-file ~/tis/deps/opam/root-2.1.x/log/dune-67371-1abe65.out
### output ###
# [...]
# -> required by ("ocaml_and_build_env_kind", ())
# -> required by ("<unnamed>", ())
# -> required by ("<unnamed>", ())
# -> required by ("<unnamed>", ())
# -> required by ("load-dir", In_build_dir "default")
# -> required by ("toplevel", ())
# 
# I must not crash.  Uncertainty is the mind-killer. Exceptions are the
# little-death that brings total obliteration.  I will fully express my cases. 
# Execution will pass over me and through me.  And when it has gone past, I
# will unwind the stack along its path.  Where the cases are handled there will
# be nothing.  Only I will remain.



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


~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1 $ 0 cat _build/log 
# /home/dorian/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1/./_boot/dune.exe build dune.install --release --profile dune-bootstrap -j 15
# OCAMLPARAM: unset
# Shared cache: disabled
# Shared cache location: /home/dorian/.cache/dune/db
# Workspace root:
# /home/dorian/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1
# Dune context:
#  { name = "default"
#  ; kind = "default"
#  ; profile = User_defined "dune-bootstrap"
#  ; merlin = true
#  ; fdo_target_exe = None
#  ; build_dir = In_build_dir "default"
#  ; instrument_with = []
#  }

Reproduction

I guess it is an error in my environment.

Specifications

~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1 $ 1 dune --version
3.7.1
~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1 $ 0 ocamlc --version
4.14.1
~/tis/deps/opam/root-2.1.x/4.14.1/.opam-switch/build/dune.3.16.1 $ 0 cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"

Best regards,

Dorian

@maiste
Copy link
Collaborator

maiste commented Jan 15, 2025

IIRC, in CoC (used it a while ago…) as long as you install ocaml-lsp-server, the LSP plugin should pick the correct one, isn't it? Unfortunately, I'm not able to reproduce your error... It might be indeed related to the environment.

As we only support the latest version of Dune, doesn't it work with dune.3.17.1?

@maiste maiste closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2025
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

2 participants