« Up

albert dev Error 🔥

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-m4             1           Virtual package relying on m4
coq                 8.10.0      Formal proof management system
num                 1.3         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.08.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1      Official release 4.08.1
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.8.1       A library manager for OCaml
# opam file:
opam-version: "2.0"
synopsis: "A certified compiler for Albert, an intermediate language for compilers targeting Tezos' smart contract language Michelson"
maintainer: "albert@nomadic-labs.com"
authors: [ "Raphaël Cauderlier" "Bruno Bernardo" "Julien Tesson" "Arvid Jakobsson" "Basile Pesin" ]
homepage: "https://gitlab.com/nomadic-labs/albert/"
dev-repo: "git+https://gitlab.com/nomadic-labs/albert/"
bug-reports: "https://gitlab.com/nomadic-labs/albert/issues"
license: "MIT"
build: [
  [ make ]
  [ make "test" {with-test} ]
]
install: [ make "install" ]
depends: [
  "dune"
  "ott"
  "menhir"
  "coq" {>= "8.8.2"}
  "coq-ott"
  "coq-menhirlib"
  "coq-mi-cho-coq"
  "coq-list-string"
  "coq-moment" {>= "1.2.0"}
]
description:"""
Albert is an intermediate smart contract programming language
targeting Michelson, the language for the Tezos blockchain. Albert is
an imperative language with variables and records, abstracting the
Michelson stack. The intent of Albert is to serve as a compilation
target for high-level smart contract programming languages. The linear
type system of Albert ensures that an Albert program, compiled to the
stack-based Michelson language, properly consumes all stack values.
This package contains the ott specification of the language, the
Albert compiler targeting Michelson written in Coq and extracted to OCaml.
"""
tags: [
  "category:Computer Science/Semantics and Compilation/Compilation"
  "keyword:blockchain"
  "keyword:albert"
  "keyword:semantics"
  "keyword:smart-contract"
  "keyword:tezos"
  "logpath:Albert"
]
url {
  src: "git+https://gitlab.com/nomadic-labs/albert.git#master"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

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

Install 🚀

Command
opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y coq-albert.dev coq.8.10.0
Return code
7936
Duration
2 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            1           Virtual package relying on a GMP lib system installation
conf-m4             1           Virtual package relying on m4
conf-perl           1           Virtual package relying on perl
conf-ruby           1.0.0       Virtual package relying on Ruby
coq                 8.10.0      Formal proof management system
coq-cunit           1.0.0       Convenience functions for unit testing in Coq
coq-error-handlers  1.2.0       Simple and robust error handling functions
coq-function-ninjas 1.0.0       Simple functional combinators
coq-list-plus       1.1.0       More functions on lists
coq-list-string     2.1.2       Strings implemented as lists
coq-menhirlib       20200624    A support library for verified Coq parsers produced by Menhir
coq-mi-cho-coq      dev         A specification of Michelson in Coq to prove properties about smart contracts in Tezos
coq-moment          1.2.0       Parse, manipulate and pretty-print times and dates in Coq
coq-ott             dev         Auxiliary Coq library for Ott, a tool for writing definitions of programming languages and calculi
dune                2.6.1       Fast, portable, and opinionated build system
menhir              20200624    An LR(1) parser generator
menhirLib           20200624    Runtime support library for parsers generated by Menhir
menhirSdk           20200624    Compile-time library for auxiliary tools related to Menhir
num                 1.3         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.08.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1      Official release 4.08.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.8.1       A library manager for OCaml
ott                 0.31        A tool for writing definitions of programming languages and calculi
zarith              1.9.1       Implements arithmetic and logical operations over arbitrary-precision integers
[NOTE] Package coq is already installed (current version is 8.10.0).
The following actions will be performed:
  - install coq-albert dev
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-albert.dev] synchronised from git+https://gitlab.com/nomadic-labs/albert.git#master
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of coq-albert failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make".
#=== ERROR while compiling coq-albert.dev =====================================#
# context              2.0.5 | linux/x86_64 | ocaml-base-compiler.4.08.1 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.08.1/.opam-switch/build/coq-albert.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code            2
# env-file             ~/.opam/log/coq-albert-12737-e4db2f.env
# output-file          ~/.opam/log/coq-albert-12737-e4db2f.out
### output ###
# [...]
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.08.1/.opam-switch/build/coq-albert.dev/coq'
# cd parser;	ott -merge true -i ../ott/base.ott -i ../ott/fail.ott -i ../ott/toplevel_definition.ott -i ../ott/arith.ott -i ../ott/unit.ott -i ../ott/pair.ott -i ../ott/drop.ott -i ../ott/dup.ott -i ../ott/pattern_matching.ott -i ../ott/variant.ott -i ../ott/option.ott -i ../ott/or.ott -i ../ott/bool.ott -i ../ott/string.ott -i ../ott/bytes.ott -i ../ott/compare.ott -i ../ott/list.ott -i ../ott[...]
# -tex_suppress_ntr g
# Ott version 0.31   distribution of Mon 15 Jun 12:00:29 BST 2020
# File ../ott/base.ott on line 1, column 0 - 29:
# Warning: undefined OCaml metavarrep for n
# 
# File ../ott/pattern_matching.ott on line 1, column 0 - 26:
# Warning: undefined OCaml metavarrep for k
# 
# Fatal error: exception Match_failure("lex_menhir_pp.ml", 331, 13)
# make: *** [Makefile:198: parser/parser.mly] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-albert 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