ยซ Up

lsp dev Error with dependencies ๐Ÿš’

Context

# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-threads          base
base-unix             base
conf-gmp              4           Virtual package relying on a GMP lib system installation
coq                   dev         The Coq Proof Assistant
coq-core              dev         The Coq Proof Assistant -- Core Binaries and Tools
coq-stdlib            dev         The Coq Proof Assistant -- Standard Library
coqide-server         dev         The Coq Proof Assistant, XML protocol server
dune                  3.12.1      Fast, portable, and opinionated build system
ocaml                 4.14.0      The OCaml compiler (virtual package)
ocaml-base-compiler   4.14.0      Official release 4.14.0
ocaml-config          2           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
ocamlfind             1.9.6       A library manager for OCaml
zarith                1.13        Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
synopsis: "Language Server Protocol native server for Coq"
description:
"""
Language Server Protocol native server for Coq
"""
opam-version: "2.0"
maintainer: "e@x80.org"
bug-reports: "https://github.com/ejgallego/coq-lsp/issues"
homepage: "https://github.com/ejgallego/coq-lsp"
dev-repo: "git+https://github.com/ejgallego/coq-lsp.git"
authors: [
  "Emilio Jesรบs Gallego Arias <e@x80.org>"
  "Ali Caglayan <alizter@gmail.com>"
  "Shachar Itzhaky <shachari@cs.technion.ac.il>"
  "Ramkumar Ramachandra <r@artagnon.com>"
]
license: "LGPL-2.1-or-later"
doc: "https://ejgallego.github.io/coq-lsp/"
depends: [
  "ocaml"        { >= "4.11.0" }
  "dune"         { >= "3.2.0"  }
  "coq"          { = "dev" }
  "coq-serapi"   { = "dev" }
  "cmdliner"     { >= "1.1.0" }
  "yojson"       { >= "1.7.0" }
]
build: [ [ "dune" "build" "-p" name "-j" jobs ] ]
run-test: [ [ "dune" "runtest" "-p" name "-j" jobs ] ]
url {
  src: "git+https://github.com/ejgallego/coq-lsp.git#main"
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

Command
opam install -y --show-action coq-lsp.dev coq.dev
Return code
0

Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:

Command
true
Return code
0

Install dependencies

Command
opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-lsp.dev coq.dev
Return code
7936
Duration
2 m 0 s
Output
# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-threads          base
base-unix             base
conf-gmp              4           Virtual package relying on a GMP lib system installation
coq                   dev         The Coq Proof Assistant
coq-core              dev         The Coq Proof Assistant -- Core Binaries and Tools
coq-stdlib            dev         The Coq Proof Assistant -- Standard Library
coqide-server         dev         The Coq Proof Assistant, XML protocol server
dune                  3.12.1      Fast, portable, and opinionated build system
ocaml                 4.14.0      The OCaml compiler (virtual package)
ocaml-base-compiler   4.14.0      Official release 4.14.0
ocaml-config          2           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
ocamlfind             1.9.6       A library manager for OCaml
zarith                1.13        Implements arithmetic and logical operations over arbitrary-precision integers
The following actions will be performed:
  - install cppo                1.6.9
  - install ppx_derivers        1.2.1
  - install num                 1.5
  - install cmdliner            1.2.0
  - install result              1.5
  - install seq                 base
  - install csexp               1.5.2
  - install ocaml-compiler-libs v0.12.4
  - install sexplib0            v0.16.0
  - install stdlib-shims        0.3.0
  - install yojson              2.1.2
  - install dune-configurator   3.12.1
  - install parsexp             v0.16.0
  - install ppxlib              0.31.0
  - install base                v0.16.3
  - install sexplib             v0.16.0
  - install ppx_import          1.10.0
  - install ppx_deriving        5.2.1
  - install ppx_sexp_conv       v0.16.0
  - install ppx_compare         v0.16.0
  - install ppx_deriving_yojson 3.7.0
  - install ppx_hash            v0.16.0
  - install coq-serapi          dev
===== 23 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[cmdliner.1.2.0] downloaded from cache at https://opam.ocaml.org/cache
[base.v0.16.3] downloaded from cache at https://opam.ocaml.org/cache
[cppo.1.6.9] downloaded from cache at https://opam.ocaml.org/cache
[dune-configurator.3.12.1] found in cache
[csexp.1.5.2] downloaded from cache at https://opam.ocaml.org/cache
[num.1.5] downloaded from cache at https://opam.ocaml.org/cache
[ocaml-compiler-libs.v0.12.4] downloaded from cache at https://opam.ocaml.org/cache
[parsexp.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[ppx_compare.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[ppx_derivers.1.2.1] downloaded from cache at https://opam.ocaml.org/cache
[ppx_deriving.5.2.1] downloaded from cache at https://opam.ocaml.org/cache
[ppx_deriving_yojson.3.7.0] downloaded from cache at https://opam.ocaml.org/cache
[ppx_hash.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[ppx_import.1.10.0] downloaded from cache at https://opam.ocaml.org/cache
[ppx_sexp_conv.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[ppxlib.0.31.0] downloaded from cache at https://opam.ocaml.org/cache
[result.1.5] downloaded from cache at https://opam.ocaml.org/cache
[sexplib.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[sexplib0.v0.16.0] downloaded from cache at https://opam.ocaml.org/cache
[stdlib-shims.0.3.0] downloaded from cache at https://opam.ocaml.org/cache
[yojson.2.1.2] downloaded from cache at https://opam.ocaml.org/cache
[coq-serapi.dev] synchronised from git+https://github.com/ejgallego/coq-serapi.git#main
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed cppo.1.6.9
-> installed csexp.1.5.2
-> installed cmdliner.1.2.0
-> installed num.1.5
-> installed ocaml-compiler-libs.v0.12.4
-> installed ppx_derivers.1.2.1
-> installed result.1.5
-> installed seq.base
-> installed sexplib0.v0.16.0
-> installed stdlib-shims.0.3.0
-> installed dune-configurator.3.12.1
-> installed yojson.2.1.2
-> installed parsexp.v0.16.0
-> installed sexplib.v0.16.0
-> installed base.v0.16.3
-> installed ppxlib.0.31.0
-> installed ppx_compare.v0.16.0
-> installed ppx_import.1.10.0
-> installed ppx_sexp_conv.v0.16.0
-> installed ppx_deriving.5.2.1
-> installed ppx_hash.v0.16.0
-> installed ppx_deriving_yojson.3.7.0
[ERROR] The compilation of coq-serapi failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build dune build -p coq-serapi -j 4".
#=== ERROR while compiling coq-serapi.dev =====================================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.0 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-serapi.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p coq-serapi -j 4
# exit-code            1
# env-file             ~/.opam/log/coq-serapi-4971-8076c7.env
# output-file          ~/.opam/log/coq-serapi-4971-8076c7.out
### output ###
# (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.14.0/bin/ocamlc.opt -w -40 -g -ppx '.ppx/341932708445810a638020e478ebc4f1/ppx.exe --as-ppx --cookie '\''library-name="serlib"'\''' -bin-annot -I serlib/.serlib.objs/byte -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base/base_internalhash_types -I /home/bench/.opam/ocam[...]
# File "_none_", line 1:
# Error: [%import]: cannot find the type glob_relevance in Glob_term
# (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.14.0/bin/ocamlc.opt -w -40 -g -ppx '.ppx/341932708445810a638020e478ebc4f1/ppx.exe --as-ppx --cookie '\''library-name="serlib"'\''' -bin-annot -I serlib/.serlib.objs/byte -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base/base_internalhash_types -I /home/bench/.opam/ocam[...]
# File "_none_", line 1:
# Error: [%import]: cannot find the type relevance_expr in Constrexpr
# (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.14.0/bin/ocamlopt.opt -w -40 -g -ppx '.ppx/341932708445810a638020e478ebc4f1/ppx.exe --as-ppx --cookie '\''library-name="serlib"'\''' -I serlib/.serlib.objs/byte -I serlib/.serlib.objs/native -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base -I /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/base/base_internalhash_types -I /[...]
# File "_none_", line 1:
# Error: [%import]: cannot find the type glob_relevance in Glob_term
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-serapi dev
+- 
+- The following changes have been performed
| - install base                v0.16.3
| - install cmdliner            1.2.0
| - install cppo                1.6.9
| - install csexp               1.5.2
| - install dune-configurator   3.12.1
| - install num                 1.5
| - install ocaml-compiler-libs v0.12.4
| - install parsexp             v0.16.0
| - install ppx_compare         v0.16.0
| - install ppx_derivers        1.2.1
| - install ppx_deriving        5.2.1
| - install ppx_deriving_yojson 3.7.0
| - install ppx_hash            v0.16.0
| - install ppx_import          1.10.0
| - install ppx_sexp_conv       v0.16.0
| - install ppxlib              0.31.0
| - install result              1.5
| - install seq                 base
| - install sexplib             v0.16.0
| - install sexplib0            v0.16.0
| - install stdlib-shims        0.3.0
| - install yojson              2.1.2
+- 
# Run eval $(opam env) to update the current shell environment
The former state can be restored with:
    opam switch import "/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/backup/state-20240101144304.export"

Install ๐Ÿš€

Command
true
Return code
0
Duration
0 s

Installation size

No files were installed.

Uninstall ๐Ÿงน

Command
true
Return code
0
Missing removes
none
Wrong removes
none