package cohttp-lwt

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

cohttp-lwt 1.0.0

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 32 packages
  - install base                    v0.14.3
  - install base-bytes              base
  - install base64                  2.3.0
  - install cohttp                  1.0.0
  - install cohttp-lwt              1.0.0
  - install cppo                    1.8.0
  - install csexp                   1.5.2
  - install dune-configurator       3.17.2
  - install fieldslib               v0.14.0
  - install jbuilder                1.0+beta20.2 (deprecated)
  - install jsonm                   1.0.2
  - install lwt                     5.9.0
  - install num                     1.5-1
  - install ocaml-compiler-libs     v0.12.4
  - install ocaml-migrate-parsetree 1.8.0 (deprecated)
  - install ocamlbuild              0.15.0
  - install ocplib-endian           1.2
  - install parsexp                 v0.14.2
  - install ppx_derivers            1.2.1
  - install ppx_fields_conv         v0.14.1
  - install ppx_sexp_conv           v0.14.1
  - install ppxlib                  0.15.0
  - install re                      1.12.0
  - install result                  1.5
  - install seq                     base
  - install sexplib                 v0.14.0
  - install sexplib0                v0.14.0
  - install stdlib-shims            0.3.0
  - install stringext               1.6.0
  - install topkg                   1.0.7
  - install uri                     1.9.7
  - install uutf                    1.0.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bytes.base
-> retrieved base64.2.3.0  (cached)
-> retrieved cppo.1.8.0  (cached)
-> retrieved base.v0.14.3  (cached)
-> retrieved cohttp.1.0.0, cohttp-lwt.1.0.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved fieldslib.v0.14.0  (cached)
-> retrieved jsonm.1.0.2  (cached)
-> retrieved lwt.5.9.0  (cached)
-> retrieved jbuilder.1.0+beta20.2  (cached)
-> installed base64.2.3.0
-> retrieved dune-configurator.3.17.2  (cached)
-> installed cppo.1.8.0
-> installed csexp.1.5.2
-> retrieved num.1.5-1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocaml-migrate-parsetree.1.8.0  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved parsexp.v0.14.2  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_fields_conv.v0.14.1  (cached)
-> retrieved ppx_sexp_conv.v0.14.1  (cached)
-> retrieved ppxlib.0.15.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved re.1.12.0  (cached)
-> retrieved result.1.5  (cached)
-> retrieved sexplib.v0.14.0  (cached)
-> installed ppx_derivers.1.2.1
-> retrieved sexplib0.v0.14.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved stringext.1.6.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved uri.1.9.7  (cached)
-> retrieved uutf.1.0.3  (cached)
-> installed result.1.5
-> installed ocplib-endian.1.2
-> installed stringext.1.6.0
-> installed stdlib-shims.0.3.0
-> installed sexplib0.v0.14.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed re.1.12.0
-> installed num.1.5-1
-> installed dune-configurator.3.17.2
-> installed lwt.5.9.0
-> installed ocamlbuild.0.15.0
-> installed ocaml-migrate-parsetree.1.8.0
-> installed base.v0.14.3
-> installed jbuilder.1.0+beta20.2
-> installed fieldslib.v0.14.0
-> installed topkg.1.0.7
-> installed parsexp.v0.14.2
-> installed uutf.1.0.3
-> installed sexplib.v0.14.0
-> installed jsonm.1.0.2
-> installed ppxlib.0.15.0
-> installed ppx_fields_conv.v0.14.1
-> installed ppx_sexp_conv.v0.14.1
-> installed uri.1.9.7
-> installed cohttp.1.0.0
[ERROR] The compilation of cohttp-lwt.1.0.0 failed at "jbuilder build -p cohttp-lwt -j 31".

