ยซ Up

coqutil 0.0.2 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"
authors: [
  "Massachusetts Institute of Technology"
]
maintainer: "Jason Gross <jgross@mit.edu>"
homepage: "https://github.com/mit-plv/coqutil"
bug-reports: "https://github.com/mit-plv/coqutil/issues"
license: "MIT"
build: [
  [make "-j%{jobs}%"]
]
install: [make "install"]
depends: [
  "conf-findutils" {build}
  "coq" {>= "8.11~"}
]
conflict-class: [
  "coq-coqutil"
]
dev-repo: "git+https://github.com/mit-plv/coqutil.git"
synopsis: "Coq library for tactics, basic definitions, sets, maps"
description: """
### coqutil -- Various Coq Utilities
Contents:
* [Datatypes](https://github.com/mit-plv/coqutil/tree/master/src/coqutil/Datatypes): Some utilities for existing datatypes, and new datatypes.
* [Decidable](https://github.com/mit-plv/coqutil/blob/master/src/coqutil/Decidable.v): `BoolSpec`-based decidability typeclasses. Allows one to write `if MyType_eqb a b then ... else ...` where `MyType_eqb a b` returns a `bool`, instead of writing `if MyType_eq_dec a b then ... else ...` where `MyType_eq_dec a b` returns a `sumbool`, while still getting `a = b` and `a <> b` as hypotheses (as opposed to `MyType_eqb a b = true` and `MyType_eqb a b = false`) after destructing the `if` (need to use [`destr`](https://github.com/mit-plv/coqutil/blob/master/src/coqutil/Tactics/destr.v) instead of `destruct`). So one gets the benefits of `Sumbool` without getting its disadvantage of having to carry around proof terms, which can cause a blow-up under reduction if one is not careful.
* [Map](https://github.com/mit-plv/coqutil/tree/master/src/coqutil/Map): A typeclass based map library allowing one to abstract over the concrete implementation of maps. The implementations have to be extensional, which excludes certain efficient implementations, but simplifies proofs, because one can `replace mapA with mapB` if one can prove that `mapA` and `mapB` have the same contents. Comes with a [solver](https://github.com/mit-plv/coqutil/blob/master/src/coqutil/Map/Solver.v) which works reasonably fast on most map goals we have encountered so far.
* [Tactics](https://github.com/mit-plv/coqutil/tree/master/src/coqutil/Tactics): A collection of useful general-purpose tactics.
* [Word](https://github.com/mit-plv/coqutil/tree/master/src/coqutil/Word): Fixed width words for any width, in the same typeclass based style as the map library. Designed for the case where all words have the same (potentially abstract) bit width. Therefore, it does not provide functions to concatenate and split words, which is better addressed by [bbv](https://github.com/mit-plv/bbv/).
* [Z](https://github.com/mit-plv/coqutil/tree/master/src/coqutil/Z): Utilities to work with the `Z` type from Coq's standard library, including a tactic to prove `Z` equalities by splitting the equality into equalities on bit index ranges, a tactic to make `lia` capable of reasoning about goals with division and modulo, and a tactic to simplify expressions containing nested occurrences of `mod`, and more misc utilities.
* Various macros, notations, and desirable default settings.
Each feature is intended to be as minimal and as independent of the other features as possible, so that users can pick just what they need.
"""
tags: ["logpath:coqutil"]
url {
  src: "https://github.com/mit-plv/coqutil/archive/refs/tags/v0.0.2.tar.gz"
  checksum: "sha512=f3d37d57fb4301cbf6ab0bdd65c78bf5906607775b483e4f1b29e02e2a09980ef97ed7a9f19629d41bec45e281d7212cbb150e2602a26d30f408dd012ba51230"
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

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

Install ๐Ÿš€

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-coqutil.0.0.2 coq.dev
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-threads          base
base-unix             base
conf-findutils        1           Virtual package relying on findutils
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
[NOTE] Package coq is already installed (current version is dev).
The following actions will be performed:
  - install coq-coqutil 0.0.2
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [coq-coqutil.0.0.2: http]
[coq-coqutil.0.0.2] downloaded from https://github.com/mit-plv/coqutil/archive/refs/tags/v0.0.2.tar.gz
Processing  1/1:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/2: [coq-coqutil: make]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "-j4" (CWD=/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2)
- printf -- '-R /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/ coqutil\n-arg -w -arg unsupported-attributes\n' > _CoqProject
- Generating Makefile.coq.all
- make -f Makefile.coq.all
- make[1]: Entering directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2'
- COQDEP VFILES
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Tactics/autoforward.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/sanity.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Tactics/forward.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Z/Lia.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Datatypes/Option.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Sorting/Permutation.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Tactics/fwd_arith_hints.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Datatypes/PrimitivePair.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Word/Interface.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Z/div_mod_to_equations.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Z/PushPullMod.v
- COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.v
- File "/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.v", line 4, characters 32-34:
- Error: This expression has type message list
- but an expression was expected of type message
- 
- make[2]: *** [Makefile.coq.all:847: /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.vo] Error 1
- make[2]: *** [/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.vo] Deleting file '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.glob'
- make[2]: *** Waiting for unfinished jobs....
- make[1]: *** [Makefile.coq.all:417: all] Error 2
- make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2'
- make: *** [Makefile:64: all] Error 2
[ERROR] The compilation of coq-coqutil failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4".
#=== ERROR while compiling coq-coqutil.0.0.2 ==================================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.0 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.4.14.0/.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-12669-335865.env
# output-file          ~/.opam/log/coq-coqutil-12669-335865.out
### output ###
# [...]
# COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Z/PushPullMod.v
# COQC /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.v
# File "/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.v", line 4, characters 32-34:
# Error: This expression has type message list
# but an expression was expected of type message
# 
# make[2]: *** [Makefile.coq.all:847: /home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.vo] Error 1
# make[2]: *** [/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.vo] Deleting file '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2/src/coqutil/Ltac2Lib/Msg.glob'
# make[2]: *** Waiting for unfinished jobs....
# make[1]: *** [Makefile.coq.all:417: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-coqutil.0.0.2'
# make: *** [Makefile:64: all] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-coqutil 0.0.2
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-coqutil.0.0.2 coq.dev' failed.

Installation size

No files were installed.

Uninstall ๐Ÿงน

Command
true
Return code
0
Missing removes
none
Wrong removes
none