package aws-s3-lwt

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

aws-s3-lwt 4.3.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 52 packages
  - install angstrom                    0.16.1
  - install astring                     0.8.5
  - install aws-s3                      4.3.0
  - install aws-s3-lwt                  4.3.0
  - install base                        v0.12.2
  - install base-bytes                  base
  - install base64                      3.5.1
  - install bigstringaf                 0.10.0
  - install cmdliner                    1.3.0
  - install conduit                     2.0.2
  - install conduit-lwt                 2.0.2
  - install conduit-lwt-unix            2.0.2
  - install conf-libpcre                2
  - install conf-pkg-config             4
  - install cppo                        1.8.0
  - install csexp                       1.5.2
  - install digestif                    1.2.0
  - install domain-name                 0.4.0
  - install dune-configurator           3.17.2
  - install eqaf                        0.10
  - install ipaddr                      5.6.0
  - install ipaddr-sexp                 5.6.0
  - install logs                        0.7.0
  - install lwt                         5.9.0
  - install macaddr                     5.6.0
  - install num                         1.5-1
  - install ocaml-compiler-libs         v0.12.4
  - install ocaml-inifiles              1.2
  - install ocaml-migrate-parsetree     1.8.0 (deprecated)
  - install ocaml-syntax-shims          1.0.0
  - install ocamlbuild                  0.15.0
  - install ocplib-endian               1.2
  - install parsexp                     v0.12.0
  - install pcre                        8.0.2
  - install ppx_derivers                1.2.1
  - install ppx_inline_test             v0.12.0
  - install ppx_protocol_conv           3.1.3
  - install ppx_protocol_conv_json      3.1.3
  - install ppx_protocol_conv_xml_light 3.1.3
  - install ppx_sexp_conv               v0.12.0
  - install ppxlib                      0.8.1
  - install ptime                       1.2.0
  - install result                      1.5
  - install seq                         base
  - install sexplib                     v0.12.0
  - install sexplib0                    v0.12.0
  - install stdio                       v0.12.0
  - install stringext                   1.6.0
  - install topkg                       1.0.7
  - install uri                         4.4.0
  - install xml-light                   2.5
  - install yojson                      2.2.2

The following system packages will first need to be installed:
    libpcre3-dev pkg-config