#=== ERROR while compiling cohttp-lwt.1.0.0 ===================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.12.1 | file:///src
# path                 ~/.opam/4.12/.opam-switch/build/cohttp-lwt.1.0.0
# command              ~/.opam/4.12/bin/jbuilder build -p cohttp-lwt -j 31
# exit-code            1
# env-file             ~/.opam/log/cohttp-lwt-113-ccbae9.env
# output-file          ~/.opam/log/cohttp-lwt-113-ccbae9.out
### output ###
#       ocamlc cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Body.{cmo,cmt}
# File "cohttp-lwt/src/body.ml", line 23, characters 35-46:
# 23 |   | `Stream of string Lwt_stream.t sexp_opaque
#                                         ^^^^^^^^^^^
# Alert deprecated: Sexplib.Conv.sexp_opaque
# [since 2019-03] use [@sexp.opaque] instead
#     ocamlopt cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Body.{cmx,o}
# File "cohttp-lwt/src/body.ml", line 23, characters 35-46:
# 23 |   | `Stream of string Lwt_stream.t sexp_opaque
#                                         ^^^^^^^^^^^
# Alert deprecated: Sexplib.Conv.sexp_opaque
# [since 2019-03] use [@sexp.opaque] instead
#       ocamlc cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Client.{cmo,cmt} (exit 2)
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlc.opt -w -40 -g -bin-annot -I cohttp-lwt/src/.cohttp_lwt.objs -I /home/opam/.opam/4.12/lib/base -I /home/opam/.opam/4.12/lib/base/base_internalhash_types -I /home/opam/.opam/4.12/lib/base/caml -I /home/opam/.opam/4.12/lib/base/shadow_stdlib -I /home/opam/.opam/4.12/lib/base64 -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cohttp -I /home/opam/.opam/4.12/lib/fieldslib -I /home/opam/.opam/4.12/lib/lwt -I /home/opam/.opam/4.12/lib/parsexp -I /home/opam/.opam/4.12/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.12/lib/re -I /home/opam/.opam/4.12/lib/re/emacs -I /home/opam/.opam/4.12/lib/re/posix -I /home/opam/.opam/4.12/lib/seq -I /home/opam/.opam/4.12/lib/sexplib -I /home/opam/.opam/4.12/lib/sexplib0 -I /home/opam/.opam/4.12/lib/stringext -I /home/opam/.opam/4.12/lib/uri -no-alias-deps -open Cohttp_lwt__ -o cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Client.cmo -c -impl cohttp-lwt/src/client.pp.ml)
# File "cohttp-lwt/src/client.ml", line 31, characters 10-33:
# 31 |           Lwt_stream.on_terminate stream closefn;
#                ^^^^^^^^^^^^^^^^^^^^^^^
# Error: Unbound value Lwt_stream.on_terminate
#       ocamlc cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Server.{cmo,cmt} (exit 2)
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlc.opt -w -40 -g -bin-annot -I cohttp-lwt/src/.cohttp_lwt.objs -I /home/opam/.opam/4.12/lib/base -I /home/opam/.opam/4.12/lib/base/base_internalhash_types -I /home/opam/.opam/4.12/lib/base/caml -I /home/opam/.opam/4.12/lib/base/shadow_stdlib -I /home/opam/.opam/4.12/lib/base64 -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cohttp -I /home/opam/.opam/4.12/lib/fieldslib -I /home/opam/.opam/4.12/lib/lwt -I /home/opam/.opam/4.12/lib/parsexp -I /home/opam/.opam/4.12/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.12/lib/re -I /home/opam/.opam/4.12/lib/re/emacs -I /home/opam/.opam/4.12/lib/re/posix -I /home/opam/.opam/4.12/lib/seq -I /home/opam/.opam/4.12/lib/sexplib -I /home/opam/.opam/4.12/lib/sexplib0 -I /home/opam/.opam/4.12/lib/stringext -I /home/opam/.opam/4.12/lib/uri -no-alias-deps -open Cohttp_lwt__ -o cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Server.cmo -c -impl cohttp-lwt/src/server.pp.ml)
# File "cohttp-lwt/src/server.ml", line 98, characters 14-37:
# 98 |               Lwt_stream.on_terminate body_stream
#                    ^^^^^^^^^^^^^^^^^^^^^^^
# Error: Unbound value Lwt_stream.on_terminate
#     ocamlopt cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Client.{cmx,o} (exit 2)
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlopt.opt -w -40 -g -I cohttp-lwt/src/.cohttp_lwt.objs -I /home/opam/.opam/4.12/lib/base -I /home/opam/.opam/4.12/lib/base/base_internalhash_types -I /home/opam/.opam/4.12/lib/base/caml -I /home/opam/.opam/4.12/lib/base/shadow_stdlib -I /home/opam/.opam/4.12/lib/base64 -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cohttp -I /home/opam/.opam/4.12/lib/fieldslib -I /home/opam/.opam/4.12/lib/lwt -I /home/opam/.opam/4.12/lib/parsexp -I /home/opam/.opam/4.12/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.12/lib/re -I /home/opam/.opam/4.12/lib/re/emacs -I /home/opam/.opam/4.12/lib/re/posix -I /home/opam/.opam/4.12/lib/seq -I /home/opam/.opam/4.12/lib/sexplib -I /home/opam/.opam/4.12/lib/sexplib0 -I /home/opam/.opam/4.12/lib/stringext -I /home/opam/.opam/4.12/lib/uri -no-alias-deps -open Cohttp_lwt__ -o cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Client.cmx -c -impl cohttp-lwt/src/client.pp.ml)
# File "cohttp-lwt/src/client.ml", line 31, characters 10-33:
# 31 |           Lwt_stream.on_terminate stream closefn;
#                ^^^^^^^^^^^^^^^^^^^^^^^
# Error: Unbound value Lwt_stream.on_terminate
#     ocamlopt cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Server.{cmx,o} (exit 2)
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlopt.opt -w -40 -g -I cohttp-lwt/src/.cohttp_lwt.objs -I /home/opam/.opam/4.12/lib/base -I /home/opam/.opam/4.12/lib/base/base_internalhash_types -I /home/opam/.opam/4.12/lib/base/caml -I /home/opam/.opam/4.12/lib/base/shadow_stdlib -I /home/opam/.opam/4.12/lib/base64 -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cohttp -I /home/opam/.opam/4.12/lib/fieldslib -I /home/opam/.opam/4.12/lib/lwt -I /home/opam/.opam/4.12/lib/parsexp -I /home/opam/.opam/4.12/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.12/lib/re -I /home/opam/.opam/4.12/lib/re/emacs -I /home/opam/.opam/4.12/lib/re/posix -I /home/opam/.opam/4.12/lib/seq -I /home/opam/.opam/4.12/lib/sexplib -I /home/opam/.opam/4.12/lib/sexplib0 -I /home/opam/.opam/4.12/lib/stringext -I /home/opam/.opam/4.12/lib/uri -no-alias-deps -open Cohttp_lwt__ -o cohttp-lwt/src/.cohttp_lwt.objs/cohttp_lwt__Server.cmx -c -impl cohttp-lwt/src/server.pp.ml)
# File "cohttp-lwt/src/server.ml", line 98, characters 14-37:
# 98 |               Lwt_stream.on_terminate body_stream
#                    ^^^^^^^^^^^^^^^^^^^^^^^
# Error: Unbound value Lwt_stream.on_terminate



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build cohttp-lwt 1.0.0
+- 
+- The following changes have been performed
| - install base                    v0.14.3
| - install base-bytes              base
| - install base64                  2.3.0
| - install cohttp                  1.0.0
| - install cppo                    1.8.0
| - install csexp                   1.5.2
| - install dune-configurator       3.17.2
| - install fieldslib               v0.14.0
| - install jbuilder                1.0+beta20.2
| - install jsonm                   1.0.2
| - install lwt                     5.9.0
| - install num                     1.5-1
| - install ocaml-compiler-libs     v0.12.4
| - install ocaml-migrate-parsetree 1.8.0
| - install ocamlbuild              0.15.0
| - install ocplib-endian           1.2
| - install parsexp                 v0.14.2
| - install ppx_derivers            1.2.1
| - install ppx_fields_conv         v0.14.1
| - install ppx_sexp_conv           v0.14.1
| - install ppxlib                  0.15.0
| - install re                      1.12.0
| - install result                  1.5
| - install seq                     base
| - install sexplib                 v0.14.0
| - install sexplib0                v0.14.0
| - install stdlib-shims            0.3.0
| - install stringext               1.6.0
| - install topkg                   1.0.7
| - install uri                     1.9.7
| - install uutf                    1.0.3
+- 

<><> ocaml-migrate-parsetree.1.8.0 installed successfully <><><><><><><><><><><>
=> Note: This package is deprecated.

<><> jbuilder.1.0+beta20.2 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.12/.opam-switch/backup/state-20250206030957.export"
OCaml

Innovation. Community. Security.