package ocaml-protoc-plugin

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

ocaml-protoc-plugin 0.9

Error log

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

[NOTE] Package dune is already installed (current version is 3.17.2).
[NOTE] Package ocamlfind is already installed (current version is 1.9.8).
The following actions will be performed:
=== install 34 packages
  - install base                    v0.13.2
  - install base-bytes              base
  - install conf-protoc             4.4.0
  - install cppo                    1.8.0
  - install csexp                   1.5.2
  - install dune-configurator       3.17.2
  - install fieldslib               v0.13.0
  - install ocaml-compiler-libs     v0.12.4
  - install ocaml-migrate-parsetree 1.8.0 (deprecated)
  - install ocaml-protoc            3.1.1
  - install ocaml-protoc-plugin     0.9
  - install ocplib-endian           1.2
  - install pbrt                    3.1.1
  - install ppx_assert              v0.13.0
  - install ppx_cold                v0.13.0
  - install ppx_compare             v0.13.0
  - install ppx_custom_printf       v0.13.0
  - install ppx_derivers            1.2.1
  - install ppx_deriving            5.0
  - install ppx_expect              v0.13.1
  - install ppx_fields_conv         v0.13.0
  - install ppx_here                v0.13.0
  - install ppx_inline_test         v0.13.1
  - install ppx_let                 v0.13.0
  - install ppx_sexp_conv           v0.13.0
  - install ppx_variants_conv       v0.13.0
  - install ppxlib                  0.13.0
  - install re                      1.11.0
  - install result                  1.5
  - install seq                     base
  - install sexplib0                v0.13.0
  - install stdio                   v0.13.0
  - install stdlib-shims            0.3.0
  - install variantslib             v0.13.0

The following system packages will first need to be installed:
    libprotobuf-dev protobuf-compiler

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libprotobuf-dev" "protobuf-compiler"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package zlib1g-dev:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18745 files and directories currently installed.)
- Preparing to unpack .../0-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Selecting previously unselected package libprotobuf32:amd64.
- Preparing to unpack .../1-libprotobuf32_3.21.12-3_amd64.deb ...
- Unpacking libprotobuf32:amd64 (3.21.12-3) ...
- Selecting previously unselected package libprotobuf-lite32:amd64.
- Preparing to unpack .../2-libprotobuf-lite32_3.21.12-3_amd64.deb ...
- Unpacking libprotobuf-lite32:amd64 (3.21.12-3) ...
- Selecting previously unselected package libprotobuf-dev:amd64.
- Preparing to unpack .../3-libprotobuf-dev_3.21.12-3_amd64.deb ...
- Unpacking libprotobuf-dev:amd64 (3.21.12-3) ...
- Selecting previously unselected package libprotoc32:amd64.
- Preparing to unpack .../4-libprotoc32_3.21.12-3_amd64.deb ...
- Unpacking libprotoc32:amd64 (3.21.12-3) ...
- Selecting previously unselected package protobuf-compiler.
- Preparing to unpack .../5-protobuf-compiler_3.21.12-3_amd64.deb ...
- Unpacking protobuf-compiler (3.21.12-3) ...
- Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Setting up libprotobuf32:amd64 (3.21.12-3) ...
- Setting up libprotobuf-lite32:amd64 (3.21.12-3) ...
- Setting up libprotoc32:amd64 (3.21.12-3) ...
- Setting up protobuf-compiler (3.21.12-3) ...
- Setting up libprotobuf-dev:amd64 (3.21.12-3) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bytes.base
-> retrieved cppo.1.8.0  (cached)
-> retrieved base.v0.13.2  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-protoc.4.4.0
-> retrieved fieldslib.v0.13.0  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocaml-protoc.3.1.1, pbrt.3.1.1  (cached)
-> retrieved ocaml-protoc-plugin.0.9  (cached)
-> retrieved ocaml-migrate-parsetree.1.8.0  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved ppx_assert.v0.13.0  (cached)
-> retrieved ppx_cold.v0.13.0  (cached)
-> retrieved ppx_compare.v0.13.0  (cached)
-> retrieved ppx_custom_printf.v0.13.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> installed csexp.1.5.2
-> retrieved ppx_deriving.5.0  (cached)
-> retrieved ppx_expect.v0.13.1  (cached)
-> retrieved ppx_fields_conv.v0.13.0  (cached)
-> retrieved ppx_here.v0.13.0  (cached)
-> retrieved ppx_inline_test.v0.13.1  (cached)
-> retrieved ppx_let.v0.13.0  (cached)
-> retrieved ppx_sexp_conv.v0.13.0  (cached)
-> retrieved ppx_variants_conv.v0.13.0  (cached)
-> retrieved re.1.11.0  (cached)
-> retrieved result.1.5  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved ppxlib.0.13.0  (cached)
-> installed ppx_derivers.1.2.1
-> retrieved sexplib0.v0.13.0  (cached)
-> retrieved stdio.v0.13.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved variantslib.v0.13.0  (cached)
-> installed result.1.5
-> retrieved dune-configurator.3.17.2  (cached)
-> installed cppo.1.8.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed re.1.11.0
-> installed sexplib0.v0.13.0
-> installed stdlib-shims.0.3.0
-> installed ocplib-endian.1.2
-> installed pbrt.3.1.1
-> installed dune-configurator.3.17.2
-> installed ocaml-protoc.3.1.1
-> installed ocaml-migrate-parsetree.1.8.0
-> installed base.v0.13.2
-> installed fieldslib.v0.13.0
-> installed variantslib.v0.13.0
-> installed stdio.v0.13.0
-> installed ppxlib.0.13.0
-> installed ppx_cold.v0.13.0
-> installed ppx_here.v0.13.0
-> installed ppx_let.v0.13.0
-> installed ppx_fields_conv.v0.13.0
-> installed ppx_variants_conv.v0.13.0
-> installed ppx_compare.v0.13.0
-> installed ppx_inline_test.v0.13.1
-> installed ppx_sexp_conv.v0.13.0
-> installed ppx_deriving.5.0
-> installed ppx_assert.v0.13.0
-> installed ppx_custom_printf.v0.13.0
-> installed ppx_expect.v0.13.1
[ERROR] The compilation of ocaml-protoc-plugin.0.9 failed at "dune build -p ocaml-protoc-plugin -j 39".

