(not at the head of any monitored branch or PR)
2022-07-26 15:58.06: New job: test mirage-nat.2.2.1 with ounit2.2.2.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/21354/head (10b49fadb0efcff442ed8cae85f7cc119fe28629)
                              on debian-11-ocaml-4.14/amd64

To reproduce locally:

git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/21354/head" && git reset --hard 10b49fad
git fetch origin master
git merge 42e749bdca1e36a9f7bbef60b3507d34c6c57fa3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-11-ocaml-4.14@sha256:1461d919411f5999f6d7ffd573b9b5385cda91accf83d3866b26097e791220be
USER 1000:1000
WORKDIR /home/opam
RUN for pkg in $(opam pin list --short); do opam pin remove "$pkg"; done
RUN opam repository remove -a multicore || true
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="500"
ENV OPAMPRECISETRACKING="1"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam pin add -k version -yn ounit2.2.2.0 2.2.0
RUN opam update --depexts
RUN opam remove ounit2.2.2.0 && opam install --deps-only ounit2.2.2.0 && opam install -v ounit2.2.2.0; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-11\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    done; \
    exit 1
RUN opam update --depexts
RUN opam remove mirage-nat.2.2.1 && opam install --deps-only mirage-nat.2.2.1 && opam install -v mirage-nat.2.2.1; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-11\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    done; \
    exit 1
