ยซ Up

fiat-crypto 0.0.16 Error with dependencies ๐Ÿš’

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"
authors: [
  "Andres Erbsen <andreser@mit.edu>"
  "Google Inc."
  "Jade Philipoom <jadep@mit.edu> <jade.philipoom@gmail.com>"
  "Massachusetts Institute of Technology"
  "Zoe Paraskevopoulou <zoe.paraskevopoulou@gmail.com>"
]
maintainer: "Jason Gross <jgross@mit.edu>"
homepage: "https://github.com/mit-plv/fiat-crypto"
bug-reports: "https://github.com/mit-plv/fiat-crypto/issues"
license: "MIT OR Apache-2.0 OR BSD-1-Clause"
build: [
  [make "-j%{jobs}%" "EXTERNAL_DEPENDENCIES=1" "SKIP_COQSCRIPTS_INCLUDE=1" "coq" "standalone-ocaml"]
]
install: [make "EXTERNAL_DEPENDENCIES=1" "SKIP_COQSCRIPTS_INCLUDE=1" "BINDIR=%{bin}%" "install" "install-standalone-ocaml"]
depends: [
  "conf-findutils" {build}
  "ocaml" {build & >= "4.08~"}
  "ocamlfind" {build}
  "coq" {>= "8.15~"}
  "coq-coqprime" {>= "1.2.0"}
  "coq-rewriter" {>= "0.0.6" & <= "0.0.7"}
  "coq-rupicola" {= "0.0.6"}
  "coq-bedrock2-compiler" {= "0.0.4"}
]
conflict-class: [
  "coq-fiat-crypto"
]
dev-repo: "git+https://github.com/mit-plv/fiat-crypto.git"
synopsis: "Cryptographic Primitive Code Generation by Fiat"
description: """
Coq code and proofs for a command-line binary that can synthesize proven-correct
big-integer modular field arithmetic operations for cryptography.
Target languages include C, Rust, Zig, Go, and bedrock2.
"""
tags: ["logpath:Crypto"]
url {
  src: "https://github.com/mit-plv/fiat-crypto/archive/refs/tags/v0.0.16.tar.gz"
  checksum: "sha512=db5e3ce6eb30066150c3611222c48f0eaab02f5b6101faab20d8a586c4f23bacb0c46372eff03736d7f017195500b3ea0203895052bf6ade752030a08c77e86d"
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

Command
opam install -y --show-action coq-fiat-crypto.0.0.16 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-fiat-crypto.0.0.16 coq.8.17.1
Return code
7936
Duration
1 m 0 s
Output
# 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
The following actions will be performed:
  - install coq-record-update     0.3.3
  - install coq-bignums           9.0.0+coq8.17
  - install conf-findutils        1
  - install coq-coqprime          1.3.0
  - install coq-rewriter          0.0.7
  - install coq-coqutil           0.0.2
  - install coq-riscv             0.0.3
  - install coq-bedrock2          0.0.4
  - install coq-rupicola          0.0.6
  - install coq-bedrock2-compiler 0.0.4
===== 10 to install =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved coq-bedrock2.0.0.4  (https://github.com/mit-plv/bedrock2/archive/refs/tags/v0.0.4.tar.gz)
-> installed conf-findutils.1
-> retrieved coq-bedrock2-compiler.0.0.4  (https://github.com/mit-plv/bedrock2/archive/refs/tags/v0.0.4.tar.gz)
-> retrieved coq-bignums.9.0.0+coq8.17  (https://github.com/coq/bignums/archive/v9.0.0+coq8.17.tar.gz)
-> retrieved coq-coqprime.1.3.0  (https://github.com/thery/coqprime/archive/refs/tags/v8.17.tar.gz)
-> retrieved coq-coqutil.0.0.2  (https://github.com/mit-plv/coqutil/archive/refs/tags/v0.0.2.tar.gz)
-> retrieved coq-record-update.0.3.3  (https://github.com/tchajed/coq-record-update/archive/v0.3.3.tar.gz)
-> retrieved coq-riscv.0.0.3  (https://github.com/mit-plv/riscv-coq/archive/refs/tags/v0.0.3.tar.gz)
-> retrieved coq-rewriter.0.0.7  (https://github.com/mit-plv/rewriter/archive/refs/tags/v0.0.7.tar.gz)
-> retrieved coq-rupicola.0.0.6  (https://github.com/mit-plv/rupicola/archive/refs/tags/v0.0.6.tar.gz)
[ERROR] The compilation of coq-rewriter.0.0.7 failed at "make -j4".
[ERROR] The compilation of coq-record-update.0.3.3 failed at "make -j4 NO_TEST=1".
[ERROR] The compilation of coq-bignums.9.0.0+coq8.17 failed at "make -j4".
[ERROR] The compilation of coq-coqutil.0.0.2 failed at "make -j4".
#=== ERROR while compiling coq-rewriter.0.0.7 =================================#
# 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-rewriter.0.0.7
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code            2
# env-file             ~/.opam/log/coq-rewriter-24430-6703de.env
# output-file          ~/.opam/log/coq-rewriter-24430-6703de.out
### output ###
# Aborted (core dumped)
# Aborted (core dumped)
# sed 's?@META@?src/Rewriter/Util/plugins/META.coq-rewriter?g' _CoqProject.in > _CoqProject
# Makefile:27: Makefile.coq: No such file or directory
# make: *** No rule to make target '.coq-version', needed by 'Makefile.coq'.  Stop.
# make: *** Waiting for unfinished jobs....
#=== ERROR while compiling coq-record-update.0.3.3 ============================#
# 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-record-update.0.3.3
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4 NO_TEST=1
# exit-code            2
# env-file             ~/.opam/log/coq-record-update-24430-f7ebfb.env
# output-file          ~/.opam/log/coq-record-update-24430-f7ebfb.out
### output ###
# [...]
# 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)
# COQC src/RecordSet.v
# Fatal error: Not enough heap memory to reserve minor heaps
# Aborted (core dumped)
# make[2]: *** [Makefile.coq:830: src/RecordSet.vo] Error 134
# make[1]: *** [Makefile.coq:409: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-record-update.0.3.3'
# make: *** [Makefile:9: all] Error 2
#=== ERROR while compiling coq-coqutil.0.0.2 ==================================#
# 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-coqutil.0.0.2
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code            2
# env-file             ~/.opam/log/coq-coqutil-24430-64392c.env
# output-file          ~/.opam/log/coq-coqutil-24430-64392c.out
### output ###
# [...]
# Aborted (core dumped)
# make[2]: *** [Makefile.coq.all:830: /home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Z/Lia.vo] Error 134
# make[2]: *** Waiting for unfinished jobs....
# Aborted (core dumped)
# make[2]: *** [Makefile.coq.all:830: /home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Tactics/autoforward.vo] Error 134
# Aborted (core dumped)
# make[2]: *** [Makefile.coq.all:830: /home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Tactics/forward.vo] Error 134
# Aborted
# make[2]: *** [Makefile.coq.all:830: /home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/sanity.vo] Error 134
# make[1]: *** [Makefile.coq.all:409: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-coqutil.0.0.2'
# make: *** [Makefile:64: all] Error 2
#=== ERROR while compiling coq-bignums.9.0.0+coq8.17 ==========================#
# 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-bignums.9.0.0+coq8.17
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code            2
# env-file             ~/.opam/log/coq-bignums-24430-694a9d.env
# output-file          ~/.opam/log/coq-bignums-24430-694a9d.out
### output ###
# [...]
# W: while the current Coq version is 
# Fatal error: Not enough heap memory to reserve minor heaps
# Aborted (core dumped)
# CAMLOPT -c -for-pack Bignums_syntax_plugin plugin/bignums_syntax.ml
# COQC SpecViaQ/QSig.v
# Fatal error: Not enough heap memory to reserve minor heaps
# Aborted (core dumped)
# make[2]: *** [Makefile.coq:830: SpecViaQ/QSig.vo] Error 134
# make[2]: *** Waiting for unfinished jobs....
# make[1]: *** [Makefile.coq:409: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/build/coq-bignums.9.0.0+coq8.17'
# make: *** [Makefile:2: all] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-bignums       9.0.0+coq8.17
| - build coq-coqutil       0.0.2
| - build coq-record-update 0.3.3
| - build coq-rewriter      0.0.7
+- 
+- The following changes have been performed (the rest was aborted)
| - install conf-findutils 1
+- 
# Run eval $(opam env) to update the current shell environment
The former state can be restored with:
    /usr/local/bin/opam switch import "/home/bench/.opam/ocaml-base-compiler.5.1.1/.opam-switch/backup/state-20231230115000.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