ยซ Up

json 0.1.0 Error ๐Ÿ”ฅ

Context

# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-domains          base
base-nnp              base        Naked pointers prohibited in the OCaml heap
base-threads          base
base-unix             base
conf-gmp              4           Virtual package relying on a GMP lib system installation
coq                   8.17.0      The Coq Proof Assistant
coq-core              8.17.0      The Coq Proof Assistant -- Core Binaries and Tools
coq-stdlib            8.17.0      The Coq Proof Assistant -- Standard Library
coqide-server         8.17.0      The Coq Proof Assistant, XML protocol server
dune                  3.13.0      Fast, portable, and opinionated build system
ocaml                 5.0.0       The OCaml compiler (virtual package)
ocaml-base-compiler   5.0.0       Official release 5.0.0
ocaml-config          3           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
ocamlfind             1.9.6       A library manager for OCaml
zarith                1.13        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.8.17.0
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; timeout 4h opam install -y --deps-only coq-json.0.1.0 coq.8.17.0
Return code
0
Duration
2 m 0 s

Install ๐Ÿš€

Command
opam list; echo; timeout 4h opam install -y -v coq-json.0.1.0 coq.8.17.0
Return code
7936
Duration
1 m 0 s
Output
# Packages matching: installed
# Name                # Installed # Synopsis
base-bigarray         base
base-domains          base
base-nnp              base        Naked pointers prohibited in the OCaml heap
base-threads          base
base-unix             base
conf-gmp              4           Virtual package relying on a GMP lib system installation
coq                   8.17.0      The Coq Proof Assistant
coq-ceres             0.4.1       Library for serialization to S-expressions
coq-core              8.17.0      The Coq Proof Assistant -- Core Binaries and Tools
coq-ext-lib           0.12.0      A library of Coq definitions, theorems, and tactics
coq-menhirlib         20231231    A support library for verified Coq parsers produced by Menhir
coq-parsec            0.1.2       Monadic parser combinator library in Coq
coq-stdlib            8.17.0      The Coq Proof Assistant -- Standard Library
coqide-server         8.17.0      The Coq Proof Assistant, XML protocol server
dune                  3.13.0      Fast, portable, and opinionated build system
menhir                20231231    An LR(1) parser generator
menhirCST             20231231    Runtime support library for parsers generated by Menhir
menhirLib             20231231    Runtime support library for parsers generated by Menhir
menhirSdk             20231231    Compile-time library for auxiliary tools related to Menhir
ocaml                 5.0.0       The OCaml compiler (virtual package)
ocaml-base-compiler   5.0.0       Official release 5.0.0
ocaml-config          3           OCaml Switch Configuration
ocaml-options-vanilla 1           Ensure that OCaml is compiled with no special options enabled
ocamlfind             1.9.6       A library manager for OCaml
zarith                1.13        Implements arithmetic and logical operations over arbitrary-precision integers
[NOTE] Package coq is already installed (current version is 8.17.0).
The following actions will be performed:
  - install coq-json 0.1.0
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [coq-json.0.1.0: http]
Processing  1/3:
-> retrieved coq-json.0.1.0  (https://github.com/liyishuai/coq-json/archive/v0.1.0.tar.gz)
Processing  2/3: [coq-json: make]
+ /home/bench/.opam/opam-init/hooks/sandbox.sh "build" "make" "-j4" (CWD=/home/bench/.opam/ocaml-base-compiler.5.0.0/.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 Decode.v
- COQC Operator.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:830: Operator.vo] Error 1
- make[1]: *** [Operator.vo] Deleting file 'Operator.glob'
- make[1]: *** Waiting for unfinished jobs....
- make: *** [Makefile.coq:409: all] Error 2
[ERROR] The compilation of coq-json.0.1.0 failed at "make -j4".
#=== ERROR while compiling coq-json.0.1.0 =====================================#
# context              2.1.5 | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/bench/run/opam-coq-archive/released
# path                 ~/.opam/ocaml-base-compiler.5.0.0/.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-6142-5e23ca.env
# output-file          ~/.opam/log/coq-json-6142-5e23ca.out
### output ###
# [...]
# COQC Encode.v
# COQC Decode.v
# COQC Operator.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:830: Operator.vo] Error 1
# make[1]: *** [Operator.vo] Deleting file 'Operator.glob'
# make[1]: *** Waiting for unfinished jobs....
# make: *** [Makefile.coq:409: 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.8.17.0' failed.

Installation size

No files were installed.

Uninstall ๐Ÿงน

Command
true
Return code
0
Missing removes
none
Wrong removes
none