<><> 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" "libpcre3-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpcre16-3: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-libpcre16-3_2%3a8.39-15_amd64.deb ...
- Unpacking libpcre16-3:amd64 (2:8.39-15) ...
- Selecting previously unselected package libpcre3:amd64.
- Preparing to unpack .../1-libpcre3_2%3a8.39-15_amd64.deb ...
- Unpacking libpcre3:amd64 (2:8.39-15) ...
- Selecting previously unselected package libpcre32-3:amd64.
- Preparing to unpack .../2-libpcre32-3_2%3a8.39-15_amd64.deb ...
- Unpacking libpcre32-3:amd64 (2:8.39-15) ...
- Selecting previously unselected package libpcrecpp0v5:amd64.
- Preparing to unpack .../3-libpcrecpp0v5_2%3a8.39-15_amd64.deb ...
- Unpacking libpcrecpp0v5:amd64 (2:8.39-15) ...
- Selecting previously unselected package libpcre3-dev:amd64.
- Preparing to unpack .../4-libpcre3-dev_2%3a8.39-15_amd64.deb ...
- Unpacking libpcre3-dev:amd64 (2:8.39-15) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../5-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../6-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../7-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../8-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpcre16-3:amd64 (2:8.39-15) ...
- Setting up libpcre3:amd64 (2:8.39-15) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libpcre32-3:amd64 (2:8.39-15) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libpcrecpp0v5:amd64 (2:8.39-15) ...
- Setting up libpcre3-dev:amd64 (2:8.39-15) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved aws-s3.4.3.0, aws-s3-lwt.4.3.0  (cached)
-> retrieved angstrom.0.16.1  (cached)
-> installed base-bytes.base
-> retrieved astring.0.8.5  (cached)
-> retrieved base64.3.5.1  (cached)
-> retrieved base.v0.12.2  (cached)
-> retrieved bigstringaf.0.10.0  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved conduit.2.0.2, conduit-lwt.2.0.2, conduit-lwt-unix.2.0.2  (cached)
-> retrieved cppo.1.8.0  (cached)
-> installed conf-pkg-config.4
-> retrieved csexp.1.5.2  (cached)
-> retrieved domain-name.0.4.0  (cached)
-> installed conf-libpcre.2
-> retrieved eqaf.0.10  (cached)
-> retrieved ipaddr.5.6.0, ipaddr-sexp.5.6.0, macaddr.5.6.0  (cached)
-> retrieved logs.0.7.0  (cached)
-> installed base64.3.5.1
-> retrieved lwt.5.9.0  (cached)
-> retrieved num.1.5-1  (cached)
-> installed csexp.1.5.2
-> installed domain-name.0.4.0
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved digestif.1.2.0  (cached)
-> retrieved ocaml-inifiles.1.2  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> installed macaddr.5.6.0
-> retrieved ocaml-migrate-parsetree.1.8.0  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> installed eqaf.0.10
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved parsexp.v0.12.0  (cached)
-> retrieved pcre.8.0.2  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_inline_test.v0.12.0  (cached)
-> retrieved ppx_protocol_conv.3.1.3, ppx_protocol_conv_json.3.1.3, ppx_protocol_conv_xml_light.3.1.3  (cached)
-> retrieved dune-configurator.3.17.2  (cached)
-> retrieved ppx_sexp_conv.v0.12.0  (cached)
-> retrieved ppxlib.0.8.1  (cached)
-> retrieved seq.base  (cached)
-> retrieved ptime.1.2.0  (cached)
-> retrieved result.1.5  (cached)
-> retrieved sexplib.v0.12.0  (cached)
-> retrieved sexplib0.v0.12.0  (cached)
-> retrieved stdio.v0.12.0  (cached)
-> installed cmdliner.1.3.0
-> installed cppo.1.8.0
-> installed digestif.1.2.0
-> installed ipaddr.5.6.0
-> installed num.1.5-1
-> installed ocaml-compiler-libs.v0.12.4
-> installed ocaml-syntax-shims.1.0.0
-> installed ppx_derivers.1.2.1
-> installed seq.base
-> installed result.1.5
-> retrieved stringext.1.6.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved uri.4.4.0  (cached)
-> retrieved xml-light.2.5  (cached)
-> retrieved yojson.2.2.2  (cached)
-> installed sexplib0.v0.12.0
-> installed ocplib-endian.1.2
-> installed stringext.1.6.0
-> installed xml-light.2.5
-> installed dune-configurator.3.17.2
-> installed yojson.2.2.2
-> installed bigstringaf.0.10.0
-> installed pcre.8.0.2
-> installed angstrom.0.16.1
-> installed ocaml-inifiles.1.2
-> installed ocamlbuild.0.15.0
-> installed uri.4.4.0
-> installed lwt.5.9.0
-> installed ocaml-migrate-parsetree.1.8.0
-> installed base.v0.12.2
-> installed stdio.v0.12.0
-> installed topkg.1.0.7
-> installed parsexp.v0.12.0
-> installed logs.0.7.0
-> installed sexplib.v0.12.0
-> installed ptime.1.2.0
-> installed astring.0.8.5
-> installed ppxlib.0.8.1
-> installed ppx_protocol_conv.3.1.3
-> installed ppx_protocol_conv_json.3.1.3
-> installed ppx_protocol_conv_xml_light.3.1.3
-> installed ppx_sexp_conv.v0.12.0
-> installed ppx_inline_test.v0.12.0
-> installed ipaddr-sexp.5.6.0
-> installed aws-s3.4.3.0
-> installed conduit.2.0.2
-> installed conduit-lwt.2.0.2
-> installed conduit-lwt-unix.2.0.2
[ERROR] The compilation of aws-s3-lwt.4.3.0 failed at "dune build -p aws-s3-lwt -j 31".

