ยซ Up

min-imports 1.0.1 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
coq                 8.10.2      Formal proof management system
num                 1.4         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.06.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1      Official 4.06.1 release
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.9.5       A library manager for OCaml
# opam file:
opam-version: "2.0"
version: "1.0.1"
maintainer: "lord@crocodile.org"
homepage: "https://github.com/vzaliva/coq-min-imports"
dev-repo: "git+https://github.com/vzaliva/coq-min-imports.git"
bug-reports: "https://github.com/vzaliva/coq-min-imports/issues"
authors: ["Vadim Zaliva"]
license: "MIT"
build: ["jbuilder" "build" "-j" jobs "@install"]
depends: [
  "ocaml"
  "coq" {>= "8.5"}
  "extlib"
  "batteries"
  "jbuilder" {build}
]
tags: [
  "category:Miscellaneous/Coq Extensions"
  "date:2018-04-22"
]
synopsis:
  "This script will try to remove unnecessary module imports from Coq"
description: """
sources. It examines modules listed in "Require Import" statements one
by one and tries to recompile to see if their removal would cause
compilation errors."""
url {
  src: "https://github.com/vzaliva/coq-min-imports/archive/v1.0.1.tar.gz"
  checksum: "md5=3ffca724f7e8752ce4f1909b360914ab"
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

Command
opam install -y --show-action coq-min-imports.1.0.1 coq.8.10.2
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-min-imports.1.0.1 coq.8.10.2
Return code
0
Duration
16 m 0 s

Install ๐Ÿš€

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-min-imports.1.0.1 coq.8.10.2
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name                   # Installed  # Synopsis
base-bigarray            base
base-threads             base
base-unix                base
batteries                3.6.0        A community-maintained standard library extension
camlp-streams            5.0.1        The Stream and Genlex libraries for use with Camlp4 and Camlp5
conf-findutils           1            Virtual package relying on findutils
coq                      8.10.2       Formal proof management system
cppo                     1.6.9        Code preprocessor like cpp for OCaml
dune                     3.6.1        Fast, portable, and opinionated build system
extlib                   1.7.9        A complete yet small extension for OCaml standard library
jbuilder                 1.0+beta20.2 Fast, portable and opinionated build system
num                      1.4          The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml                    4.06.1       The OCaml compiler (virtual package)
ocaml-base-compiler      4.06.1       Official 4.06.1 release
ocaml-config             1            OCaml Switch Configuration
ocaml-secondary-compiler 4.08.1-1     OCaml 4.08.1 Secondary Switch Compiler
ocamlbuild               0.14.2       OCamlbuild is a build system with builtin rules to easily build most OCaml projects
ocamlfind                1.9.1        A library manager for OCaml
ocamlfind-secondary      1.9.1        Adds support for ocaml-secondary-compiler to ocamlfind
[NOTE] Package coq is already installed (current version is 8.10.2).
The following actions will be performed:
  - install coq-min-imports 1.0.1
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [coq-min-imports.1.0.1: http]
[coq-min-imports.1.0.1] downloaded from https://github.com/vzaliva/coq-min-imports/archive/v1.0.1.tar.gz
Processing  1/1:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/2: [coq-min-imports: jbuilder build]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "jbuilder" "build" "-j" "4" "@install" (CWD=/home/bench/.opam/ocaml-base-compiler.4.06.1/.opam-switch/build/coq-min-imports.1.0.1)
-     ocamlopt coq_min_imports.exe (exit 2)
- (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.06.1/bin/ocamlopt.opt -w -40 -g -o coq_min_imports.exe -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/camlp-streams -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/extlib -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/num -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/ocaml/threads /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/extlib/extlib.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/ocaml/nums.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/camlp-streams/camlp_streams.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/ocaml/str.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/ocaml/unix.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries/batteries.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/ocaml/threads/threads.cmxa /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries/batteriesThread.cmxa .coq_min_imports.eobjs/dirtools.cmx .coq_min_imports.eobjs/coq_min_imports.cmx)
- File "_none_", line 1:
- Error: No implementations provided for the following modules:
-          Bigarray referenced from /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries/batteries.cmxa(BatBigarray)
[ERROR] The compilation of coq-min-imports failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build jbuilder build -j 4 @install".
#=== ERROR while compiling coq-min-imports.1.0.1 ==============================#
# context              2.0.5 | linux/x86_64 | ocaml-base-compiler.4.06.1 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.4.06.1/.opam-switch/build/coq-min-imports.1.0.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build jbuilder build -j 4 @install
# exit-code            1
# env-file             ~/.opam/log/coq-min-imports-8656-865888.env
# output-file          ~/.opam/log/coq-min-imports-8656-865888.out
### output ###
#     ocamlopt coq_min_imports.exe (exit 2)
# (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.06.1/bin/ocamlopt.opt -w -40 -g -o coq_min_imports.exe -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/camlp-streams -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/extlib -I /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/num -I /home/bench/.opam/ocaml-base-com[...]
# File "_none_", line 1:
# Error: No implementations provided for the following modules:
#          Bigarray referenced from /home/bench/.opam/ocaml-base-compiler.4.06.1/lib/batteries/batteries.cmxa(BatBigarray)
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-min-imports 1.0.1
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-min-imports.1.0.1 coq.8.10.2' failed.

Installation size

No files were installed.

Uninstall ๐Ÿงน

Command
true
Return code
0
Missing removes
none
Wrong removes
none