package merlin

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

merlin 3.0.3

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 merlin.3.0.3 yojson.2.1.2 seq.0.3.1 ocamlfind.1.9.6 dune.2.7.1 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 2.7.1).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install cppo   1.6.9
  - install seq    0.3.1
  - install yojson 2.1.2
  - install merlin 3.0.3
===== 4 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/12:
Processing  2/12: [merlin.3.0.3: http]
Processing  3/12: [merlin.3.0.3: http]
-> retrieved cppo.1.6.9  (cached)
Processing  4/12: [merlin.3.0.3: http]
Processing  5/12: [merlin.3.0.3: http] [cppo: dune build]
-> retrieved seq.0.3.1  (cached)
Processing  6/12: [merlin.3.0.3: http] [cppo: dune build] [seq: dune build]
-> retrieved yojson.2.1.2  (cached)
-> compiled  cppo.1.6.9
Processing  6/12: [merlin.3.0.3: http] [seq: dune build]
-> installed cppo.1.6.9
Processing  7/12: [merlin.3.0.3: http] [seq: dune build]
Processing  7/12: [seq: dune build]
-> compiled  seq.0.3.1
Processing  7/12:
-> installed seq.0.3.1
Processing  8/12:
Processing  9/12: [yojson: dune build]
-> retrieved merlin.3.0.3  (https://github.com/ocaml/merlin/archive/v3.0.3.tar.gz)
+ /home/opam/.opam/4.05/bin/dune "build" "-p" "yojson" "-j" "255" "@install" (CWD=/home/opam/.opam/4.05/.opam-switch/build/yojson.2.1.2)
-> compiled  yojson.2.1.2
-> installed yojson.2.1.2
Processing 11/12: [merlin: ./configure]
+ /home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3/./configure "--prefix" "/home/opam/.opam/4.05" (CWD=/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3)
- tput: No value for $TERM and no -T specified
- tput: No value for $TERM and no -T specified
- tput: No value for $TERM and no -T specified
- Merlin configuration
- --------------------
- Found findlib	GOOD
- Found yojson	GOOD
- 
- System config:
-   OCaml ABI version: OCaml 4.05.0
-   Native code: true
-   Sturgeon version: null (disabled)
-   Need threads: no
- 
- Will install:
-   ocamlmerlin binary in: /home/opam/.opam/4.05/bin
-   vim mode in: /home/opam/.opam/4.05/share/ocamlmerlin/vim
- 
- To customize directories, use:
-   ./configure [--prefix <dir>] [--bindir <dir>] [--sharedir <dir>] [--vimdir <vimdir>]
- 
- For more informations rerun with --help.
- Now, type 'make' to compile then 'make install'.
Processing 11/12: [merlin: rm]
+ /usr/bin/rm "-rf" "/home/opam/.opam/4.05/share/ocamlmerlin" (CWD=/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3)
Processing 11/12: [merlin: make 255]
+ /usr/bin/make "-j" "255" (CWD=/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3)
- /usr/bin/make -f Makefile.ocamlmakefile WITH_BIN_ANNOT="" WITHOUT_DEBUG="" ocamlmerlin-server
- cc -o ocamlmerlin src/frontend/ocamlmerlin.c 
- make[1]: Entering directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
- make[2]: Entering directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
- ocamlc -c -ccopt " \
- 			-DNATIVE_CODE   \
- 			 -Isrc/analysis/ -Isrc/config/ -Isrc/extend/ -Isrc/frontend/ -Isrc/frontend/new/ -Isrc/frontend/old/ -Isrc/kernel/ -Isrc/ocaml/support/ -Isrc/ocaml/typer/ -Isrc/ocaml/typer/parsing/ -Isrc/ocaml/typer/typing/ -Isrc/ocaml/typer/utils/ -Isrc/platform/ -Isrc/sturgeon/ -Isrc/utils/   -o src/platform/platform_misc.o " src/platform/platform_misc.c
- ocamlc -c -ccopt " \
- 			-DNATIVE_CODE   \
- 			 -Isrc/analysis/ -Isrc/config/ -Isrc/extend/ -Isrc/frontend/ -Isrc/frontend/new/ -Isrc/frontend/old/ -Isrc/kernel/ -Isrc/ocaml/support/ -Isrc/ocaml/typer/ -Isrc/ocaml/typer/parsing/ -Isrc/ocaml/typer/typing/ -Isrc/ocaml/typer/utils/ -Isrc/platform/ -Isrc/sturgeon/ -Isrc/utils/   -o src/platform/os_ipc_stub.o " src/platform/os_ipc_stub.c
- File "src/frontend/old/old_protocol.ml", line 97, characters 16-25:
- Error: Unbound type constructor Json.json
- make[2]: *** [OCamlMakefile:1079: src/frontend/old/old_protocol.cmx] Error 2
- make[2]: *** Waiting for unfinished jobs....
- make[2]: Leaving directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
- make[1]: *** [OCamlMakefile:780: native-code] Error 2
- make[1]: Leaving directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
- make: *** [Makefile:56: ocamlmerlin-server] Error 2
[ERROR] The compilation of merlin.3.0.3 failed at "make -j 255".

#=== ERROR while compiling merlin.3.0.3 =======================================#
# context              2.1.5 | linux/x86_64 | ocaml-base-compiler.4.05.0 | file:///src
# path                 ~/.opam/4.05/.opam-switch/build/merlin.3.0.3
# command              /usr/bin/make -j 255
# exit-code            2
# env-file             ~/.opam/log/merlin-113-731ac3.env
# output-file          ~/.opam/log/merlin-113-731ac3.out
### output ###
# /usr/bin/make -f Makefile.ocamlmakefile WITH_BIN_ANNOT="" WITHOUT_DEBUG="" ocamlmerlin-server
# cc -o ocamlmerlin src/frontend/ocamlmerlin.c 
# make[1]: Entering directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
# make[2]: Entering directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
# ocamlc -c -ccopt " \
# 			-DNATIVE_CODE   \
# 			 -Isrc/analysis/ -Isrc/config/ -Isrc/extend/ -Isrc/frontend/ -Isrc/frontend/new/ -Isrc/frontend/old/ -Isrc/kernel/ -Isrc/ocaml/support/ -Isrc/ocaml/typer/ -Isrc/ocaml/typer/parsing/ -Isrc/ocaml/typer/typing/ -Isrc/ocaml/typer/utils/ -Isrc/platform/ -Isrc/sturgeon/ -Isrc/utils/   -o src/platform/platform_misc.o " src/platform/platform_misc.c
# ocamlc -c -ccopt " \
# 			-DNATIVE_CODE   \
# 			 -Isrc/analysis/ -Isrc/config/ -Isrc/extend/ -Isrc/frontend/ -Isrc/frontend/new/ -Isrc/frontend/old/ -Isrc/kernel/ -Isrc/ocaml/support/ -Isrc/ocaml/typer/ -Isrc/ocaml/typer/parsing/ -Isrc/ocaml/typer/typing/ -Isrc/ocaml/typer/utils/ -Isrc/platform/ -Isrc/sturgeon/ -Isrc/utils/   -o src/platform/os_ipc_stub.o " src/platform/os_ipc_stub.c
# File "src/frontend/old/old_protocol.ml", line 97, characters 16-25:
# Error: Unbound type constructor Json.json
# make[2]: *** [OCamlMakefile:1079: src/frontend/old/old_protocol.cmx] Error 2
# make[2]: *** Waiting for unfinished jobs....
# make[2]: Leaving directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
# make[1]: *** [OCamlMakefile:780: native-code] Error 2
# make[1]: Leaving directory '/home/opam/.opam/4.05/.opam-switch/build/merlin.3.0.3'
# make: *** [Makefile:56: ocamlmerlin-server] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build merlin 3.0.3
+- 
+- The following changes have been performed
| - install cppo   1.6.9
| - install seq    0.3.1
| - install yojson 2.1.2
+- 
# 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.05/.opam-switch/backup/state-20240129191515.export"
'opam --cli=2.1 install merlin.3.0.3 yojson.2.1.2 seq.0.3.1 ocamlfind.1.9.6 dune.2.7.1 cppo.1.6.9 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.