#=== ERROR while compiling aws-s3-lwt.4.3.0 ===================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.09.1 | file:///src
# path                 ~/.opam/4.09/.opam-switch/build/aws-s3-lwt.4.3.0
# command              ~/.opam/4.09/bin/dune build -p aws-s3-lwt -j 31
# exit-code            1
# env-file             ~/.opam/log/aws-s3-lwt-113-28f98d.env
# output-file          ~/.opam/log/aws-s3-lwt-113-28f98d.out
### output ###
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlc.opt -w -40 -g -bin-annot -I cli/.aws_cli.objs/byte -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/cmdliner -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -no-alias-deps -open Aws_cli -o cli/.aws_cli.objs/byte/aws_cli__Cli.cmo -c -impl cli/cli.ml)
# File "cli/cli.ml", line 82, characters 4-13:
# 82 |     Term.info "cp" ~doc:"Copy files to and from S3"
#          ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 92, characters 4-13:
# 92 |     Term.info "rm" ~doc:"Delete files from s3"
#          ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 103, characters 4-13:
# 103 |     Term.info "head" ~doc:"Head files from s3"
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 125, characters 4-13:
# 125 |     Term.info "ls" ~doc:"List files in bucket"
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 131, characters 16-34:
# 131 |     let exits = Term.default_exits in
#                       ^^^^^^^^^^^^^^^^^^
# Alert deprecated: Cmdliner.Term.default_exits
# Use Cmd.Exit.defaults or Cmd.info's defaults ~exits value instead.
# File "cli/cli.ml", line 133, characters 4-13:
# 133 |     Term.info Sys.argv.(0) ~doc ~exits
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 138, characters 10-21:
# 138 |     Term.(eval_choice help cmds)
#                 ^^^^^^^^^^^
# Alert deprecated: Cmdliner.Term.eval_choice
# Use Cmd.group and one of Cmd.eval* instead.
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlc.opt -w -40 -g -bin-annot -I aws-s3-lwt/.aws_s3_lwt.objs/byte -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/astring -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/bytes -I /home/opam/.opam/4.09/lib/conduit -I /home/opam/.opam/4.09/lib/conduit-lwt -I /home/opam/.opam/4.09/lib/conduit-lwt-unix -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/domain-name -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/ipaddr -I /home/opam/.opam/4.09/lib/ipaddr-sexp -I /home/opam/.opam/4.09/lib/ipaddr/unix -I /home/opam/.opam/4.09/lib/logs -I /home/opam/.opam/4.09/lib/lwt -I /home/opam/.opam/4.09/lib/lwt/unix -I /home/opam/.opam/4.09/lib/macaddr -I /home/opam/.opam/4.09/lib/ocaml/threads -I /home/opam/.opam/4.09/lib/ocplib-endian -I /home/opam/.opam/4.09/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.09/lib/parsexp -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/uri/services -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -intf-suffix .ml -no-alias-deps -open Aws_s3_lwt -o aws-s3-lwt/.aws_s3_lwt.objs/byte/aws_s3_lwt__Io.cmo -c -impl aws-s3-lwt/io.ml)
# File "aws-s3-lwt/io.ml", line 183, characters 23-58:
# 183 |       Lwt_result.catch (Lwt_io.read ~count:buffer_size ic) >>= fun data ->
#                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Error: This expression has type string Lwt.t
#        but an expression was expected of type unit -> 'a Lwt.t
#        Hint: Did you forget to wrap the expression using `fun () ->'?
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlopt.opt -w -40 -g -I aws-s3-lwt/.aws_s3_lwt.objs/byte -I aws-s3-lwt/.aws_s3_lwt.objs/native -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/astring -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/bytes -I /home/opam/.opam/4.09/lib/conduit -I /home/opam/.opam/4.09/lib/conduit-lwt -I /home/opam/.opam/4.09/lib/conduit-lwt-unix -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/domain-name -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/ipaddr -I /home/opam/.opam/4.09/lib/ipaddr-sexp -I /home/opam/.opam/4.09/lib/ipaddr/unix -I /home/opam/.opam/4.09/lib/logs -I /home/opam/.opam/4.09/lib/lwt -I /home/opam/.opam/4.09/lib/lwt/unix -I /home/opam/.opam/4.09/lib/macaddr -I /home/opam/.opam/4.09/lib/ocaml/threads -I /home/opam/.opam/4.09/lib/ocplib-endian -I /home/opam/.opam/4.09/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.09/lib/parsexp -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ppx_sexp_conv/runtime-lib -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/uri/services -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -intf-suffix .ml -no-alias-deps -open Aws_s3_lwt -o aws-s3-lwt/.aws_s3_lwt.objs/native/aws_s3_lwt__Io.cmx -c -impl aws-s3-lwt/io.ml)
# File "aws-s3-lwt/io.ml", line 183, characters 23-58:
# 183 |       Lwt_result.catch (Lwt_io.read ~count:buffer_size ic) >>= fun data ->
#                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Error: This expression has type string Lwt.t
#        but an expression was expected of type unit -> 'a Lwt.t
#        Hint: Did you forget to wrap the expression using `fun () ->'?
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlc.opt -w -40 -g -bin-annot -I cli/.aws_cli.objs/byte -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/cmdliner -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -no-alias-deps -open Aws_cli -o cli/.aws_cli.objs/byte/aws_cli__Aws.cmo -c -impl cli/aws.ml)
# File "cli/aws.ml", line 47, characters 19-49:
# 47 |         let data = Pervasives.really_input_string ic n in
#                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "cli/aws.ml", line 50, characters 19-49:
# 50 |         let data = Pervasives.really_input_string ic chunk_size in
#                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlopt.opt -w -40 -g -I cli/.aws_cli.objs/byte -I cli/.aws_cli.objs/native -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/cmdliner -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -intf-suffix .ml -no-alias-deps -open Aws_cli -o cli/.aws_cli.objs/native/aws_cli__Cli.cmx -c -impl cli/cli.ml)
# File "cli/cli.ml", line 82, characters 4-13:
# 82 |     Term.info "cp" ~doc:"Copy files to and from S3"
#          ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 92, characters 4-13:
# 92 |     Term.info "rm" ~doc:"Delete files from s3"
#          ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 103, characters 4-13:
# 103 |     Term.info "head" ~doc:"Head files from s3"
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 125, characters 4-13:
# 125 |     Term.info "ls" ~doc:"List files in bucket"
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 131, characters 16-34:
# 131 |     let exits = Term.default_exits in
#                       ^^^^^^^^^^^^^^^^^^
# Alert deprecated: Cmdliner.Term.default_exits
# Use Cmd.Exit.defaults or Cmd.info's defaults ~exits value instead.
# File "cli/cli.ml", line 133, characters 4-13:
# 133 |     Term.info Sys.argv.(0) ~doc ~exits
#           ^^^^^^^^^
# Alert deprecated: Cmdliner.Term.info
# Use Cmd.info instead.
# File "cli/cli.ml", line 138, characters 10-21:
# 138 |     Term.(eval_choice help cmds)
#                 ^^^^^^^^^^^
# Alert deprecated: Cmdliner.Term.eval_choice
# Use Cmd.group and one of Cmd.eval* instead.
# (cd _build/default && /home/opam/.opam/4.09/bin/ocamlopt.opt -w -40 -g -I cli/.aws_cli.objs/byte -I cli/.aws_cli.objs/native -I /home/opam/.opam/4.09/lib/angstrom -I /home/opam/.opam/4.09/lib/aws-s3 -I /home/opam/.opam/4.09/lib/base -I /home/opam/.opam/4.09/lib/base/caml -I /home/opam/.opam/4.09/lib/base/shadow_stdlib -I /home/opam/.opam/4.09/lib/base64 -I /home/opam/.opam/4.09/lib/bigstringaf -I /home/opam/.opam/4.09/lib/cmdliner -I /home/opam/.opam/4.09/lib/digestif -I /home/opam/.opam/4.09/lib/digestif/c -I /home/opam/.opam/4.09/lib/eqaf -I /home/opam/.opam/4.09/lib/inifiles -I /home/opam/.opam/4.09/lib/pcre -I /home/opam/.opam/4.09/lib/ppx_inline_test/config -I /home/opam/.opam/4.09/lib/ppx_inline_test/runtime-lib -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/driver -I /home/opam/.opam/4.09/lib/ppx_protocol_conv/runtime -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_json -I /home/opam/.opam/4.09/lib/ppx_protocol_conv_xml_light -I /home/opam/.opam/4.09/lib/ptime -I /home/opam/.opam/4.09/lib/seq -I /home/opam/.opam/4.09/lib/sexplib0 -I /home/opam/.opam/4.09/lib/stringext -I /home/opam/.opam/4.09/lib/uri -I /home/opam/.opam/4.09/lib/xml-light -I /home/opam/.opam/4.09/lib/yojson -intf-suffix .ml -no-alias-deps -open Aws_cli -o cli/.aws_cli.objs/native/aws_cli__Aws.cmx -c -impl cli/aws.ml)
# File "cli/aws.ml", line 47, characters 19-49:
# 47 |         let data = Pervasives.really_input_string ic n in
#                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "cli/aws.ml", line 50, characters 19-49:
# 50 |         let data = Pervasives.really_input_string ic chunk_size in
#                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build aws-s3-lwt 4.3.0
+- 
+- The following changes have been performed
| - install angstrom                    0.16.1
| - install astring                     0.8.5
| - install aws-s3                      4.3.0
| - install base                        v0.12.2
| - install base-bytes                  base
| - install base64                      3.5.1
| - install bigstringaf                 0.10.0
| - install cmdliner                    1.3.0
| - install conduit                     2.0.2
| - install conduit-lwt                 2.0.2
| - install conduit-lwt-unix            2.0.2
| - install conf-libpcre                2
| - install conf-pkg-config             4
| - install cppo                        1.8.0
| - install csexp                       1.5.2
| - install digestif                    1.2.0
| - install domain-name                 0.4.0
| - install dune-configurator           3.17.2
| - install eqaf                        0.10
| - install ipaddr                      5.6.0
| - install ipaddr-sexp                 5.6.0
| - install logs                        0.7.0
| - install lwt                         5.9.0
| - install macaddr                     5.6.0
| - install num                         1.5-1
| - install ocaml-compiler-libs         v0.12.4
| - install ocaml-inifiles              1.2
| - install ocaml-migrate-parsetree     1.8.0
| - install ocaml-syntax-shims          1.0.0
| - install ocamlbuild                  0.15.0
| - install ocplib-endian               1.2
| - install parsexp                     v0.12.0
| - install pcre                        8.0.2
| - install ppx_derivers                1.2.1
| - install ppx_inline_test             v0.12.0
| - install ppx_protocol_conv           3.1.3
| - install ppx_protocol_conv_json      3.1.3
| - install ppx_protocol_conv_xml_light 3.1.3
| - install ppx_sexp_conv               v0.12.0
| - install ppxlib                      0.8.1
| - install ptime                       1.2.0
| - install result                      1.5
| - install seq                         base
| - install sexplib                     v0.12.0
| - install sexplib0                    v0.12.0
| - install stdio                       v0.12.0
| - install stringext                   1.6.0
| - install topkg                       1.0.7
| - install uri                         4.4.0
| - install xml-light                   2.5
| - install yojson                      2.2.2
+- 

<><> 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.09/.opam-switch/backup/state-20250206024429.export"
OCaml

Innovation. Community. Security.