« Up

albert dev Error with dependencies

(2021-10-27 02:59:51 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
dune                  2.9.1       Fast, portable, and opinionated build system
ocaml                 4.12.0      The OCaml compiler (virtual package)
ocaml-base-compiler   4.12.0      Official release 4.12.0
ocaml-config          2           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
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"
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.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-albert.dev coq.dev
Return code
7936
Duration
9 m 19 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
dune                  2.9.1       Fast, portable, and opinionated build system
ocaml                 4.12.0      The OCaml compiler (virtual package)
ocaml-base-compiler   4.12.0      Official release 4.12.0
ocaml-config          2           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
ocamlfind             1.9.1       A library manager for OCaml
zarith                1.12        Implements arithmetic and logical operations over arbitrary-precision integers
The following actions will be performed:
  - install menhirSdk           dev
  - install coq-list-plus       1.1.0
  - install conf-ruby           1.0.0
  - install coq-cunit           1.0.0
  - install menhirLib           dev
  - install coq-menhirlib       dev
  - install ott                 0.31
  - install coq-error-handlers  1.2.0
  - install coq-function-ninjas 1.0.0
  - install coq-ott             dev
  - install ocamlbuild          0.14.0
  - install menhir              dev
  - install coq-list-string     2.1.2
  - install coq-mi-cho-coq      dev
  - install coq-moment          1.2.0
===== 15 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-cunit.1.0.0] downloaded from https://github.com/clarus/coq-cunit/archive/1.0.0.tar.gz
[coq-error-handlers.1.2.0] downloaded from https://github.com/clarus/coq-error-handlers/archive/1.2.0.tar.gz
[coq-function-ninjas.1.0.0] downloaded from https://github.com/clarus/coq-function-ninjas/archive/1.0.0.tar.gz
[coq-list-plus.1.1.0] downloaded from https://github.com/clarus/coq-list-plus/archive/1.1.0.tar.gz
[coq-list-string.2.1.2] downloaded from https://github.com/clarus/coq-list-string/archive/2.1.2.tar.gz
[coq-moment.1.2.0] downloaded from https://github.com/clarus/coq-moment/archive/1.2.0.tar.gz
[coq-mi-cho-coq.dev] synchronised from git+https://gitlab.com/nomadic-labs/mi-cho-coq.git#master
[coq-ott.dev] synchronised from git+https://github.com/ott-lang/ott.git#master
[coq-menhirlib.dev] synchronised from git+https://gitlab.inria.fr/fpottier/menhir.git#master
[menhir.dev] synchronised from git+https://gitlab.inria.fr/fpottier/menhir.git#master
[ocamlbuild.0.14.0] downloaded from cache at https://opam.ocaml.org/cache
[menhirLib.dev] synchronised from git+https://gitlab.inria.fr/fpottier/menhir.git#master
[ott.0.31] downloaded from cache at https://opam.ocaml.org/cache
[menhirSdk.dev] synchronised from git+https://gitlab.inria.fr/fpottier/menhir.git#master
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of coq-ott failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4 -C coq".
-> installed conf-ruby.1.0.0
-> installed coq-cunit.1.0.0
-> installed coq-error-handlers.1.2.0
-> installed coq-function-ninjas.1.0.0
-> installed coq-list-plus.1.1.0
-> installed coq-list-string.2.1.2
[ERROR] The compilation of coq-moment failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build ruby pp.rb".
-> installed coq-menhirlib.dev
-> installed menhirLib.dev
-> installed menhirSdk.dev
-> installed ocamlbuild.0.14.0
-> installed ott.0.31
-> installed menhir.dev
#=== ERROR while compiling coq-ott.dev ========================================#
# context              2.0.8 | linux/x86_64 | ocaml-base-compiler.4.12.0 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-ott.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4 -C coq
# exit-code            2
# env-file             ~/.opam/log/coq-ott-10198-ff9695.env
# output-file          ~/.opam/log/coq-ott-10198-ff9695.out
### output ###
# [...]
# File "./ott_list_core.v", line 31, characters 0-49:
# Warning: The default value for hint locality is currently "local" in a
# section and "global" otherwise, but is scheduled to change in a future
# release. For the time being, adding hints outside of sections without
# specifying an explicit locality attribute is therefore deprecated. It is
# recommended to use "export" whenever possible. Use the attributes #[local],
# #[global] and #[export] depending on your choice. For example: "#[export]
# Hint Unfold foo : bar." [deprecated-hint-without-locality,deprecated]
# make[1]: *** [Makefile.coq:387: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-ott.dev/coq'
# make: *** [Makefile:2: default] Error 2
# make: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-ott.dev/coq'
#=== ERROR while compiling coq-moment.1.2.0 ===================================#
# context              2.0.8 | linux/x86_64 | ocaml-base-compiler.4.12.0 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.4.12.0/.opam-switch/build/coq-moment.1.2.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build ruby pp.rb
# exit-code            1
# env-file             ~/.opam/log/coq-moment-10198-977303.env
# output-file          ~/.opam/log/coq-moment-10198-977303.out
### output ###
# pp.rb:5:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-moment 1.2.0
| - build coq-ott    dev
+- 
+- The following changes have been performed (the rest was aborted)
| - install conf-ruby           1.0.0
| - install coq-cunit           1.0.0
| - install coq-error-handlers  1.2.0
| - install coq-function-ninjas 1.0.0
| - install coq-list-plus       1.1.0
| - install coq-list-string     2.1.2
| - install coq-menhirlib       dev
| - install menhir              dev
| - install menhirLib           dev
| - install menhirSdk           dev
| - install ocamlbuild          0.14.0
| - install ott                 0.31
+- 
# Run eval $(opam env) to update the current shell environment
The former state can be restored with:
    opam switch import "/home/bench/.opam/ocaml-base-compiler.4.12.0/.opam-switch/backup/state-20211023212400.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