RUN opam update --depexts
RUN opam remove mirage-nat.2.2.1 && opam install --deps-only --with-test mirage-nat.2.2.1 && opam install -v --with-test mirage-nat.2.2.1; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-11\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    done; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2022-07-26 15:58.06: Using cache hint "ocaml/opam:debian-11-ocaml-4.14@sha256:1461d919411f5999f6d7ffd573b9b5385cda91accf83d3866b26097e791220be-ounit2.2.2.0-mirage-nat.2.2.1-10b49fadb0efcff442ed8cae85f7cc119fe28629"
2022-07-26 15:58.06: Using OBuilder spec:
((from ocaml/opam:debian-11-ocaml-4.14@sha256:1461d919411f5999f6d7ffd573b9b5385cda91accf83d3866b26097e791220be)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "for pkg in $(opam pin list --short); do opam pin remove \"$pkg\"; done"))
 (run (shell "opam repository remove -a multicore || true"))
 (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
 (run (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 500)
 (env OPAMPRECISETRACKING 1)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (shell "opam pin add -k version -yn ounit2.2.2.0 2.2.0"))
 (run (network host)
      (shell "opam update --depexts"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam remove ounit2.2.2.0 && opam install --deps-only ounit2.2.2.0 && opam install -v ounit2.2.2.0;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n        done;\
             \n        exit 1"))
 (run (network host)
      (shell "opam update --depexts"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam remove mirage-nat.2.2.1 && opam install --deps-only mirage-nat.2.2.1 && opam install -v mirage-nat.2.2.1;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n        done;\
             \n        exit 1"))
 (run (network host)
      (shell "opam update --depexts"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam remove mirage-nat.2.2.1 && opam install --deps-only --with-test mirage-nat.2.2.1 && opam install -v --with-test mirage-nat.2.2.1;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n        done;\
             \n        exit 1"))
)

2022-07-26 15:58.06: Waiting for resource in pool OCluster
2022-07-27 04:56.29: Waiting for worker...
2022-07-27 04:58.20: Got resource from pool OCluster
Building on clete.ocamllabs.io
All commits already cached
Updating files:  30% (8105/26809)
Updating files:  31% (8311/26809)
Updating files:  32% (8579/26809)
Updating files:  33% (8847/26809)
Updating files:  34% (9116/26809)
Updating files:  35% (9384/26809)
Updating files:  36% (9652/26809)
Updating files:  37% (9920/26809)
Updating files:  38% (10188/26809)
Updating files:  39% (10456/26809)
Updating files:  40% (10724/26809)
Updating files:  41% (10992/26809)
Updating files:  42% (11260/26809)
Updating files:  43% (11528/26809)
Updating files:  44% (11796/26809)
Updating files:  45% (12065/26809)
Updating files:  46% (12333/26809)
Updating files:  47% (12601/26809)
Updating files:  48% (12869/26809)
Updating files:  49% (13137/26809)
Updating files:  50% (13405/26809)
Updating files:  51% (13673/26809)
Updating files:  52% (13941/26809)
Updating files:  53% (14209/26809)
Updating files:  54% (14477/26809)
Updating files:  55% (14745/26809)
Updating files:  56% (15014/26809)
Updating files:  57% (15282/26809)
Updating files:  58% (15550/26809)
Updating files:  58% (15790/26809)
Updating files:  59% (15818/26809)
Updating files:  60% (16086/26809)
Updating files:  61% (16354/26809)
Updating files:  62% (16622/26809)
Updating files:  63% (16890/26809)
Updating files:  64% (17158/26809)
Updating files:  65% (17426/26809)
Updating files:  66% (17694/26809)
Updating files:  67% (17963/26809)
Updating files:  68% (18231/26809)
Updating files:  69% (18499/26809)
Updating files:  70% (18767/26809)
Updating files:  71% (19035/26809)
Updating files:  72% (19303/26809)
Updating files:  73% (19571/26809)
Updating files:  74% (19839/26809)
Updating files:  75% (20107/26809)
Updating files:  76% (20375/26809)
Updating files:  77% (20643/26809)
Updating files:  78% (20912/26809)
Updating files:  79% (21180/26809)
Updating files:  80% (21448/26809)
Updating files:  81% (21716/26809)
Updating files:  82% (21984/26809)
Updating files:  83% (22252/26809)
Updating files:  84% (22520/26809)
Updating files:  85% (22788/26809)
Updating files:  86% (23056/26809)
Updating files:  87% (23324/26809)
Updating files:  88% (23592/26809)
Updating files:  89% (23861/26809)
Updating files:  90% (24129/26809)
Updating files:  91% (24397/26809)
Updating files:  92% (24665/26809)
Updating files:  93% (24933/26809)
Updating files:  94% (25201/26809)
Updating files:  95% (25469/26809)
Updating files:  96% (25737/26809)
Updating files:  96% (25898/26809)
Updating files:  97% (26005/26809)
Updating files:  98% (26273/26809)
Updating files:  99% (26541/26809)
Updating files: 100% (26809/26809)
Updating files: 100% (26809/26809), done.
HEAD is now at 42e749bdca Merge pull request #21885 from kit-ty-kate/fix-123
Merge made by the 'ort' strategy.
 packages/ounit2/ounit2.2.2.0/opam | 3 +++
 packages/ounit2/ounit2.2.2.1/opam | 3 +++
 packages/ounit2/ounit2.2.2.2/opam | 3 +++
 packages/ounit2/ounit2.2.2.3/opam | 3 +++
 packages/ounit2/ounit2.2.2.4/opam | 3 +++
 packages/ounit2/ounit2.2.2.5/opam | 3 +++
 packages/ounit2/ounit2.2.2.6/opam | 3 +++
 7 files changed, 21 insertions(+)

(from ocaml/opam:debian-11-ocaml-4.14@sha256:1461d919411f5999f6d7ffd573b9b5385cda91accf83d3866b26097e791220be)
2022-07-27 04:58.46 ---> using "d837bbe1b6e58c32e942b55a1eb695ef30d2cac63c8a5d708beb3548d17192b4" from cache

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "for pkg in $(opam pin list --short); do opam pin remove \"$pkg\"; done"))
Ok, ocaml-base-compiler is no longer pinned to https://github.com/ocaml/ocaml/archive/4.14.0.tar.gz (version 4.14.0)
No package build needed.
Nothing to do.
# Run eval $(opam env) to update the current shell environment
2022-07-27 04:58.46 ---> using "543d29c04ee698e03faf7cfdc4bb3cf9e04a80ab924d981f1055393f1479d117" from cache

/home/opam: (run (shell "opam repository remove -a multicore || true"))
[WARNING] No configured repositories by these names found: multicore
2022-07-27 04:58.46 ---> using "e8a5c58b05459f7be98d7b03e29623d3a05b15b34833b50ebffb60eff7871cde" from cache

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2022-07-27 04:58.46 ---> using "4687a20afa7557b4b2498b537430ed75c7b51cd6cad60d9c4757ff852befb1a7" from cache

/home/opam: (run (shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.

This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.1, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2022-07-27 04:58.46 ---> using "87c4051d859f505ce794fbdc2ed87105744babed536dd4b09731a9b1e22fd3d4" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 500)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (run (shell "rm -rf opam-repository/"))
2022-07-27 04:58.46 ---> using "96a067e6b08152c0f77ff1628817c13e12ac3db1ba1ac882a90278edcbb3d011" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2022-07-27 04:58.48 ---> using "5ce106567f73501cd746c3358ba50b49e5b3ad28d47e7894c1f65b44fcda87e7" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2022-07-27 04:58.48 ---> using "0981e55d831537155c9e161d0ab37d0aeee18cf4c3d1dbad8143304b4c508a5d" from cache

/home/opam: (run (shell "opam pin add -k version -yn ounit2.2.2.0 2.2.0"))
ounit2 is now pinned to version 2.2.0
2022-07-27 04:58.48 ---> using "a5b811fe2c6ab2fd90efb98285ea9db0346a5de8dadc9481e3cd36fb68f11371" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
- Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
- Get:4 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [168 kB]
- Fetched 261 kB in 0s (626 kB/s)
- Reading package lists...
- 
2022-07-27 04:58.48 ---> using "db2d7bb6f3a492dbe20e0d4ddb4733d768da5e64ce8f97c3cbc89325acd13b48" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam remove ounit2.2.2.0 && opam install --deps-only ounit2.2.2.0 && opam install -v ounit2.2.2.0;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n        done;\
                        \n        exit 1"))
[NOTE] ounit2.2.2.0 is not installed.

Nothing to do.
The following actions will be performed:
=== install 4 packages
  - install base-bytes   base  [required by ounit2]
  - install dune         3.4.1 [required by ounit2]
  - install ocamlfind    1.9.5 [required by base-bytes]
  - install stdlib-shims 0.3.0 [required by ounit2]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.4.1  (cached)
-> retrieved ocamlfind.1.9.5  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed ocamlfind.1.9.5
-> installed base-bytes.base
-> installed dune.3.4.1
-> installed stdlib-shims.0.3.0
Done.
# Run eval $(opam env) to update the current shell environment
The following actions will be performed:
=== install 1 package
  - install ounit2 2.2.0 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3:
-> retrieved ounit2.2.2.0  (cached)
Processing  2/3: [ounit2: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "ounit2" "-j" "31" (CWD=/home/opam/.opam/4.14/.opam-switch/build/ounit2.2.2.0)
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -I /home/opam/.opam/4.14/lib/stdlib-shims -no-alias-deps -o src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte/oUnitAssert.cmo -c -impl src/lib/ounit2/advanced/oUnitAssert.ml)
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 130, characters 13-27:
- 130 |     ?(sinput=Stream.of_list [])
-                    ^^^^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 270, characters 13-24:
- 270 |              Stream.iter
-                    ^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 315, characters 26-43:
- 315 |                  foutput (Stream.of_channel chn)
-                                 ^^^^^^^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/native -I /home/opam/.opam/4.14/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -o src/lib/ounit2/advanced/.oUnitAdvanced.objs/native/oUnitAssert.cmx -c -impl src/lib/ounit2/advanced/oUnitAssert.ml)
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 130, characters 13-27:
- 130 |     ?(sinput=Stream.of_list [])
-                    ^^^^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 270, characters 13-24:
- 270 |              Stream.iter
-                    ^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/advanced/oUnitAssert.ml", line 315, characters 26-43:
- 315 |                  foutput (Stream.of_channel chn)
-                                 ^^^^^^^^^^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/lib/ounit2/.oUnit.objs/byte -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -no-alias-deps -o src/lib/ounit2/.oUnit.objs/byte/oUnit2.cmi -c -intf src/lib/ounit2/oUnit2.mli)
- File "src/lib/ounit2/oUnit2.mli", line 88, characters 17-25:
- 88 |     ?sinput:char Stream.t ->
-                       ^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/oUnit2.mli", line 89, characters 19-27:
- 89 |     ?foutput:(char Stream.t -> unit) ->
-                         ^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/lib/ounit2/.oUnit.objs/byte -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -no-alias-deps -o src/lib/ounit2/.oUnit.objs/byte/oUnit.cmi -c -intf src/lib/ounit2/oUnit.mli)
- File "src/lib/ounit2/oUnit.mli", line 80, characters 17-25:
- 80 |     ?sinput:char Stream.t ->
-                       ^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- File "src/lib/ounit2/oUnit.mli", line 81, characters 19-27:
- 81 |     ?foutput:(char Stream.t -> unit) ->
-                         ^^^^^^^^
- Alert deprecated: module Stdlib.Stream
- Use the camlp-streams library instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/lib/ounit2/threads/.oUnitThreads.objs/byte -I src/lib/ounit2/threads/.oUnitThreads.objs/public_cmi -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/lib/ounit2/.oUnit.objs/byte -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -no-alias-deps -open OUnitThreads__ -o src/lib/ounit2/threads/.oUnitThreads.objs/byte/oUnitThreads__OUnitRunnerThreads.cmo -c -impl src/lib/ounit2/threads/oUnitRunnerThreads.ml)
- File "src/lib/ounit2/threads/oUnitRunnerThreads.ml", line 147, characters 8-19:
- 147 |         Thread.kill thread;
-               ^^^^^^^^^^^
- Alert deprecated: Thread.kill
- Not implemented, do not use
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/lib/ounit2/threads/.oUnitThreads.objs/byte -I src/lib/ounit2/threads/.oUnitThreads.objs/native -I src/lib/ounit2/threads/.oUnitThreads.objs/public_cmi -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/lib/ounit2/.oUnit.objs/byte -I src/lib/ounit2/.oUnit.objs/native -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/byte -I src/lib/ounit2/advanced/.oUnitAdvanced.objs/native -intf-suffix .ml -no-alias-deps -open OUnitThreads__ -o src/lib/ounit2/threads/.oUnitThreads.objs/native/oUnitThreads__OUnitRunnerThreads.cmx -c -impl src/lib/ounit2/threads/oUnitRunnerThreads.ml)
- File "src/lib/ounit2/threads/oUnitRunnerThreads.ml", line 147, characters 8-19:
- 147 |         Thread.kill thread;
-               ^^^^^^^^^^^
- Alert deprecated: Thread.kill
- Not implemented, do not use
-> compiled  ounit2.2.2.0
-> installed ounit2.2.2.0
Done.
# Run eval $(opam env) to update the current shell environment
2022-07-27 04:58.48 ---> using "549816a256be73d9a20d8aac9e10b779e4fdffd8e09de149b8d5e327ac84c14f" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
- Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
- Reading package lists...
- 
2022-07-27 04:58.48 ---> using "ed77e423a302c60a5809ee2b791a97889b346ae238a3ae55d40f898cb095304c" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam remove mirage-nat.2.2.1 && opam install --deps-only mirage-nat.2.2.1 && opam install -v mirage-nat.2.2.1;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n        done;\
                        \n        exit 1"))
