« Up

elpi 1.18.0 Error 🔥

Context

# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-domains          base
base-nnp              base        Naked pointers prohibited in the OCaml heap
base-threads          base
base-unix             base
conf-gmp              4           Virtual package relying on a GMP lib system installation
coq                   8.17.1      The Coq Proof Assistant
coq-core              8.17.1      The Coq Proof Assistant -- Core Binaries and Tools
coq-stdlib            8.17.1      The Coq Proof Assistant -- Standard Library
coqide-server         8.17.1      The Coq Proof Assistant, XML protocol server
dune                  3.12.1      Fast, portable, and opinionated build system
ocaml                 5.1.1       The OCaml compiler (virtual package)
ocaml-base-compiler   5.1.1       Official release 5.1.1
ocaml-config          3           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: "Enrico Tassi <enrico.tassi@inria.fr>"
authors: [ "Enrico Tassi" ]
license: "LGPL-2.1-or-later"
homepage: "https://github.com/LPCIC/coq-elpi"
bug-reports: "https://github.com/LPCIC/coq-elpi/issues"
dev-repo: "git+https://github.com/LPCIC/coq-elpi"
build: [ [ make "build"   "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" "OCAMLWARN=" ]
         [ make "test"    "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ] {with-test}
       ]
install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
  "stdlib-shims"
  "elpi" {>= "1.16.5" & < "1.18.0~"}
  "coq" {>= "8.17" & < "8.18~" }
]
tags: [
  "category:Miscellaneous/Coq Extensions"
  "keyword:λProlog"
  "keyword:higher order abstract syntax"
  "logpath:elpi"
  "date:2023-07-27"
]
synopsis: "Elpi extension language for Coq"
description: """
Coq-elpi provides a Coq plugin that embeds ELPI.
It also provides a way to embed Coq's terms into λProlog using
the Higher-Order Abstract Syntax approach
and a way to read terms back.  In addition to that it exports to ELPI a
set of Coq's primitives, e.g. printing a message, accessing the
environment of theorems and data types, defining a new constant and so on.
For convenience it also provides a quotation and anti-quotation for Coq's
syntax in λProlog.  E.g. `{{nat}}` is expanded to the type name of natural
numbers, or `{{A -> B}}` to the representation of a product by unfolding
 the `->` notation. Finally it provides a way to define new vernacular commands
and
new tactics."""
url {
src: "https://github.com/LPCIC/coq-elpi/releases/download/v1.18.0/coq-elpi-1.18.0.tar.gz"
checksum: "sha256=d80012079e37f876134b0a776b81f49528f4ae63fb583e592eecc904a1005d03"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

Command
opam install -y --show-action coq-elpi.1.18.0 coq.8.17.1
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-elpi.1.18.0 coq.8.17.1
Return code
0
Duration
3 m 0 s

Install 🚀

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-elpi.1.18.0 coq.8.17.1
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name                # Installed # Synopsis
atd                   2.15.0      Parser for the ATD data format description language
atdgen                2.15.0      Generates efficient JSON serializers, deserializers and validators
atdgen-runtime        2.15.0      Runtime library for code generated by atdgen
atdts                 2.15.0      TypeScript code generation for ATD APIs
base-bigarray         base
base-domains          base
base-nnp              base        Naked pointers prohibited in the OCaml heap
base-threads          base
base-unix             base
biniou                1.2.2       Binary data format designed for speed, safety, ease of use and backward compatibility as protocols evolve
camlp-streams         5.0.1       The Stream and Genlex libraries for use with Camlp4 and Camlp5
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                   8.17.1      The Coq Proof Assistant
coq-core              8.17.1      The Coq Proof Assistant -- Core Binaries and Tools
coq-stdlib            8.17.1      The Coq Proof Assistant -- Standard Library
coqide-server         8.17.1      The Coq Proof Assistant, XML protocol server
cppo                  1.6.9       Code preprocessor like cpp for OCaml
dune                  3.12.1      Fast, portable, and opinionated build system
easy-format           1.3.4       High-level and functional interface to the Format module of the OCaml standard library
elpi                  1.17.4      ELPI - Embeddable λProlog Interpreter
menhir                20230608    An LR(1) parser generator
menhirLib             20230608    Runtime support library for parsers generated by Menhir
menhirSdk             20230608    Compile-time library for auxiliary tools related to Menhir
ocaml                 5.1.1       The OCaml compiler (virtual package)
ocaml-base-compiler   5.1.1       Official release 5.1.1
ocaml-compiler-libs   v0.12.4     OCaml compiler libraries repackaged
ocaml-config          3           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
ppx_derivers          1.2.1       Shared [@@deriving] plugin registry
ppx_deriving          5.2.1       Type-driven code generation for OCaml
ppxlib                0.31.0      Standard infrastructure for ppx rewriters
re                    1.11.0      RE is a regular expression library for OCaml
result                1.5         Compatibility Result module
seq                   base        Compatibility package for OCaml's standard iterator type starting from 4.07.
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 8.17.1).
The following actions will be performed:
  - install coq-elpi 1.18.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [coq-elpi.1.18.0: http]
