« Up

mi-cho-coq dev Error

(2021-04-06 20:47:58 UTC)

Context

# 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            3           Virtual package relying on a GMP lib system installation
coq                 dev         Formal proof management system
num                 1.4         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.10.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1      Official release 4.10.1
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.9.1       A library manager for OCaml
zarith              1.12        Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "raphael.cauderlier@nomadic-labs.com"
authors: [ "Raphaël Cauderlier" "Bruno Bernardo" "Julien Tesson" "Arvid Jakobsson" ]
homepage: "https://gitlab.com/nomadic-labs/mi-cho-coq/"
dev-repo: "git+https://gitlab.com/nomadic-labs/mi-cho-coq/"
bug-reports: "https://gitlab.com/nomadic-labs/mi-cho-coq/issues"
license: "MIT"
build: [
  ["./configure"]
  [make "-j%{jobs}%"]
]
install: [
  make "install"
]
depends: [
  "ocamlbuild" {build}
  "coq-menhirlib" {>= "20190626"}
  "coq-ott" {>= "0.29"}
  "coq" {>= "8.8"}
  "menhir" {build}
  "zarith"
  "ocaml" {>= "4.07.1"}
  "ott" {build & >= "0.29"}
]
synopsis: "A specification of Michelson in Coq to prove properties about smart contracts in Tezos"
description: """
Michelson is a language for writing smart contracts on the Tezos blockchain.
This package provides a Coq encoding of the syntax and semantics of Michelson,
automatically generated by the Ott tool. Also included is a framework called Mi-Cho-Coq
for reasoning about Michelson programs in Coq using a weakest precondition calculus."""
tags: [
  "category:Computer Science/Programming Languages/Formal Definitions and Theory"
  "keyword:cryptocurrency"
  "keyword:michelson"
  "keyword:semantics"
  "keyword:smart-contract"
  "keyword:tezos"
  "logpath:Michocoq"
  "logpath:Michocott"
]
url {
  src: "git+https://gitlab.com/nomadic-labs/mi-cho-coq.git#master"
}

Lint

Command
true
Return code
0

Dry install

Dry install with the current Coq version:

Command
opam install -y --show-action coq-mi-cho-coq.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 2h opam install -y --deps-only coq-mi-cho-coq.dev coq.dev
Return code
0
Duration
7 m 35 s

Install

Command
opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y coq-mi-cho-coq.dev coq.dev
Return code
7936
Duration
1 m 22 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            3           Virtual package relying on a GMP lib system installation
coq                 dev         Formal proof management system
coq-menhirlib       dev         A support library for verified Coq parsers produced by Menhir
coq-ott             dev         Auxiliary Coq library for Ott, a tool for writing definitions of programming languages and calculi
dune                2.8.5       Fast, portable, and opinionated build system
menhir              dev         An LR(1) parser generator
menhirLib           dev         Runtime support library for parsers generated by Menhir
menhirSdk           dev         Compile-time library for auxiliary tools related to Menhir
num                 1.4         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.10.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.1      Official release 4.10.1
ocaml-config        1           OCaml Switch Configuration
ocamlbuild          0.14.0      OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
ocamlfind           1.9.1       A library manager for OCaml
ott                 0.31        A tool for writing definitions of programming languages and calculi
zarith              1.12        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-mi-cho-coq dev
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-mi-cho-coq.dev] synchronised from git+https://gitlab.com/nomadic-labs/mi-cho-coq.git#master
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of coq-mi-cho-coq failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4".
#=== ERROR while compiling coq-mi-cho-coq.dev =================================#
# context              2.0.6 | linux/x86_64 | ocaml-base-compiler.4.10.1 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.10.1/.opam-switch/build/coq-mi-cho-coq.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code            2
# env-file             ~/.opam/log/coq-mi-cho-coq-14162-0a5907.env
# output-file          ~/.opam/log/coq-mi-cho-coq-14162-0a5907.out
### output ###
# [...]
# COQC micheline_pp.v
# File "./semantics.v", line 602, characters 8-17:
# Error: The constructor OR (in type instruction) is expected to be applied to
# 4 arguments while it is actually applied to 3 arguments.
# 
# make[5]: *** [Makefile:721: semantics.vo] Error 1
# make[5]: *** Waiting for unfinished jobs....
# make[4]: *** [Makefile:344: all] Error 2
# make[3]: *** [Makefile.conf:68: post-all] Error 2
# make[2]: *** [Makefile:345: all] Error 2
# make[1]: *** [Makefile.conf:66: post-all] Error 2
# make: *** [Makefile:345: all] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-mi-cho-coq 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