package reason

  1. Overview
  2. Docs
On This Page
  1. Error log

reason 3.5.2

Error log

The package failed to build. The error log from opam follows.

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.1-1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.1-1  (cached)
-> removed   opam-depext.1.2.1-1
-> installed opam-depext.1.2.1-1
Done.

<><> opam-depext.1.2.1-1 installed successfully <><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy reason.3.5.2 result.1.5 ppx_derivers.1.2.1 ocamlfind.1.9.6 ocaml-migrate-parsetree.1.8.0 merlin-extend.0.6.1 menhirSdk.20231231 menhirLib.20231231 menhirCST.20231231 menhir.20231231 dune.3.13.0 cppo.1.6.9" 

You are using opam 2.1+, where external dependency handling has been integrated: consider calling opam directly, the 'depext' plugin interface is provided for backwards compatibility only
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
[NOTE] Package dune is already installed (current version is 3.13.0).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install cppo                    1.6.9
  - install menhirLib               20231231
  - install ppx_derivers            1.2.1
  - install result                  1.5
  - install menhirCST               20231231
  - install menhirSdk               20231231
  - install merlin-extend           0.6.1
  - install ocaml-migrate-parsetree 1.8.0
  - install menhir                  20231231
  - install reason                  3.5.2
===== 10 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/30:
Processing  2/30:
Processing  3/30:
-> retrieved cppo.1.6.9  (cached)
Processing  4/30:
Processing  5/30: [cppo: dune build]
-> retrieved menhir.20231231  (cached)
Processing  6/30: [cppo: dune build]
-> retrieved menhirCST.20231231  (cached)
Processing  7/30: [cppo: dune build]
Processing  8/30: [cppo: dune build] [menhirCST: dune build]
-> retrieved menhirLib.20231231  (cached)
Processing  9/30: [cppo: dune build] [menhirCST: dune build]
Processing 10/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build]
-> retrieved menhirSdk.20231231  (cached)
Processing 11/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build]
Processing 12/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build]
-> retrieved merlin-extend.0.6.1  (cached)
Processing 13/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build]
-> retrieved ocaml-migrate-parsetree.1.8.0  (cached)
Processing 14/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build]
-> retrieved ppx_derivers.1.2.1  (cached)
Processing 15/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ppx_derivers: dune build]
-> retrieved result.1.5  (cached)
Processing 16/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ppx_derivers: dune build] [result: dune build]
-> retrieved reason.3.5.2  (cached)
-> compiled  menhirCST.20231231
Processing 16/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ppx_derivers: dune build] [result: dune build]
-> installed menhirCST.20231231
Processing 17/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ppx_derivers: dune build] [result: dune build]
-> compiled  ppx_derivers.1.2.1
Processing 17/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [result: dune build]
-> installed ppx_derivers.1.2.1
Processing 18/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [result: dune build]
-> compiled  result.1.5
Processing 18/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build]
-> installed result.1.5
Processing 19/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build]
Processing 20/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ocaml-migrate-parsetree: dune build]
-> compiled  menhirSdk.20231231
Processing 20/30: [cppo: dune build] [menhirLib: dune build] [ocaml-migrate-parsetree: dune build]
-> installed menhirSdk.20231231
Processing 21/30: [cppo: dune build] [menhirLib: dune build] [ocaml-migrate-parsetree: dune build]
- (cd _build/default/lib/pack && ./pack.exe)
- Creating menhirLib.ml...
- Creating menhirLib.mli...
-> compiled  menhirLib.20231231
Processing 21/30: [cppo: dune build] [ocaml-migrate-parsetree: dune build]
-> installed menhirLib.20231231
Processing 22/30: [cppo: dune build] [ocaml-migrate-parsetree: dune build]
Processing 23/30: [cppo: dune build] [menhir: dune build] [ocaml-migrate-parsetree: dune build]
-> compiled  cppo.1.6.9
Processing 23/30: [menhir: dune build] [ocaml-migrate-parsetree: dune build]
-> installed cppo.1.6.9
Processing 24/30: [menhir: dune build] [ocaml-migrate-parsetree: dune build]
Processing 25/30: [menhir: dune build] [merlin-extend: dune build] [ocaml-migrate-parsetree: dune build]
-> compiled  merlin-extend.0.6.1
Processing 25/30: [menhir: dune build] [ocaml-migrate-parsetree: dune build]
-> installed merlin-extend.0.6.1
Processing 26/30: [menhir: dune build] [ocaml-migrate-parsetree: dune build]
-> compiled  ocaml-migrate-parsetree.1.8.0
Processing 26/30: [menhir: dune build]
-> installed ocaml-migrate-parsetree.1.8.0
Processing 27/30: [menhir: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "menhir" "-j" "255" (CWD=/home/opam/.opam/4.09/.opam-switch/build/menhir.20231231)
- (cd _build/default/lib/pack && ./pack.exe)
- Creating menhirLib.ml...
- Creating menhirLib.mli...
- (cd _build/default/src/stage2 && .bin/menhir --exn-carries-state --no-pager --require-aliases --strict parser.mly --compare-errors parserMessages.auto.messages --compare-errors parserMessages.messages) > _build/default/src/stage2/parserMessages.check
- Read 99 sample input sentences and 99 error messages.
- Read 99 sample input sentences and 47 error messages.
- (cd _build/default && src/stage2/.bin/menhir --exn-carries-state --no-pager --require-aliases --strict -lg 1 -la 1 -lc 1 -v src/stage2/parser.mly --base src/stage2/parser --infer-read-reply src/stage2/parser__mock.mli.inferred)
- Grammar has 56 nonterminal symbols, among which 1 start symbols.
- Grammar has 37 terminal symbols.
- Grammar has 129 productions.
- Built an LR(0) automaton with 199 states.
- The grammar is not SLR(1) -- 7 states have a conflict.
- The construction mode is no-pager.
- Built an LR(1) automaton with 308 states.
- One shift/reduce conflict was silently solved.
- Extra reductions on error were added in 50 states.
- Priority played a role in 0 of these states.
- 156 out of 308 states have a default reduction.
- 108 out of 308 states are represented.
- 44 out of 96 symbols keep track of their start position.
- 39 out of 96 symbols keep track of their end position.
- The StackLang code contains 4113 instructions in 277 blocks.
- The StackLang code comprises 5 mutually recursive groups.
- (cd _build/default/src/stage2 && .bin/menhir --exn-carries-state --no-pager --require-aliases --strict parser.mly --compile-errors parserMessages.messages) > _build/default/src/stage2/parserMessages.ml
- Read 99 sample input sentences and 47 error messages.
-> compiled  menhir.20231231
-> installed menhir.20231231
Processing 29/30: [reason: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "reason" "-j" "255" (CWD=/home/opam/.opam/4.09/.opam-switch/build/reason.3.5.2)
- (cd _build/default/src/reason-parser && /usr/bin/bash -e -u -o pipefail -c 'menhir --explain --strict --unused-tokens ./reason_parser.mly --update-errors ./reason_parser.messages.checked-in | sed -e '\''s/[[:space:]]*$$//g'\''') > _build/default/src/reason-parser/reason_parser.messages
- File "./reason_parser.mly", line 1673, characters 4-42:
- Error: when --strategy simplified is selected,
- the error token may appear only at the end of a production
- (and the semantic action must abort the parser).
- This production will be ignored.
- File "./reason_parser.mly", line 4937, characters 8-14:
- Error: symbol as_loc(structure_item) is unreachable from any of the start symbol(s).
[ERROR] The compilation of reason.3.5.2 failed at "dune build -p reason -j 255".

#=== ERROR while compiling reason.3.5.2 =======================================#
# context              2.1.5 | linux/x86_64 | ocaml-base-compiler.4.09.1 | file:///src
# path                 ~/.opam/4.09/.opam-switch/build/reason.3.5.2
# command              ~/.opam/4.09/bin/dune build -p reason -j 255
# exit-code            1
# env-file             ~/.opam/log/reason-113-55f91d.env
# output-file          ~/.opam/log/reason-113-55f91d.out
### output ###
# (cd _build/default/src/reason-parser && /usr/bin/bash -e -u -o pipefail -c 'menhir --explain --strict --unused-tokens ./reason_parser.mly --update-errors ./reason_parser.messages.checked-in | sed -e '\''s/[[:space:]]*$$//g'\''') > _build/default/src/reason-parser/reason_parser.messages
# File "./reason_parser.mly", line 1673, characters 4-42:
# Error: when --strategy simplified is selected,
# the error token may appear only at the end of a production
# (and the semantic action must abort the parser).
# This production will be ignored.
# File "./reason_parser.mly", line 4937, characters 8-14:
# Error: symbol as_loc(structure_item) is unreachable from any of the start symbol(s).



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build reason 3.5.2
+- 
+- The following changes have been performed
| - install cppo                    1.6.9
| - install menhir                  20231231
| - install menhirCST               20231231
| - install menhirLib               20231231
| - install menhirSdk               20231231
| - install merlin-extend           0.6.1
| - install ocaml-migrate-parsetree 1.8.0
| - install ppx_derivers            1.2.1
| - install result                  1.5
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.09/.opam-switch/backup/state-20240129190259.export"
'opam --cli=2.1 install reason.3.5.2 result.1.5 ppx_derivers.1.2.1 ocamlfind.1.9.6 ocaml-migrate-parsetree.1.8.0 merlin-extend.0.6.1 menhirSdk.20231231 menhirLib.20231231 menhirCST.20231231 menhir.20231231 dune.3.13.0 cppo.1.6.9 --verbose --yes --confirm-level=unsafe-yes' failed.