« Up

serapi dev Error 🔥

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:
opam-version: "2.0"
maintainer:   "e@x80.org"
homepage:     "https://github.com/ejgallego/coq-serapi"
bug-reports:  "https://github.com/ejgallego/coq-serapi/issues"
dev-repo:     "git+https://github.com/ejgallego/coq-serapi.git"
license:      "GPL-3.0-or-later"
doc:          "https://ejgallego.github.io/coq-serapi/"
synopsis:     "Serialization library and protocol for machine interaction with the Coq proof assistant"
description:  """
SerAPI is a library for machine-to-machine interaction with the
Coq proof assistant, with particular emphasis on applications in IDEs,
code analysis tools, and machine learning. SerAPI provides automatic
serialization of Coq's internal OCaml datatypes from/to JSON or
S-expressions (sexps).
"""
authors: [
  "Emilio Jesús Gallego Arias"
  "Karl Palmskog"
  "Clément Pit-Claudel"
  "Kaiyu Yang"
]
depends: [
  "ocaml"               {           >= "4.09.0"              }
  "coq"                 {           >= "dev"                 }
  "cmdliner"            {           >= "1.1.0"               }
  "ocamlfind"           {           >= "1.8.0"               }
  "sexplib"             {           >= "v0.13.0"             }
  "dune"                {           >= "2.0.1"               }
  "ppx_import"          { build   & >= "1.5-3" & < "2.0"     }
  "ppx_deriving"        {           >= "4.2.1"               }
  "ppx_sexp_conv"       {           >= "v0.13.0"             }
  "ppx_compare"         {           >= "v0.13.0"             }
  "ppx_hash"            {           >= "v0.13.0"             }
  "yojson"              {           >= "1.7.0"               }
  "ppx_deriving_yojson" {           >= "3.4"                 }
]
conflicts: [
  "result" {< "1.5"}
]
build: [ "dune" "build" "-p" name "-j" jobs ]
url {
  src: "git+https://github.com/ejgallego/coq-serapi.git#main"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

Command
opam install -y --show-action coq-serapi.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-serapi.dev coq.dev
Return code
0
Duration
2 m 0 s

Install 🚀

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y coq-serapi.dev coq.dev
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name                # Installed # Synopsis
base                  v0.16.3     Full standard library replacement for OCaml
base-bigarray         base
base-threads          base
base-unix             base
cmdliner              1.2.0       Declarative definition of command line interfaces for OCaml
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
cppo                  1.6.9       Code preprocessor like cpp for OCaml
csexp                 1.5.2       Parsing and printing of S-expressions in Canonical form
dune                  3.12.1      Fast, portable, and opinionated build system
dune-configurator     3.12.1      Helper library for gathering system configuration
num                   1.5         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml                 4.14.0      The OCaml compiler (virtual package)
ocaml-base-compiler   4.14.0      Official release 4.14.0
ocaml-compiler-libs   v0.12.4     OCaml compiler libraries repackaged
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
parsexp               v0.16.0     S-expression parsing library
ppx_compare           v0.16.0     Generation of comparison functions from types
ppx_derivers          1.2.1       Shared [@@deriving] plugin registry
ppx_deriving          5.2.1       Type-driven code generation for OCaml
ppx_deriving_yojson   3.7.0       JSON codec generator for OCaml
ppx_hash              v0.16.0     A ppx rewriter that generates hash functions from type expressions and definitions
ppx_import            1.10.0      A syntax extension for importing declarations from interface files
ppx_sexp_conv         v0.16.0     [@@deriving] plugin to generate S-expression conversion functions
ppxlib                0.31.0      Standard infrastructure for ppx rewriters
result                1.5         Compatibility Result module
seq                   base        Compatibility package for OCaml's standard iterator type starting from 4.07.
sexplib               v0.16.0     Library for serializing OCaml values to and from S-expressions
sexplib0              v0.16.0     Library containing the definition of S-expressions and some base converters
stdlib-shims          0.3.0       Backport some of the new stdlib features to older compiler
yojson                2.1.2       Yojson is an optimized parsing and printing library for the JSON format
zarith                1.13        Implements arithmetic and logical operations over arbitrary-precision integers
[NOTE] Package coq is already installed (current version is dev).
The following actions will be performed:
  - install coq-serapi dev
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-serapi.dev] synchronised from git+https://github.com/ejgallego/coq-serapi.git#main
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[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-26597-e4db2f.env
# output-file          ~/.opam/log/coq-serapi-26597-e4db2f.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
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment

Installation size

No files were installed.

Uninstall 🧹

Command
true
Return code
0
Missing removes
none
Wrong removes
none