« Up

coqffi 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-gmp            4           Virtual package relying on a GMP lib system installation
coq                 dev         Formal proof management system
dune                3.0.3       Fast, portable, and opinionated build system
ocaml               4.11.2      The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.2      Official release 4.11.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"
version: "dev"
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.14~") | (= "dev")}
  "cmdliner" {>= "1.0.4"}
  "sexplib" {>= "0.14"}
]
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: "git+https://github.com/coq-community/coqffi.git#main"
}

Lint

Command
true
Return code
0

Dry install 🏜️

Dry install with the current Coq version:

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

Install 🚀

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y coq-coqffi.dev coq.dev
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name              # Installed # Synopsis
base                v0.15.0     Full standard library replacement for OCaml
base-bigarray       base
base-threads        base
base-unix           base
cmdliner            1.1.0       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
csexp               1.5.1       Parsing and printing of S-expressions in Canonical form
dune                3.0.3       Fast, portable, and opinionated build system
dune-configurator   3.0.3       Helper library for gathering system configuration
num                 1.4         The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml               4.11.2      The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.2      Official release 4.11.2
ocaml-config        1           OCaml Switch Configuration
ocamlfind           1.9.3       A library manager for OCaml
parsexp             v0.15.0     S-expression parsing library
sexplib             v0.15.0     Library for serializing OCaml values to and from S-expressions
sexplib0            v0.15.0     Library containing the definition of S-expressions and some base converters
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 dev
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-coqffi.dev] synchronised from git+https://github.com/coq-community/coqffi.git#main
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of coq-coqffi failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build ./src-prepare.sh".
#=== ERROR while compiling coq-coqffi.dev =====================================#
# context              2.0.7 | linux/x86_64 | ocaml-base-compiler.4.11.2 | file:///home/bench/run/opam-coq-archive/extra-dev
# path                 ~/.opam/ocaml-base-compiler.4.11.2/.opam-switch/build/coq-coqffi.dev
# command              ~/.opam/opam-init/hooks/sandbox.sh build ./src-prepare.sh
# exit-code            1
# env-file             ~/.opam/log/coq-coqffi-9296-e4db2f.env
# output-file          ~/.opam/log/coq-coqffi-9296-e4db2f.out
### output ###
# unsupported Coq version 8.16
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-coqffi 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