#=== ERROR while compiling ocaml-protoc-plugin.0.9 ============================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.11.2 | file:///src
# path                 ~/.opam/4.11/.opam-switch/build/ocaml-protoc-plugin.0.9
# command              ~/.opam/4.11/bin/dune build -p ocaml-protoc-plugin -j 39
# exit-code            1
# env-file             ~/.opam/log/ocaml-protoc-plugin-113-3d0d7d.env
# output-file          ~/.opam/log/ocaml-protoc-plugin-113-3d0d7d.out
### output ###
# (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/spec/.spec.objs/byte -I src/spec/.spec.objs/native -I /home/opam/.opam/4.11/lib/ocaml-protoc -I /home/opam/.opam/4.11/lib/pbrt -intf-suffix .ml -no-alias-deps -open Spec__ -o src/spec/.spec.objs/native/spec__Descriptor_pb.cmx -c -impl src/spec/descriptor_pb.ml)
# File "src/spec/descriptor_pb.ml", line 1619, characters 19-34:
# 1619 |   Pbrt.Encoder.key (1, Pbrt.Bytes) encoder; 
#                           ^^^^^^^^^^^^^^^
# Error: This expression has type 'a * 'b
#        but an expression was expected of type int
# (cd _build/default && /home/opam/.opam/4.11/bin/ocamlc.opt -w -40 -g -bin-annot -I src/protobuf/.protobuf.objs/byte -I /home/opam/.opam/4.11/lib/base -I /home/opam/.opam/4.11/lib/base/base_internalhash_types -I /home/opam/.opam/4.11/lib/base/caml -I /home/opam/.opam/4.11/lib/base/shadow_stdlib -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/fieldslib -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ppx_compare/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_deriving/runtime -I /home/opam/.opam/4.11/lib/ppx_expect/collector -I /home/opam/.opam/4.11/lib/ppx_expect/common -I /home/opam/.opam/4.11/lib/ppx_expect/config -I /home/opam/.opam/4.11/lib/ppx_here/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_inline_test/config -I /home/opam/.opam/4.11/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/sexplib0 -no-alias-deps -open Protobuf__ -o src/protobuf/.protobuf.objs/byte/protobuf__Reader.cmo -c -impl src/protobuf/reader.pp.ml)
# File "src/protobuf/reader.ml", line 32, characters 12-26:
# 32 |   | true -> Result.ok_unit
#                  ^^^^^^^^^^^^^^
# Alert deprecated: Base.Result.ok_unit
# [since 2019-04] Use [Ok ()], which is also statically allocated, instead.
# (cd _build/default && /home/opam/.opam/4.11/bin/ocamlopt.opt -w -40 -g -I src/protobuf/.protobuf.objs/byte -I src/protobuf/.protobuf.objs/native -I /home/opam/.opam/4.11/lib/base -I /home/opam/.opam/4.11/lib/base/base_internalhash_types -I /home/opam/.opam/4.11/lib/base/caml -I /home/opam/.opam/4.11/lib/base/shadow_stdlib -I /home/opam/.opam/4.11/lib/bytes -I /home/opam/.opam/4.11/lib/fieldslib -I /home/opam/.opam/4.11/lib/ocplib-endian -I /home/opam/.opam/4.11/lib/ppx_compare/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_deriving/runtime -I /home/opam/.opam/4.11/lib/ppx_expect/collector -I /home/opam/.opam/4.11/lib/ppx_expect/common -I /home/opam/.opam/4.11/lib/ppx_expect/config -I /home/opam/.opam/4.11/lib/ppx_here/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_inline_test/config -I /home/opam/.opam/4.11/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.11/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.11/lib/result -I /home/opam/.opam/4.11/lib/sexplib0 -intf-suffix .ml -no-alias-deps -open Protobuf__ -o src/protobuf/.protobuf.objs/native/protobuf__Reader.cmx -c -impl src/protobuf/reader.pp.ml)
# File "src/protobuf/reader.ml", line 32, characters 12-26:
# 32 |   | true -> Result.ok_unit
#                  ^^^^^^^^^^^^^^
# Alert deprecated: Base.Result.ok_unit
# [since 2019-04] Use [Ok ()], which is also statically allocated, instead.



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ocaml-protoc-plugin 0.9
+- 
+- The following changes have been performed
| - install base                    v0.13.2
| - install base-bytes              base
| - install conf-protoc             4.4.0
| - install cppo                    1.8.0
| - install csexp                   1.5.2
| - install dune-configurator       3.17.2
| - install fieldslib               v0.13.0
| - install ocaml-compiler-libs     v0.12.4
| - install ocaml-migrate-parsetree 1.8.0
| - install ocaml-protoc            3.1.1
| - install ocplib-endian           1.2
| - install pbrt                    3.1.1
| - install ppx_assert              v0.13.0
| - install ppx_cold                v0.13.0
| - install ppx_compare             v0.13.0
| - install ppx_custom_printf       v0.13.0
| - install ppx_derivers            1.2.1
| - install ppx_deriving            5.0
| - install ppx_expect              v0.13.1
| - install ppx_fields_conv         v0.13.0
| - install ppx_here                v0.13.0
| - install ppx_inline_test         v0.13.1
| - install ppx_let                 v0.13.0
| - install ppx_sexp_conv           v0.13.0
| - install ppx_variants_conv       v0.13.0
| - install ppxlib                  0.13.0
| - install re                      1.11.0
| - install result                  1.5
| - install seq                     base
| - install sexplib0                v0.13.0
| - install stdio                   v0.13.0
| - install stdlib-shims            0.3.0
| - install variantslib             v0.13.0
+- 

<><> ocaml-migrate-parsetree.1.8.0 installed successfully <><><><><><><><><><><>
=> Note: This package is deprecated.
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.11/.opam-switch/backup/state-20250206030414.export"
OCaml

Innovation. Community. Security.