ยซ Up

json 0.1.0 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.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"
synopsis: "JSON in Coq"
description: "From JSON to Coq, and vice versa."
maintainer: "Yishuai Li <yishuai@cis.upenn.edu>"
authors: "Yishuai Li <yishuai@cis.upenn.edu>"
license: "BSD-3-Clause"
tags: [
  "category:Computer Science/Data Types and Data Structures"
  "keyword:serialization"
  "keyword:JSON"
  "date:2022-03-03"
  "logpath:JSON"
]
homepage: "https://github.com/liyishuai/coq-json"
bug-reports: "https://github.com/liyishuai/coq-json/issues"
depends: [
  "coq" {>= "8.12~"}
  "coq-parsec" {>= "0.1.1"}
  "menhir" {>= "20220210"}
  "coq-menhirlib" {>= "20220210"}
]
build: [make "-j%{jobs}%"]
run-test: [make "-j%{jobs}%" "test"]
install: [make "install"]
dev-repo: "git+https://github.com/liyishuai/coq-json.git"
url {
  src: "https://github.com/liyishuai/coq-json/archive/v0.1.0.tar.gz"
  checksum: [
    "md5=45f1e00c5e3f5d542bbcfd815b45dc51"
    "sha512=d7cf540cfea1fb80ab7796d208d767f288f1dfa00ab23d54e6bf6cae1fec919afde6c5eea45e13a569b2c7a9be0313e41e31f230144c4351d863f26db35c6413"
  ]
}

Lint

Command
true
Return code
0

Dry install ๐Ÿœ๏ธ

Dry install with the current Coq version:

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

Install ๐Ÿš€

Command
opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-json.0.1.0 coq.dev
Return code
7936
Duration
1 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                 dev         Formal proof management system
coq-ceres           dev         Library for serialization via S-expressions
coq-ext-lib         dev         a library of Coq definitions, theorems, and tactics
coq-menhirlib       dev         A support library for verified Coq parsers produced by Menhir
coq-parsec          dev         Monadic parser combinator library in Coq
dune                3.1.1       Fast, portable, and opinionated build system
menhir              dev         An LR(1) parser generator
menhirLib           dev         Runtime support library for parsers generated by Menhir
menhirSdk           dev         Compile-time library for auxiliary tools related to Menhir
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-json 0.1.0
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/1: [coq-json.0.1.0: http]
[coq-json.0.1.0] downloaded from https://github.com/liyishuai/coq-json/archive/v0.1.0.tar.gz
Processing  1/1:
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/2: [coq-json: make]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "-j4" (CWD=/home/bench/.opam/ocaml-base-compiler.4.10.2/.opam-switch/build/coq-json.0.1.0)
- coq_makefile -f _CoqProject -o Makefile.coq
- menhir --coq Parser.vy
- COQDEP VFILES
- COQC JSON.v
- COQC Parser.v
- COQC Printer.v
- COQC Instances.v
- COQC Jpath.v
- COQC Encode.v
- COQC Operator.v
- COQC Decode.v
- File "./Operator.v", line 20, characters 0-160:
- Error:
- This command does not support this attribute: deprecated (use a notation and deprecate that instead).
- [unsupported-attributes,parsing]
- 
- make[1]: *** [Makefile.coq:790: Operator.vo] Error 1
- make[1]: *** Waiting for unfinished jobs....
- make: *** [Makefile.coq:408: all] Error 2
[ERROR] The compilation of coq-json failed at "/home/bench/.opam/opam-init/hooks/sandbox.sh build make -j4".
#=== ERROR while compiling coq-json.0.1.0 =====================================#
# 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-json.0.1.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build make -j4
# exit-code            2
# env-file             ~/.opam/log/coq-json-18402-0a5907.env
# output-file          ~/.opam/log/coq-json-18402-0a5907.out
### output ###
# [...]
# COQC Jpath.v
# COQC Encode.v
# COQC Operator.v
# COQC Decode.v
# File "./Operator.v", line 20, characters 0-160:
# Error:
# This command does not support this attribute: deprecated (use a notation and deprecate that instead).
# [unsupported-attributes,parsing]
# 
# make[1]: *** [Makefile.coq:790: Operator.vo] Error 1
# make[1]: *** Waiting for unfinished jobs....
# make: *** [Makefile.coq:408: all] Error 2
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build coq-json 0.1.0
+- 
- No changes have been performed
# Run eval $(opam env) to update the current shell environment
'opam install -y -v coq-json.0.1.0 coq.dev' failed.

Installation size

No files were installed.

Uninstall ๐Ÿงน

Command
true
Return code
0
Missing removes
none
Wrong removes
none