Processing  1/3:
-> retrieved coq-elpi.1.18.0  (https://github.com/LPCIC/coq-elpi/releases/download/v1.18.0/coq-elpi-1.18.0.tar.gz)
Processing  2/3: [coq-elpi: make build]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "build" "COQBIN=/home/bench/.opam/ocaml-base-compiler.5.1.1/bin/" "ELPIDIR=/home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi" "OCAMLWARN=" (CWD=/home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-elpi.1.18.0)
- Using coq found in /home/bench/.opam/ocaml-base-compiler.5.1.1/bin/, from COQBIN or PATH
- echo "(* Automatically generated from elpi/coq-HOAS.elpi, don't edit *)" > src/coq_elpi_builtins_HOAS.ml
- echo "(* Regenerate via 'make src/coq_elpi_builtins_HOAS.ml' *)" >> src/coq_elpi_builtins_HOAS.ml
- echo "let code = {|" >> src/coq_elpi_builtins_HOAS.ml
- cat elpi/coq-HOAS.elpi >> src/coq_elpi_builtins_HOAS.ml
- echo "|}" >> src/coq_elpi_builtins_HOAS.ml
- echo "let elpi_dir = \"/home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi\";;" > src/coq_elpi_config.ml
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- COQDEP VFILES
- COQPP src/coq_elpi_vernacular_syntax.mlg
- COQPP src/coq_elpi_arg_syntax.mlg
- CAMLDEP src/coq_elpi_builtins.mli
- CAMLDEP src/coq_elpi_arg_HOAS.mli
- CAMLDEP src/coq_elpi_glob_quotation.mli
- CAMLDEP src/coq_elpi_HOAS.mli
- CAMLDEP src/coq_elpi_utils.mli
- CAMLDEP src/coq_elpi_programs.mli
- CAMLDEP src/coq_elpi_vernacular.mli
- OCAMLLIBDEP src/elpi_plugin.mlpack
- CAMLDEP src/coq_elpi_config.ml
- CAMLDEP src/coq_elpi_builtins.ml
- CAMLDEP src/coq_elpi_builtins_HOAS.ml
- CAMLDEP src/coq_elpi_arg_HOAS.ml
- CAMLDEP src/coq_elpi_glob_quotation.ml
- CAMLDEP src/coq_elpi_name_quotation.ml
- CAMLDEP src/coq_elpi_HOAS.ml
- CAMLDEP src/coq_elpi_utils.ml
- CAMLDEP src/coq_elpi_programs.ml
- CAMLDEP src/coq_elpi_vernacular.ml
- CAMLDEP src/coq_elpi_arg_syntax.ml
- CAMLDEP src/coq_elpi_vernacular_syntax.ml
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- FILL .merlin
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- echo "S /home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi" >> .merlin
- echo "B /home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi" >> .merlin
- if [ "/home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi" != "elpi/findlib/elpi" ]; then\
- 	echo "PKG elpi" >> .merlin;\
- fi
- Using coq found in /home/bench/.opam/ocaml-base-compiler.5.1.1/bin/, from COQBIN or PATH
- ########################## building plugin ##########################
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- CAMLC -c src/coq_elpi_utils.mli
- CAMLC -c src/coq_elpi_programs.mli
- CAMLC -c src/coq_elpi_HOAS.mli
- CAMLC -c src/coq_elpi_arg_HOAS.mli
- CAMLC -c src/coq_elpi_vernacular.mli
- CAMLC -c src/coq_elpi_glob_quotation.mli
- CAMLC -c src/coq_elpi_arg_syntax.ml
- CAMLC -c src/coq_elpi_vernacular_syntax.ml
- CAMLC -c src/coq_elpi_builtins.mli
- CAMLC -c src/coq_elpi_vernacular.ml
- CAMLC -c src/coq_elpi_config.ml
- CAMLC -c src/coq_elpi_programs.ml
- CAMLC -c src/coq_elpi_utils.ml
- CAMLC -c src/coq_elpi_HOAS.ml
- CAMLC -c src/coq_elpi_name_quotation.ml
- CAMLC -c src/coq_elpi_glob_quotation.ml
- CAMLC -c src/coq_elpi_arg_HOAS.ml
- CAMLC -c src/coq_elpi_builtins_HOAS.ml
- CAMLC -c src/coq_elpi_builtins.ml
- CAMLC -pack -o src/elpi_plugin.cmo
- CAMLC -a -o src/elpi_plugin.cma
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- W: This Makefile was generated by Coq 8.17.1
- W: while the current Coq version is 
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_config.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_utils.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_HOAS.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_glob_quotation.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_name_quotation.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_arg_HOAS.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_arg_syntax.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_builtins_HOAS.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_builtins.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_programs.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_vernacular.ml
- CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_vernacular_syntax.ml
- CAMLOPT -pack -o src/elpi_plugin.cmx
- CAMLOPT -a -o src/elpi_plugin.cmxa
- CAMLOPT -shared -o src/elpi_plugin.cmxs
- COQC theories/elpi.v
- Fatal error: Not enough heap memory to reserve minor heaps
- Aborted (core dumped)
- make[3]: *** [Makefile.coq:830: theories/elpi.vo] Error 134
- make[2]: *** [Makefile.coq:409: all] Error 2
- make[1]: *** [Makefile.coq:920: opt] Error 2
- make: *** [Makefile:51: build-core] Error 2
[ERROR] The compilation of coq-elpi.1.18.0 failed at "make build COQBIN=/home/bench/.opam/ocaml-base-compiler.5.1.1/bin/ ELPIDIR=/home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi OCAMLWARN=".
#=== ERROR while compiling coq-elpi.1.18.0 ====================================#
# context              2.1.5 | linux/x86_64 | ocaml-base-compiler.5.1.1 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-elpi.1.18.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build make build COQBIN=/home/bench/.opam/ocaml-base-compiler.5.1.1/bin/ ELPIDIR=/home/bench/.opam/ocaml-base-compiler.5.1.1/lib/elpi OCAMLWARN=
# exit-code            2
# env-file             ~/.opam/log/coq-elpi-23470-b04751.env
# output-file          ~/.opam/log/coq-elpi-23470-b04751.out
### output ###
# [...]
# CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_vernacular.ml
# CAMLOPT -c -for-pack Elpi_plugin src/coq_elpi_vernacular_syntax.ml
# CAMLOPT -pack -o src/elpi_plugin.cmx
# CAMLOPT -a -o src/elpi_plugin.cmxa
# CAMLOPT -shared -o src/elpi_plugin.cmxs
# COQC theories/elpi.v
# Fatal error: Not enough heap memory to reserve minor heaps
# Aborted (core dumped)
# make[3]: *** [Makefile.coq:830: theories/elpi.vo] Error 134
# make[2]: *** [Makefile.coq:409: all] Error 2
# make[1]: *** [Makefile.coq:920: opt] Error 2
# make: *** [Makefile:51: build-core] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-elpi 1.18.0
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-elpi.1.18.0 coq.8.17.1' failed.

Installation size

No files were installed.

Uninstall 🧹

Command
true
Return code
0
Missing removes
none
Wrong removes
none