ยซ Up

compcert 3.10 Error with dependencies ๐Ÿš’

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                 8.13.1      Formal proof management system
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.5       A library manager for OCaml
zarith              1.12        Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
authors: "Xavier Leroy <xavier.leroy@inria.fr>"
maintainer: "Jacques-Henri Jourdan <jacques-Henri.jourdan@normalesup.org>"
homepage: "http://compcert.inria.fr/"
dev-repo: "git+https://github.com/AbsInt/CompCert.git"
bug-reports: "https://github.com/AbsInt/CompCert/issues"
license: "INRIA Non-Commercial License Agreement"
build: [
  ["./configure"
  "amd64-linux"  {os = "linux" & arch = "x86_64"}
  "amd64-macosx" {os = "macos" & arch = "x86_64"}
  "arm64-linux"  {os = "linux" & (arch = "arm64" | arch = "aarch64")}
  "arm64-macosx" {os = "macos" & (arch = "arm64" | arch = "aarch64")}
  "amd64-cygwin" {os = "cygwin"}
  # This is for building a MinGW CompCert with cygwin host and cygwin target
  "amd64-cygwin" {os = "win32" & os-distribution = "cygwinports"}
  # This is for building a 64 bit CompCert on 32 bit MinGW with cygwin build host
  "-toolprefix"        {os = "win32" & os-distribution = "cygwinports" & arch = "i686"}
  "x86_64-pc-cygwin-"  {os = "win32" & os-distribution = "cygwinports" & arch = "i686"}
  "-prefix" "%{prefix}%"
  "-install-coqdev"
  "-clightgen"
  "-use-external-Flocq"
  "-use-external-MenhirLib"
  "-coqdevdir" "%{lib}%/coq/user-contrib/compcert"
  "-ignore-coq-version"]
  [make "-j%{jobs}%" {ocaml:version >= "4.06"}]
]
install: [
  [make "install"]
]
depends: [
  "coq" {>= "8.9.0" & < "8.16~"}
  "menhir" {>= "20190626" }
  "ocaml" {>= "4.05.0"}
  "coq-flocq" {>= "3.1.0" & < "4~"}
  "coq-menhirlib" {>= "20190626"}
]
synopsis: "The CompCert C compiler (64 bit)"
tags: [
  "category:Computer Science/Semantics and Compilation/Compilation"
  "category:Computer Science/Semantics and Compilation/Semantics"
  "keyword:C"
  "keyword:compiler"
  "logpath:compcert"
  "date:2021-11-19"
]
url {
  src: "https://github.com/AbsInt/CompCert/archive/v3.10.tar.gz"
  checksum: "sha512=93687fb36cdfb247d47404c8d41d84ba96d006dd3a535646337a477fd5517c7487ff1d66e83bccceb47ba2d18b187c1bbdc55b2eff00373a8a120edfc80ef11a"
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

Command
opam install -y --show-action coq-compcert.3.10 coq.8.13.1
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-compcert.3.10 coq.8.13.1
Return code
7936
Duration
7 m 0 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            4           Virtual package relying on a GMP lib system installation
coq                 8.13.1      Formal proof management system
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.5       A library manager for OCaml
zarith              1.12        Implements arithmetic and logical operations over arbitrary-precision integers
The following actions will be performed:
  - install conf-g++      1.0
  - install dune          3.4.1
  - install coq-menhirlib 20220210
  - install coq-flocq     3.4.3
  - install menhirSdk     20220210
  - install menhirLib     20220210
  - install menhir        20220210
===== 7 to install =====
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[coq-flocq.3.4.3] downloaded from https://flocq.gitlabpages.inria.fr/releases/flocq-3.4.3.tar.gz
[coq-menhirlib.20220210] downloaded from https://gitlab.inria.fr/fpottier/menhir/-/archive/20220210/archive.tar.gz
[dune.3.4.1] downloaded from cache at https://opam.ocaml.org/cache
[menhir.20220210] found in cache
[menhirLib.20220210] found in cache
[menhirSdk.20220210] found in cache
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-g++.1.0
[ERROR] The compilation of dune failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build ocaml bootstrap.ml -j 4".
-> installed coq-menhirlib.20220210
[ERROR] The compilation of coq-flocq failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build ./remake -j4".
#=== ERROR while compiling dune.3.4.1 =========================================#
# context              2.0.7 | linux/x86_64 | ocaml-base-compiler.4.11.2 | https://opam.ocaml.org#0fc5b3d7
# path                 ~/.opam/ocaml-base-compiler.4.11.2/.opam-switch/build/dune.3.4.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build ocaml bootstrap.ml -j 4
# exit-code            2
# env-file             ~/.opam/log/dune-6307-be72be.env
# output-file          ~/.opam/log/dune-6307-be72be.out
### output ###
# ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml
# ./.duneboot.exe -j 4
# cd _boot && /home/bench/.opam/ocaml-base-compiler.4.11.2/bin/ocamlopt.opt -c -g -no-alias-deps -w -49-6 -alert -unstable -I +threads dune_sexp__syntax.ml
# 

#=== ERROR while compiling coq-flocq.3.4.3 ====================================#
# context              2.0.7 | linux/x86_64 | ocaml-base-compiler.4.11.2 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.4.11.2/.opam-switch/build/coq-flocq.3.4.3
# command              ~/.opam/opam-init/hooks/sandbox.sh build ./remake -j4
# exit-code            1
# env-file             ~/.opam/log/coq-flocq-6307-038aac.env
# output-file          ~/.opam/log/coq-flocq-6307-038aac.out
### output ###
# [...]
# Error: System error: "No space left on device"
# 
# Failed to build src/Core/Digits.vo
# File "./src/Pff/Pff.v", line 1088, characters 0-30:
# Warning:
# New coercion path [Z.of_nat; IZR] : nat >-> R is ambiguous with existing 
# [INR] : nat >-> R. [ambiguous-paths,typechecker]
# File "./src/Pff/Pff.v", line 1293, characters 0-16:
# Warning:
# New coercion path [Z.of_nat; IZR] : nat >-> R is ambiguous with existing 
# [INR] : nat >-> R. [ambiguous-paths,typechecker]
# Finished src/Pff/Pff.vo
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-flocq 3.4.3
| - build dune      3.4.1
+- 
+- The following changes have been performed (the rest was aborted)
| - install conf-g++      1.0
| - install coq-menhirlib 20220210
+- 
# 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.11.2/.opam-switch/backup/state-20220915000220.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