« Up

coqffi 1.0.0~beta3 Error 🔥

📅 (2022-05-24 01:37:32 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            4           Virtual package relying on a GMP lib system installation
coq                 dev         Formal proof management system
dune                3.1.1       Fast, portable, and opinionated build system
ocaml               4.10.2      The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.2      Official release 4.10.2
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.9.3       A library manager for OCaml
zarith              1.12        Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "thomas.letan@ssi.gouv.fr"
homepage: "https://github.com/coq-community/coqffi"
dev-repo: "git+https://github.com/coq-community/coqffi.git"
bug-reports: "https://github.com/coq-community/coqffi/issues"
license: "MIT"
synopsis: "Tool for generating Coq FFI bindings to OCaml libraries"
description: """
`coqffi` generates the necessary Coq boilerplate to use OCaml functions in a
Coq development, and configures the Coq extraction mechanism accordingly."""
build: [
  ["./src-prepare.sh"]
  ["dune" "build" "-p" name "-j" jobs]
]
depends: [
  "ocaml" {>= "4.08" & < "4.12~" }
  "dune" {>= "2.5"}
  "coq" {(>= "8.12" & < "8.13~") | (= "dev")}
  "cmdliner" {>= "1.0.4"}
]
tags: [
  "category:Miscellaneous/Coq Extensions"
  "keyword:foreign function interface"
  "keyword:extraction"
  "keyword:OCaml"
  "logpath:CoqFFI"
]
authors: [
  "Thomas Letan"
  "Li-yao Xia"
  "Yann Régis-Gianas"
  "Yannick Zakowski"
]
url {
  src: "https://github.com/coq-community/coqffi/archive/1.0.0-beta3.tar.gz"
  checksum: "sha512=5d0a924eac883591b8bf85296b1351fa57f99839500fb05fa423dffc08b6107bf5682c4e4bb4a1911657cc48ff6780bdcb6c5d65ee58641a5345bc1559125908"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

Command
opam install -y --show-action coq-coqffi.1.0.0~beta3 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-coqffi.1.0.0~beta3 coq.dev
Return code
0
Duration
25 s

Install 🚀

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-coqffi.1.0.0~beta3 coq.dev
Return code
7936
Duration
23 s
Output
# Packages matching: installed
# Name              # Installed # Synopsis
base-bigarray       base
base-threads        base
base-unix           base
cmdliner            1.1.1       Declarative definition of command line interfaces for OCaml
conf-findutils      1           Virtual package relying on findutils
conf-gmp            4           Virtual package relying on a GMP lib system installation
coq                 dev         Formal proof management system
dune                3.1.1       Fast, portable, and opinionated build system
ocaml               4.10.2      The OCaml compiler (virtual package)
ocaml-base-compiler 4.10.2      Official release 4.10.2
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.9.3       A library manager for OCaml
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-coqffi 1.0.0~beta3
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [coq-coqffi.1.0.0~beta3: http]
[coq-coqffi.1.0.0~beta3] downloaded from https://github.com/coq-community/coqffi/archive/1.0.0-beta3.tar.gz
Processing  1/1:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/2: [coq-coqffi: ./src-prepare.sh]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "./src-prepare.sh" (CWD=/home/bench/.opam/ocaml-base-compiler.4.10.2/.opam-switch/build/coq-coqffi.1.0.0~beta3)
- patching file src/compat.ml
- patching file src/entry.ml
- patching file theories/Data/Seq.v
Processing  1/2: [coq-coqffi: dune build]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "coq-coqffi" "-j" "4" (CWD=/home/bench/.opam/ocaml-base-compiler.4.10.2/.opam-switch/build/coq-coqffi.1.0.0~beta3)
- (cd _build/default/theories && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/coqdep -R . CoqFFI -dyndep opt Data/Int.v) > _build/default/theories/Data/Int.v.d
- *** Warning: in file Data/Int.v, library Int63 is required from root Coq and has not been found in the loadpath!
- (cd _build/default/theories && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/coqdep -R . CoqFFI -dyndep opt Data/IntFacts.v) > _build/default/theories/Data/IntFacts.v.d
- *** Warning: in file Data/IntFacts.v, library Int63 is required from root Coq and has not been found in the loadpath!
- (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/coqc -q -R theories CoqFFI theories/Data/Int.v)
- File "./theories/Data/Int.v", line 1, characters 0-55:
- Error: Cannot find a physical path bound to logical path
- Int63 with prefix Coq.
- 
- (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/ocamlc.opt -w -40 -g -bin-annot -I bin/.main.eobjs/byte -I /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/cmdliner -I /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/ocaml/compiler-libs -I src/.coqffi.objs/byte -no-alias-deps -o bin/.main.eobjs/byte/dune__exe__Main.cmo -c -impl bin/main.ml)
- File "bin/main.ml", line 145, characters 8-12:
- 145 |   Term.(info "coqffi" ~exits:default_exits ~doc ~man ~version:"coqffi.1.0.0~beta3")
-               ^^^^
- Alert deprecated: Cmdliner.Term.info
- Use Cmd.info instead.
- File "bin/main.ml", line 145, characters 29-42:
- 145 |   Term.(info "coqffi" ~exits:default_exits ~doc ~man ~version:"coqffi.1.0.0~beta3")
-                                    ^^^^^^^^^^^^^
- Alert deprecated: Cmdliner.Term.default_exits
- Use Cmd.Exit.defaults or Cmd.info's defaults ~exits value instead.
- File "bin/main.ml", line 186, characters 8-12:
- 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
-               ^^^^
- Alert deprecated: Cmdliner.Term.exit
- Use Stdlib.exit and Cmd.eval instead.
- File "bin/main.ml", line 186, characters 16-20:
- 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
-                       ^^^^
- Alert deprecated: Cmdliner.Term.eval
- Use Cmd.v and one of Cmd.eval* instead.
- (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/coqc -q -R theories CoqFFI theories/Data/String.v)
- File "./theories/Data/String.v", line 6, characters 0-34:
- Error: Required library Byte matches several files in path (found
- /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/coq/theories/Strings/Byte.vo and
- /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/coq/theories/Init/Byte.vo).
- 
- (cd _build/default && /home/bench/.opam/ocaml-base-compiler.4.10.2/bin/ocamlopt.opt -w -40 -g -I bin/.main.eobjs/byte -I bin/.main.eobjs/native -I /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/cmdliner -I /home/bench/.opam/ocaml-base-compiler.4.10.2/lib/ocaml/compiler-libs -I src/.coqffi.objs/byte -I src/.coqffi.objs/native -intf-suffix .ml -no-alias-deps -o bin/.main.eobjs/native/dune__exe__Main.cmx -c -impl bin/main.ml)
- File "bin/main.ml", line 145, characters 8-12:
- 145 |   Term.(info "coqffi" ~exits:default_exits ~doc ~man ~version:"coqffi.1.0.0~beta3")
-               ^^^^
- Alert deprecated: Cmdliner.Term.info
- Use Cmd.info instead.
- File "bin/main.ml", line 145, characters 29-42:
- 145 |   Term.(info "coqffi" ~exits:default_exits ~doc ~man ~version:"coqffi.1.0.0~beta3")
-                                    ^^^^^^^^^^^^^
- Alert deprecated: Cmdliner.Term.default_exits
- Use Cmd.Exit.defaults or Cmd.info's defaults ~exits value instead.
- File "bin/main.ml", line 186, characters 8-12:
- 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
-               ^^^^
- Alert deprecated: Cmdliner.Term.exit
- Use Stdlib.exit and Cmd.eval instead.
- File "bin/main.ml", line 186, characters 16-20:
- 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
-                       ^^^^
- Alert deprecated: Cmdliner.Term.eval
- Use Cmd.v and one of Cmd.eval* instead.
[ERROR] The compilation of coq-coqffi failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build dune build -p coq-coqffi -j 4".
#=== ERROR while compiling coq-coqffi.1.0.0~beta3 =============================#
# context              2.0.6 | linux/x86_64 | ocaml-base-compiler.4.10.2 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.4.10.2/.opam-switch/build/coq-coqffi.1.0.0~beta3
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p coq-coqffi -j 4
# exit-code            1
# env-file             ~/.opam/log/coq-coqffi-31677-2dea01.env
# output-file          ~/.opam/log/coq-coqffi-31677-2dea01.out
### output ###
# [...]
# Alert deprecated: Cmdliner.Term.default_exits
# Use Cmd.Exit.defaults or Cmd.info's defaults ~exits value instead.
# File "bin/main.ml", line 186, characters 8-12:
# 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
#               ^^^^
# Alert deprecated: Cmdliner.Term.exit
# Use Stdlib.exit and Cmd.eval instead.
# File "bin/main.ml", line 186, characters 16-20:
# 186 |   Term.(exit @@ eval (coqffi_t, coqffi_info))
#                       ^^^^
# Alert deprecated: Cmdliner.Term.eval
# Use Cmd.v and one of Cmd.eval* instead.
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-coqffi 1.0.0~beta3
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-coqffi.1.0.0~beta3 coq.dev' failed.

Installation size

No files were installed.

Uninstall 🧹

Command
true
Return code
0
Missing removes
none
Wrong removes
none