« Up

metacoq dev Error with dependencies 🚒

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"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#main"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
          "Danil Annenkov <danil.v.annenkov@gmail.com>"
          "Simon Boulier <simon.boulier@inria.fr>"
          "Cyril Cohen <cyril.cohen@inria.fr>"
          "Yannick Forster <forster@ps.uni-saarland.de>"
          "Jason Gross <jgross@mit.edu>"
          "Fabian Kunze <fkunze@fakusb.de>"
          "Meven Lennon-Bertrand <Meven.Bertrand@univ-nantes.fr>"
          "Kenji Maillard <kenji.maillard@inria.fr>"
          "Gregory Malecha <gmalecha@gmail.com>"
          "Jakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>"
          "Matthieu Sozeau <matthieu.sozeau@inria.fr>"
          "Nicolas Tabareau <nicolas.tabareau@inria.fr>"
          "Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
depends: [
  "coq-metacoq-safechecker-plugin" {= version}
  "coq-metacoq-erasure-plugin" {= version}
  "coq-metacoq-translations" {= version}
  "coq-metacoq-quotation" {= version}
]
build: [
  ["bash" "./configure.sh" ] {with-test}
  [make "-C" "examples" ] {with-test}
  [make "-C" "test-suite" ] {with-test}
]
synopsis: "A meta-programming framework for Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
The meta-package includes the template-coq library,
the PCUIC development including a verified equivalence between Coq and PCUIC,
a safe type checker and verified erasure for PCUIC and example translations.
See individual packages for more detailed descriptions.
"""
url {
  src: "git+https:///github.com/metacoq/metacoq.git#main"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

Command
opam install -y --show-action coq-metacoq.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-metacoq.dev coq.dev
Return code
7936
Duration
36 m 0 s
Output
# 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
The following actions will be performed:
  - install coq-equations                  dev
  - install stdlib-shims                   0.3.0
  - install coq-metacoq-utils              dev
  - install coq-metacoq-common             dev
  - install coq-metacoq-template           dev
  - install coq-metacoq-pcuic              dev
  - install coq-metacoq-translations       dev
  - install coq-metacoq-template-pcuic     dev
  - install coq-metacoq-safechecker        dev
  - install coq-metacoq-quotation          dev
  - install coq-metacoq-safechecker-plugin dev
  - install coq-metacoq-erasure            dev
  - install coq-metacoq-erasure-plugin     dev
===== 13 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-equations.dev] synchronised from git+https://github.com/mattam82/Coq-Equations#main
[coq-metacoq-erasure.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-common.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-pcuic.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-quotation.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-safechecker.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-safechecker-plugin.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-erasure-plugin.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-template-pcuic.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-template.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[stdlib-shims.0.3.0] downloaded from cache at https://opam.ocaml.org/cache
[coq-metacoq-translations.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
[coq-metacoq-utils.dev] synchronised from git+https:///github.com/metacoq/metacoq.git#main
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed stdlib-shims.0.3.0
-> installed coq-equations.dev
-> installed coq-metacoq-utils.dev
-> installed coq-metacoq-common.dev
-> installed coq-metacoq-template.dev
[ERROR] The compilation of coq-metacoq-translations failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j 4 -C translations".
-> installed coq-metacoq-pcuic.dev
-> installed coq-metacoq-template-pcuic.dev
-> installed coq-metacoq-quotation.dev
-> installed coq-metacoq-safechecker.dev
-> installed coq-metacoq-safechecker-plugin.dev
[ERROR] The compilation of coq-metacoq-erasure failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j 4 -C erasure".
#=== ERROR while compiling coq-metacoq-translations.dev =======================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.0 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-translations.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j 4 -C translations
# exit-code            2
# env-file             ~/.opam/log/coq-metacoq-translations-16663-6ff7fe.env
# output-file          ~/.opam/log/coq-metacoq-translations-16663-6ff7fe.out
### output ###
# [...]
# "MetaCoq.Translations.MiniHoTT.Equiv has been translated."
# "equiv has been translated as equivᵗ"
# "Translating MetaCoq.Translations.times_bool_fun.wUnivalence"
# "wUnivalence has been translated as wUnivalenceᵗ"
# "isequiv_idmap has been translated as isequiv_idmapᵗ"
# "equiv_idmap has been translated as equiv_idmapᵗ"
# "UA has been translated as UAᵗ"
# "notUA has been translated as notUAᵗ"
# make[1]: *** [Makefile.coq:417: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-translations.dev/translations'
# make: *** [Makefile:2: all] Error 2
# make: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-translations.dev/translations'
#=== ERROR while compiling coq-metacoq-erasure.dev ============================#
# context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.14.0 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-erasure.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j 4 -C erasure
# exit-code            2
# env-file             ~/.opam/log/coq-metacoq-erasure-16663-813bac.env
# output-file          ~/.opam/log/coq-metacoq-erasure-16663-813bac.out
### output ###
# [...]
# Error: Required library config matches several files in path (found
# /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/coq/user-contrib/MetaCoq/Common/config.vo,
# /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/coq/user-contrib/MetaCoq/Quotation/ToPCUIC/Common/config.vo and
# /home/bench/.opam/ocaml-base-compiler.4.14.0/lib/coq/user-contrib/MetaCoq/Quotation/ToTemplate/Common/config.vo).
# 
# make[2]: *** [Makefile.erasure:847: theories/EWcbvEvalNamed.vo] Error 1
# make[2]: *** [theories/EWcbvEvalNamed.vo] Deleting file 'theories/EWcbvEvalNamed.glob'
# make[2]: *** Waiting for unfinished jobs....
# make[1]: *** [Makefile.erasure:417: all] Error 2
# make[1]: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-erasure.dev/erasure'
# make: *** [Makefile:11: theory] Error 2
# make: Leaving directory '/home/bench/.opam/ocaml-base-compiler.4.14.0/.opam-switch/build/coq-metacoq-erasure.dev/erasure'
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-metacoq-erasure      dev
| - build coq-metacoq-translations dev
+- 
+- The following changes have been performed (the rest was aborted)
| - install coq-equations                  dev
| - install coq-metacoq-common             dev
| - install coq-metacoq-pcuic              dev
| - install coq-metacoq-quotation          dev
| - install coq-metacoq-safechecker        dev
| - install coq-metacoq-safechecker-plugin dev
| - install coq-metacoq-template           dev
| - install coq-metacoq-template-pcuic     dev
| - install coq-metacoq-utils              dev
| - install stdlib-shims                   0.3.0
+- 
# 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.14.0/.opam-switch/backup/state-20240101012827.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