[NOTE] mirage-nat.2.2.1 is not installed.

Nothing to do.
The following actions will be performed:
=== install 45 packages
  - install base                v0.15.0 [required by parsexp]
  - install bigarray-compat     1.1.0   [required by cstruct]
  - install cppo                1.6.9   [required by ppx_deriving]
  - install csexp               1.5.1   [required by dune-configurator]
  - install cstruct             6.0.1   [required by mirage-nat]
  - install cstruct-lwt         6.0.1   [required by tcpip]
  - install domain-name         0.4.0   [required by ipaddr]
  - install dune-configurator   3.4.1   [required by tcpip]
  - install duration            0.2.0   [required by tcpip]
  - install ethernet            2.2.1   [required by mirage-nat]
  - install fmt                 0.9.0   [required by tcpip]
  - install ipaddr              5.3.1   [required by mirage-nat]
  - install logs                0.7.0   [required by mirage-nat]
  - install lru                 0.3.0   [required by mirage-nat]
  - install lwt                 5.6.1   [required by mirage-nat]
  - install lwt-dllist          1.0.1   [required by tcpip]
  - install macaddr             5.3.1   [required by ethernet, tcpip]
  - install macaddr-cstruct     5.3.1   [required by tcpip]
  - install mirage-clock        4.2.0   [required by tcpip]
  - install mirage-device       2.0.0   [required by mirage-protocols]
  - install mirage-flow         3.0.0   [required by mirage-protocols]
  - install mirage-net          4.0.0   [required by ethernet, tcpip]
  - install mirage-profile      0.9.1   [required by ethernet, tcpip]
  - install mirage-protocols    4.0.1   [required by ethernet, tcpip]
  - install mirage-random       3.0.0   [required by tcpip]
  - install mirage-stack        3.0.0   [required by tcpip]
  - install mirage-time         3.0.0   [required by tcpip]
  - install num                 1.4     [required by sexplib]
  - install ocaml-compiler-libs v0.12.4 [required by ppxlib]
  - install ocamlbuild          0.14.1  [required by rresult]
  - install ocplib-endian       1.2     [required by mirage-profile]
  - install parsexp             v0.15.0 [required by sexplib]
  - install ppx_cstruct         6.0.1   [required by ethernet]
  - install ppx_derivers        1.2.1   [required by ppx_deriving]
  - install ppx_deriving        5.2.1   [required by mirage-nat]
  - install ppxlib              0.27.0  [required by ppx_deriving]
  - install psq                 0.2.0   [required by lru]
  - install randomconv          0.1.3   [required by tcpip]
  - install result              1.5     [required by ppx_deriving, tcpip]
  - install rresult             0.7.0   [required by mirage-nat]
  - install seq                 base    [required by psq]
  - install sexplib             v0.15.1 [required by ppx_cstruct]
  - install sexplib0            v0.15.1 [required by ppxlib, sexplib]
  - install tcpip               5.0.1   [required by mirage-nat]
  - install topkg               1.0.5   [required by rresult]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base.v0.15.0  (cached)
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved cppo.1.6.9  (cached)
-> retrieved csexp.1.5.1  (cached)
-> retrieved cstruct.6.0.1, cstruct-lwt.6.0.1, ppx_cstruct.6.0.1  (cached)
-> retrieved domain-name.0.4.0  (cached)
-> installed csexp.1.5.1
-> installed bigarray-compat.1.1.0
-> installed domain-name.0.4.0
-> retrieved dune-configurator.3.4.1  (cached)
-> installed cstruct.6.0.1
-> retrieved duration.0.2.0  (cached)
-> retrieved ethernet.2.2.1  (cached)
-> retrieved fmt.0.9.0  (cached)
-> retrieved ipaddr.5.3.1, macaddr.5.3.1, macaddr-cstruct.5.3.1  (cached)
-> installed cppo.1.6.9
-> retrieved logs.0.7.0  (cached)
-> retrieved lru.0.3.0  (cached)
-> retrieved lwt.5.6.1  (cached)
-> retrieved lwt-dllist.1.0.1  (cached)
-> retrieved mirage-clock.4.2.0  (cached)
-> retrieved mirage-device.2.0.0  (cached)
-> retrieved mirage-flow.3.0.0  (cached)
-> retrieved mirage-net.4.0.0  (cached)
-> retrieved mirage-profile.0.9.1  (cached)
-> installed duration.0.2.0
-> retrieved mirage-protocols.4.0.1  (cached)
-> retrieved mirage-random.3.0.0  (cached)
-> retrieved mirage-stack.3.0.0  (cached)
-> retrieved mirage-time.3.0.0  (cached)
-> retrieved num.1.4  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlbuild.0.14.1  (cached)
-> installed lwt-dllist.1.0.1
-> installed macaddr.5.3.1
-> installed mirage-clock.4.2.0
-> installed mirage-random.3.0.0
-> retrieved ocplib-endian.1.2  (cached)
-> retrieved parsexp.v0.15.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.5.2.1  (cached)
-> installed macaddr-cstruct.5.3.1
-> retrieved ppxlib.0.27.0  (cached)
-> retrieved psq.0.2.0  (cached)
-> retrieved randomconv.0.1.3  (cached)
-> installed ppx_derivers.1.2.1
-> retrieved result.1.5  (cached)
-> retrieved rresult.0.7.0  (cached)
-> installed seq.base
-> retrieved sexplib.v0.15.1  (cached)
-> retrieved sexplib0.v0.15.1  (cached)
-> installed ocplib-endian.1.2
-> installed randomconv.0.1.3
-> installed ipaddr.5.3.1
-> installed result.1.5
-> installed psq.0.2.0
-> retrieved tcpip.5.0.1  (https://github.com/mirage/mirage-tcpip/releases/download/v5.0.1/tcpip-v5.0.1.tbz)
-> retrieved topkg.1.0.5  (cached)
-> installed sexplib0.v0.15.1
-> installed dune-configurator.3.4.1
-> installed lru.0.3.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed num.1.4
-> installed ocamlbuild.0.14.1
-> installed lwt.5.6.1
-> installed mirage-time.3.0.0
-> installed cstruct-lwt.6.0.1
-> installed base.v0.15.0
-> installed parsexp.v0.15.0
-> installed sexplib.v0.15.1
-> installed topkg.1.0.5
-> installed rresult.0.7.0
-> installed fmt.0.9.0
-> installed mirage-device.2.0.0
-> installed mirage-net.4.0.0
-> installed mirage-flow.3.0.0
-> installed mirage-protocols.4.0.1
-> installed mirage-stack.3.0.0
-> installed logs.0.7.0
-> installed ppxlib.0.27.0
-> installed ppx_cstruct.6.0.1
-> installed ppx_deriving.5.2.1
-> installed mirage-profile.0.9.1
-> installed ethernet.2.2.1
-> installed tcpip.5.0.1
Done.
# Run eval $(opam env) to update the current shell environment
The following actions will be performed:
=== install 1 package
  - install mirage-nat 2.2.1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [mirage-nat.2.2.1: http]
Processing  1/3:
-> retrieved mirage-nat.2.2.1  (https://github.com/mirage/mirage-nat/releases/download/v2.2.1/mirage-nat-v2.2.1.tbz)
Processing  2/3: [mirage-nat: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "mirage-nat" "-j" "31" (CWD=/home/opam/.opam/4.14/.opam-switch/build/mirage-nat.2.2.1)
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.mirage_nat.objs/byte -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/byte/nat_packet.cmo -c -impl lib/nat_packet.pp.ml)
- File "lib/nat_packet.ml", line 75, characters 59-70:
- 75 |   | `ICMP (_, icmp_payload) -> Icmpv4_wire.sizeof_icmpv4, (Cstruct.len icmp_payload)
-                                                                 ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 76, characters 51-62:
- 76 |   | `UDP (_, udp_payload) -> Udp_wire.sizeof_udp, (Cstruct.len udp_payload)
-                                                         ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 79, characters 49-60:
- 79 |     (Tcp.Tcp_wire.sizeof_tcp + options_length), (Cstruct.len tcp_payload)
-                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 95, characters 81-92:
- 95 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 103, characters 124-135:
- 103 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`TCP (Tcp.Tcp_wire.sizeof_tcp + options_length + Cstruct.len tcp_payload) in
-                                                                                                                                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 111, characters 13-24:
- 111 |   let plen = Cstruct.len payload in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 119, characters 67-78:
- 119 |     let ip_header = Ipv4_packet.Marshal.make_cstruct ~payload_len:(Cstruct.len first) ip in
-                                                                          ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 126, characters 12-23:
- 126 |   let mtu = Cstruct.len full_buffer in
-                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 128, characters 46-57:
- 128 |   let ip_header_len = Ipv4_wire.sizeof_ipv4 + Cstruct.len ip.Ipv4_packet.options in
-                                                     ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 149, characters 57-68:
- 149 |           Cstruct.blit this 0 full_buffer payload_start (Cstruct.len this);
-                                                                ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 159, characters 85-96:
- 159 |           let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 184, characters 24-35:
- 184 |     let need_fragment = Cstruct.len leftover > 0 in
-                               ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.mirage_nat.objs/byte -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/byte/nat_rewrite.cmo -c -impl lib/nat_rewrite.pp.ml)
- File "lib/nat_rewrite.ml", line 17, characters 7-18:
- 17 |     if Cstruct.len payload < 8 then (
-             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 27, characters 14-25:
- 27 |     let len = Cstruct.len src in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 211, characters 53-64:
- 211 |        let original_inner_ipv4_header_length = 20 + (Cstruct.len inner_ip.options) in
-                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I lib/.mirage_nat.objs/byte -I lib/.mirage_nat.objs/native -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/native/nat_packet.cmx -c -impl lib/nat_packet.pp.ml)
- File "lib/nat_packet.ml", line 75, characters 59-70:
- 75 |   | `ICMP (_, icmp_payload) -> Icmpv4_wire.sizeof_icmpv4, (Cstruct.len icmp_payload)
-                                                                 ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 76, characters 51-62:
- 76 |   | `UDP (_, udp_payload) -> Udp_wire.sizeof_udp, (Cstruct.len udp_payload)
-                                                         ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 79, characters 49-60:
- 79 |     (Tcp.Tcp_wire.sizeof_tcp + options_length), (Cstruct.len tcp_payload)
-                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 95, characters 81-92:
- 95 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 103, characters 124-135:
- 103 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`TCP (Tcp.Tcp_wire.sizeof_tcp + options_length + Cstruct.len tcp_payload) in
-                                                                                                                                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 111, characters 13-24:
- 111 |   let plen = Cstruct.len payload in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 119, characters 67-78:
- 119 |     let ip_header = Ipv4_packet.Marshal.make_cstruct ~payload_len:(Cstruct.len first) ip in
-                                                                          ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 126, characters 12-23:
- 126 |   let mtu = Cstruct.len full_buffer in
-                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 128, characters 46-57:
- 128 |   let ip_header_len = Ipv4_wire.sizeof_ipv4 + Cstruct.len ip.Ipv4_packet.options in
-                                                     ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 149, characters 57-68:
- 149 |           Cstruct.blit this 0 full_buffer payload_start (Cstruct.len this);
-                                                                ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 159, characters 85-96:
- 159 |           let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 184, characters 24-35:
- 184 |     let need_fragment = Cstruct.len leftover > 0 in
-                               ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I lib/.mirage_nat.objs/byte -I lib/.mirage_nat.objs/native -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/native/nat_rewrite.cmx -c -impl lib/nat_rewrite.pp.ml)
- File "lib/nat_rewrite.ml", line 17, characters 7-18:
- 17 |     if Cstruct.len payload < 8 then (
-             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 27, characters 14-25:
- 27 |     let len = Cstruct.len src in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 211, characters 53-64:
- 211 |        let original_inner_ipv4_header_length = 20 + (Cstruct.len inner_ip.options) in
-                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
-> compiled  mirage-nat.2.2.1
-> installed mirage-nat.2.2.1
Done.
# Run eval $(opam env) to update the current shell environment
2022-07-27 04:59.48 ---> saved as "2462e704eb39cda659296d5e28a1b293d1163802708b0cda84cb9ca3b690bdf4"

/home/opam: (run (network host)
                 (shell "opam update --depexts"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bullseye InRelease
- Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
- Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
- Reading package lists...
- 
2022-07-27 04:59.50 ---> saved as "a9ac3e15aebb12d1ab70a8fe16717c41e7ed6f5ee8c3196c3a9e08912b8dfb2f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam remove mirage-nat.2.2.1 && opam install --deps-only --with-test mirage-nat.2.2.1 && opam install -v --with-test mirage-nat.2.2.1;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-11\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n        done;\
                        \n        exit 1"))
The following actions will be performed:
=== remove 1 package
  - remove mirage-nat 2.2.1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> removed   mirage-nat.2.2.1
Done.
# Run eval $(opam env) to update the current shell environment
The following actions will be performed:
=== downgrade 4 packages
  - downgrade ipaddr             5.3.1 to 4.0.0 [required by mirage-nat]
  - downgrade macaddr            5.3.1 to 4.0.0 [required by ipaddr]
  - downgrade macaddr-cstruct    5.3.1 to 4.0.0 [uses macaddr]
  - downgrade tcpip              5.0.1 to 4.1.0 [required by mirage-nat]
=== recompile 8 packages
  - recompile ethernet           2.2.1          [uses macaddr]
  - recompile fmt                0.9.0          [uses cmdliner]
  - recompile logs               0.7.0          [uses cmdliner]
  - recompile mirage-device      2.0.0          [uses fmt]
  - recompile mirage-flow        3.0.0          [uses fmt]
  - recompile mirage-net         4.0.0          [uses macaddr]
  - recompile mirage-protocols   4.0.1          [uses ipaddr]
  - recompile mirage-stack       3.0.0          [uses mirage-protocols, fmt]
=== install 7 packages
  - install   alcotest           1.6.0          [required by mirage-nat]
  - install   astring            0.8.5          [required by alcotest]
  - install   cmdliner           1.1.1          [required by alcotest]
  - install   mirage-clock-unix  4.2.0          [required by mirage-nat]
  - install   ocaml-syntax-shims 1.0.0          [required by alcotest]
  - install   re                 1.10.4         [required by alcotest]
  - install   uutf               1.0.3          [required by alcotest]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved alcotest.1.6.0  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved cmdliner.1.1.1  (cached)
-> retrieved ethernet.2.2.1  (cached)
-> retrieved fmt.0.9.0  (cached)
-> retrieved ipaddr.4.0.0, macaddr.4.0.0, macaddr-cstruct.4.0.0  (cached)
-> retrieved logs.0.7.0  (cached)
-> retrieved mirage-clock-unix.4.2.0  (cached)
-> retrieved mirage-device.2.0.0  (cached)
-> retrieved mirage-flow.3.0.0  (cached)
-> retrieved mirage-net.4.0.0  (cached)
-> retrieved mirage-protocols.4.0.1  (cached)
-> retrieved mirage-stack.3.0.0  (cached)
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
-> retrieved re.1.10.4  (cached)
-> retrieved tcpip.4.1.0  (cached)
-> retrieved uutf.1.0.3  (cached)
-> installed mirage-clock-unix.4.2.0
-> installed ocaml-syntax-shims.1.0.0
-> installed re.1.10.4
-> installed astring.0.8.5
-> removed   tcpip.5.0.1
-> removed   ethernet.2.2.1
-> removed   logs.0.7.0
-> removed   macaddr-cstruct.5.3.1
-> removed   mirage-net.4.0.0
-> removed   mirage-stack.3.0.0
-> removed   mirage-protocols.4.0.1
-> removed   ipaddr.5.3.1
-> removed   macaddr.5.3.1
-> removed   mirage-device.2.0.0
-> removed   mirage-flow.3.0.0
-> removed   fmt.0.9.0
-> installed cmdliner.1.1.1
-> installed macaddr.4.0.0
-> installed macaddr-cstruct.4.0.0
-> installed ipaddr.4.0.0
-> installed uutf.1.0.3
-> installed fmt.0.9.0
-> installed mirage-device.2.0.0
-> installed mirage-net.4.0.0
-> installed mirage-flow.3.0.0
-> installed mirage-protocols.4.0.1
-> installed mirage-stack.3.0.0
-> installed logs.0.7.0
-> installed alcotest.1.6.0
-> installed ethernet.2.2.1
-> installed tcpip.4.1.0
Done.
# Run eval $(opam env) to update the current shell environment
The following actions will be performed:
=== install 1 package
  - install mirage-nat 2.2.1

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/3: [mirage-nat.2.2.1: http]
Processing  1/3:
-> retrieved mirage-nat.2.2.1  (https://github.com/mirage/mirage-nat/releases/download/v2.2.1/mirage-nat-v2.2.1.tbz)
Processing  2/3: [mirage-nat: dune build]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "build" "-p" "mirage-nat" "-j" "31" (CWD=/home/opam/.opam/4.14/.opam-switch/build/mirage-nat.2.2.1)
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.mirage_nat.objs/byte -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/byte/nat_packet.cmo -c -impl lib/nat_packet.pp.ml)
- File "lib/nat_packet.ml", line 75, characters 59-70:
- 75 |   | `ICMP (_, icmp_payload) -> Icmpv4_wire.sizeof_icmpv4, (Cstruct.len icmp_payload)
-                                                                 ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 76, characters 51-62:
- 76 |   | `UDP (_, udp_payload) -> Udp_wire.sizeof_udp, (Cstruct.len udp_payload)
-                                                         ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 79, characters 49-60:
- 79 |     (Tcp.Tcp_wire.sizeof_tcp + options_length), (Cstruct.len tcp_payload)
-                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 95, characters 81-92:
- 95 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 103, characters 124-135:
- 103 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`TCP (Tcp.Tcp_wire.sizeof_tcp + options_length + Cstruct.len tcp_payload) in
-                                                                                                                                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 111, characters 13-24:
- 111 |   let plen = Cstruct.len payload in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 119, characters 67-78:
- 119 |     let ip_header = Ipv4_packet.Marshal.make_cstruct ~payload_len:(Cstruct.len first) ip in
-                                                                          ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 126, characters 12-23:
- 126 |   let mtu = Cstruct.len full_buffer in
-                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 128, characters 46-57:
- 128 |   let ip_header_len = Ipv4_wire.sizeof_ipv4 + Cstruct.len ip.Ipv4_packet.options in
-                                                     ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 149, characters 57-68:
- 149 |           Cstruct.blit this 0 full_buffer payload_start (Cstruct.len this);
-                                                                ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 159, characters 85-96:
- 159 |           let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 184, characters 24-35:
- 184 |     let need_fragment = Cstruct.len leftover > 0 in
-                               ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.mirage_nat.objs/byte -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/byte/nat_rewrite.cmo -c -impl lib/nat_rewrite.pp.ml)
- File "lib/nat_rewrite.ml", line 17, characters 7-18:
- 17 |     if Cstruct.len payload < 8 then (
-             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 27, characters 14-25:
- 27 |     let len = Cstruct.len src in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 211, characters 53-64:
- 211 |        let original_inner_ipv4_header_length = 20 + (Cstruct.len inner_ip.options) in
-                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I lib/.mirage_nat.objs/byte -I lib/.mirage_nat.objs/native -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/native/nat_packet.cmx -c -impl lib/nat_packet.pp.ml)
- File "lib/nat_packet.ml", line 75, characters 59-70:
- 75 |   | `ICMP (_, icmp_payload) -> Icmpv4_wire.sizeof_icmpv4, (Cstruct.len icmp_payload)
-                                                                 ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 76, characters 51-62:
- 76 |   | `UDP (_, udp_payload) -> Udp_wire.sizeof_udp, (Cstruct.len udp_payload)
-                                                         ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 79, characters 49-60:
- 79 |     (Tcp.Tcp_wire.sizeof_tcp + options_length), (Cstruct.len tcp_payload)
-                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 95, characters 81-92:
- 95 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                       ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 103, characters 124-135:
- 103 |       let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`TCP (Tcp.Tcp_wire.sizeof_tcp + options_length + Cstruct.len tcp_payload) in
-                                                                                                                                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 111, characters 13-24:
- 111 |   let plen = Cstruct.len payload in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 119, characters 67-78:
- 119 |     let ip_header = Ipv4_packet.Marshal.make_cstruct ~payload_len:(Cstruct.len first) ip in
-                                                                          ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 126, characters 12-23:
- 126 |   let mtu = Cstruct.len full_buffer in
-                   ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 128, characters 46-57:
- 128 |   let ip_header_len = Ipv4_wire.sizeof_ipv4 + Cstruct.len ip.Ipv4_packet.options in
-                                                     ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 149, characters 57-68:
- 149 |           Cstruct.blit this 0 full_buffer payload_start (Cstruct.len this);
-                                                                ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 159, characters 85-96:
- 159 |           let pseudoheader = Ipv4_packet.Marshal.pseudoheader ~src ~dst ~proto:`UDP (Cstruct.len udp_payload + Udp_wire.sizeof_udp) in
-                                                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_packet.ml", line 184, characters 24-35:
- 184 |     let need_fragment = Cstruct.len leftover > 0 in
-                               ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I lib/.mirage_nat.objs/byte -I lib/.mirage_nat.objs/native -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -intf-suffix .ml -no-alias-deps -o lib/.mirage_nat.objs/native/nat_rewrite.cmx -c -impl lib/nat_rewrite.pp.ml)
- File "lib/nat_rewrite.ml", line 17, characters 7-18:
- 17 |     if Cstruct.len payload < 8 then (
-             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 27, characters 14-25:
- 27 |     let len = Cstruct.len src in
-                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib/nat_rewrite.ml", line 211, characters 53-64:
- 211 |        let original_inner_ipv4_header_length = 20 + (Cstruct.len inner_ip.options) in
-                                                            ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
Processing  2/3: [mirage-nat: dune runtest]
+ /home/opam/.opam/opam-init/hooks/sandbox.sh "build" "dune" "runtest" "-p" "mirage-nat" "-j" "31" (CWD=/home/opam/.opam/4.14/.opam-switch/build/mirage-nat.2.2.1)
- (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I lib_test/.test_rewrite.eobjs/byte -I lib_test/.test_rewrite.eobjs/native -I /home/opam/.opam/4.14/lib/alcotest -I /home/opam/.opam/4.14/lib/alcotest/engine -I /home/opam/.opam/4.14/lib/alcotest/stdlib_ext -I /home/opam/.opam/4.14/lib/astring -I /home/opam/.opam/4.14/lib/bigarray-compat -I /home/opam/.opam/4.14/lib/cmdliner -I /home/opam/.opam/4.14/lib/cstruct -I /home/opam/.opam/4.14/lib/domain-name -I /home/opam/.opam/4.14/lib/duration -I /home/opam/.opam/4.14/lib/ethernet -I /home/opam/.opam/4.14/lib/fmt -I /home/opam/.opam/4.14/lib/ipaddr -I /home/opam/.opam/4.14/lib/logs -I /home/opam/.opam/4.14/lib/lru -I /home/opam/.opam/4.14/lib/lwt -I /home/opam/.opam/4.14/lib/lwt-dllist -I /home/opam/.opam/4.14/lib/lwt/unix -I /home/opam/.opam/4.14/lib/macaddr -I /home/opam/.opam/4.14/lib/mirage-clock -I /home/opam/.opam/4.14/lib/mirage-device -I /home/opam/.opam/4.14/lib/mirage-flow -I /home/opam/.opam/4.14/lib/mirage-net -I /home/opam/.opam/4.14/lib/mirage-profile -I /home/opam/.opam/4.14/lib/mirage-protocols -I /home/opam/.opam/4.14/lib/mirage-random -I /home/opam/.opam/4.14/lib/mirage-time -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/ocplib-endian -I /home/opam/.opam/4.14/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.14/lib/ppx_deriving/runtime -I /home/opam/.opam/4.14/lib/psq -I /home/opam/.opam/4.14/lib/randomconv -I /home/opam/.opam/4.14/lib/re -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/rresult -I /home/opam/.opam/4.14/lib/seq -I /home/opam/.opam/4.14/lib/stdlib-shims -I /home/opam/.opam/4.14/lib/tcpip -I /home/opam/.opam/4.14/lib/tcpip/icmpv4 -I /home/opam/.opam/4.14/lib/tcpip/ipv4 -I /home/opam/.opam/4.14/lib/tcpip/tcp -I /home/opam/.opam/4.14/lib/tcpip/udp -I /home/opam/.opam/4.14/lib/tcpip/unix -I /home/opam/.opam/4.14/lib/uutf -I lib/.mirage_nat.objs/byte -I lib/.mirage_nat.objs/native -intf-suffix .ml -no-alias-deps -o lib_test/.test_rewrite.eobjs/native/test_rewrite.cmx -c -impl lib_test/test_rewrite.ml)
- File "lib_test/test_rewrite.ml", line 24, characters 32-40:
- 24 |     | Error e -> Alcotest.fail (Fmt.strf "assert_checksum failed: %s" e)
-                                      ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 26, characters 46-57:
- 26 |       Printf.printf "ipv4_header len = %d\n" (Cstruct.len raw - Cstruct.len transport_packet);
-                                                    ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 26, characters 64-75:
- 26 |       Printf.printf "ipv4_header len = %d\n" (Cstruct.len raw - Cstruct.len transport_packet);
-                                                                      ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 45, characters 34-42:
- 45 |       | Error e -> Alcotest.fail (Fmt.strf "into_cstruct failed: %a" Nat_packet.pp_error e)
-                                        ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 47, characters 36-44:
- 47 |       | Ok (_, _) -> Alcotest.fail (Fmt.strf "into_cstruct resulted in more fragments")
-                                          ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 54, characters 41-49:
- 54 |       | Ok Some loaded -> Alcotest.fail (Fmt.strf "Packet changed by save/load! Saved:@.%a@.Got:@.%a"
-                                               ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 58, characters 34-42:
- 58 |       | Ok None -> Alcotest.fail (Fmt.strf "Packet changed by save/load! Saved:@.%a@.Got nothing"
-                                        ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 60, characters 36-44:
- 60 |       | Error e   -> Alcotest.fail (Fmt.strf "Failed to load saved packet! Saved:@.%a@.As:@.%a@.Error: %a"
-                                          ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 93, characters 32-40:
- 93 |     | Error e -> Alcotest.fail (Fmt.strf "Failed to insert test data into table structure: %a" Mirage_nat.pp_error e)
-                                      ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 100, characters 21-29:
- 100 |       Alcotest.fail (Fmt.strf "Failed to insert test data into table structure: %a" Mirage_nat.pp_error e)
-                            ^^^^^^^^
- Alert deprecated: Fmt.strf
- use Fmt.str instead.
- File "lib_test/test_rewrite.ml", line 327, characters 26-37:
- 327 |         let payload_len = Cstruct.len full_transport in
-                                 ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 460, characters 38-49:
- 460 |     Alcotest.(check int __LOC__ 1500 (Cstruct.len data));
-                                             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 468, characters 38-49:
- 468 |     Alcotest.(check int __LOC__ 1500 (Cstruct.len hd));
-                                             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 470, characters 36-47:
- 470 |     Alcotest.(check int __LOC__ 48 (Cstruct.len tl));
-                                           ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 478, characters 38-49:
- 478 |     Alcotest.(check int __LOC__ 1500 (Cstruct.len init));
-                                             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 479, characters 38-49:
- 479 |     Alcotest.(check int __LOC__ 1500 (Cstruct.len more));
-                                             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 480, characters 38-49:
- 480 |     Alcotest.(check int __LOC__ 1500 (Cstruct.len more'));
-                                             ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- File "lib_test/test_rewrite.ml", line 508, characters 36-47:
- 508 |     Alcotest.(check int __LOC__ 48 (Cstruct.len tl));
-                                           ^^^^^^^^^^^
- Alert deprecated: Cstruct.len
- len is deprecated, you should use length instead.
- (cd _build/default/lib_test && ./test_rewrite.exe)
- Testing `Mirage_nat.Nat_rewrite'.
- This run has ID `3XSV4PQT'.
- 
-   [OK]          correct_mappings          0   IPv4 UDP NAT rewrites.
-   [OK]          correct_mappings          1   IPv4 TCP NAT rewrites.
-   [OK]          add_nat                   0   add_nat makes entries.
-   [OK]          add_nat                   1   add_nat refuses broadcast frames.
-   [OK]          add_nat                   2   add_nat for ping.
-   [OK]          add_nat                   3   add_nat for ping ICMP error.
-   [OK]          add_nat                   4   add_nat for ICMP error with UDP.
-   [OK]          add_nat                   5   add_nat for ICMP error with TCP.
-   [OK]          add_redirect              0   add_redirect makes entries.
-   [OK]          many_entries              0   many entries are added successf...
-   [OK]          fragmentation             0   to_cstruct no fragments.
-   [OK]          fragmentation             1   to_cstruct fragments.
-   [OK]          fragmentation             2   to_cstruct three fragments.
-   [OK]          fragmentation             3   to_cstruct errors due to don't ...
-   [OK]          fragmentation             4   into_cstruct no fragments.
-   [OK]          fragmentation             5   into_cstruct fragments.
-   [OK]          fragmentation             6   into_cstruct three fragments.
-   [OK]          fragmentation             7   into_cstruct errors due to don'...
-   [OK]          fragmentation             8   of_ipv4_packet reassembles.
- 
- Full test results in `~/.opam/4.14/.opam-switch/build/mirage-nat.2.2.1/_build/default/lib_test/_build/_tests/Mirage_nat.Nat_rewrite'.
- Test Successful in 0.067s. 19 tests run.
-> compiled  mirage-nat.2.2.1
-> installed mirage-nat.2.2.1
Done.
# Run eval $(opam env) to update the current shell environment
2022-07-27 05:00.47 ---> saved as "c0d7949438bd521b3680929caefcb696d55fe1ed005699602f0a737b48c67f24"
Job succeeded
2022-07-27 05:01.26: Job succeeded