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.3

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

<><> opam-depext.1.2.3 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.20240715 menhirLib.20240715 menhirCST.20240715 menhir.20240715 dune.3.16.0 cppo.1.7.0" 

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# 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.16.0).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install ppx_derivers            1.2.1
  - install result                  1.5
  - install menhirLib               20240715
  - install menhirCST               20240715
  - install menhirSdk               20240715
  - install cppo                    1.7.0
  - install ocaml-migrate-parsetree 1.8.0
  - install menhir                  20240715
  - install merlin-extend           0.6.1
  - install reason                  3.5.2
===== 10 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/30:
Processing  2/30:
Processing  3/30:
-> retrieved cppo.1.7.0  (cached)
Processing  4/30:
Processing  5/30: [cppo: dune build]
-> retrieved menhir.20240715  (cached)
Processing  6/30: [cppo: dune build]
-> retrieved menhirCST.20240715  (cached)
Processing  7/30: [cppo: dune build]
Processing  8/30: [cppo: dune build] [menhirCST: dune build]
-> retrieved menhirLib.20240715  (cached)
Processing  9/30: [cppo: dune build] [menhirCST: dune build]
Processing 10/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build]
-> retrieved menhirSdk.20240715  (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 ppx_derivers.1.2.1  (cached)
Processing 14/30: [cppo: dune build] [menhirCST: dune build] [menhirLib: dune build] [menhirSdk: dune build]
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)
-> retrieved ocaml-migrate-parsetree.1.8.0  (cached)
-> compiled  menhirCST.20240715
Processing 16/30: [cppo: dune build] [menhirLib: dune build] [menhirSdk: dune build] [ppx_derivers: dune build] [result: dune build]
-> installed menhirCST.20240715
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.20240715
Processing 20/30: [cppo: dune build] [menhirLib: dune build] [ocaml-migrate-parsetree: dune build]
-> installed menhirSdk.20240715
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.20240715
Processing 21/30: [cppo: dune build] [ocaml-migrate-parsetree: dune build]
-> installed menhirLib.20240715
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.7.0
Processing 23/30: [menhir: dune build] [ocaml-migrate-parsetree: dune build]
-> installed cppo.1.7.0
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" "39" (CWD=/home/opam/.opam/4.09/.opam-switch/build/menhir.20240715)
- (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.20240715
-> installed menhir.20240715
Processing 29/30: [reason: dune build]
+ /home/opam/.opam/4.09/bin/dune "build" "-p" "reason" "-j" "39" (CWD=/home/opam/.opam/4.09/.opam-switch/build/reason.3.5.2)
- (cd _build/default && /home/opam/.opam/4.09/bin/ocamlc.opt -w -40 -g -bin-annot -I src/reason-parser/.menhir_error_processor.eobjs/byte -I /home/opam/.opam/4.09/lib/menhirSdk -no-alias-deps -o src/reason-parser/.menhir_error_processor.eobjs/byte/menhir_error_processor.cmo -c -impl src/reason-parser/menhir_error_processor.ml)
- File "src/reason-parser/menhir_error_processor.ml", line 31, characters 50-64:
- 31 |     List.exists (fun (term, _) -> pred (T term)) (Lr1.reductions lr1) ||
-                                                        ^^^^^^^^^^^^^^
- Alert deprecated: G.Lr1.reductions
- Please use [get_reductions]
- (cd _build/default && /home/opam/.opam/4.09/bin/ocamlopt.opt -w -40 -g -I src/reason-parser/.menhir_error_processor.eobjs/byte -I src/reason-parser/.menhir_error_processor.eobjs/native -I /home/opam/.opam/4.09/lib/menhirSdk -intf-suffix .ml -no-alias-deps -o src/reason-parser/.menhir_error_processor.eobjs/native/menhir_error_processor.cmx -c -impl src/reason-parser/menhir_error_processor.ml)
- File "src/reason-parser/menhir_error_processor.ml", line 31, characters 50-64:
- 31 |     List.exists (fun (term, _) -> pred (T term)) (Lr1.reductions lr1) ||
-                                                        ^^^^^^^^^^^^^^
- Alert deprecated: G.Lr1.reductions
- Please use [get_reductions]
- (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 39".

#=== ERROR while compiling reason.3.5.2 =======================================#
# context              2.1.6 | 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 39
# exit-code            1
# env-file             ~/.opam/log/reason-115-7a438f.env
# output-file          ~/.opam/log/reason-115-7a438f.out
### output ###
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlc.opt -w -40 -g -bin-annot -I src/reason-parser/.menhir_error_processor.eobjs/byte -I /home/opam/.opam/4.09/lib/menhirSdk -no-alias-deps -o src/reason-parser/.menhir_error_processor.eobjs/byte/menhir_error_processor.cmo -c -impl src/reason-parser/menhir_error_processor.ml)
# File "src/reason-parser/menhir_error_processor.ml", line 31, characters 50-64:
# 31 |     List.exists (fun (term, _) -> pred (T term)) (Lr1.reductions lr1) ||
#                                                        ^^^^^^^^^^^^^^
# Alert deprecated: G.Lr1.reductions
# Please use [get_reductions]
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlopt.opt -w -40 -g -I src/reason-parser/.menhir_error_processor.eobjs/byte -I src/reason-parser/.menhir_error_processor.eobjs/native -I /home/opam/.opam/4.09/lib/menhirSdk -intf-suffix .ml -no-alias-deps -o src/reason-parser/.menhir_error_processor.eobjs/native/menhir_error_processor.cmx -c -impl src/reason-parser/menhir_error_processor.ml)
# File "src/reason-parser/menhir_error_processor.ml", line 31, characters 50-64:
# 31 |     List.exists (fun (term, _) -> pred (T term)) (Lr1.reductions lr1) ||
#                                                        ^^^^^^^^^^^^^^
# Alert deprecated: G.Lr1.reductions
# Please use [get_reductions]
# (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.7.0
| - install menhir                  20240715
| - install menhirCST               20240715
| - install menhirLib               20240715
| - install menhirSdk               20240715
| - 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-20240912202658.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.20240715 menhirLib.20240715 menhirCST.20240715 menhir.20240715 dune.3.16.0 cppo.1.7.0 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.