(for PR #27894)

2025-05-17 11:50.29: New job: build binaryen.0.26.0, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27894/head (10c571afa6cbbb50ffbca082f650d44421c9c4c2)
                              on debian-12-ocaml-5.3/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/27894/head" && git reset --hard 10c571af
git fetch origin master
git merge --no-edit cf409d95af00ff822422bd76b657ed213b661401
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.3@sha256:601a187e2900fccdc210cf20312e1bb4b7d0d219d790e3a816c5bf992c14e3e6
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam depext -u || true
RUN opam pin add -k version -yn binaryen.0.26.0 0.26.0
RUN opam depext binaryen.0.26.0 && opam reinstall binaryen.0.26.0; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'binaryen.0.26.0' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1

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

2025-05-17 11:50.29: Using cache hint "ocaml/opam:debian-12-ocaml-5.3@sha256:601a187e2900fccdc210cf20312e1bb4b7d0d219d790e3a816c5bf992c14e3e6-binaryen.0.26.0-10c571afa6cbbb50ffbca082f650d44421c9c4c2"
2025-05-17 11:50.29: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:601a187e2900fccdc210cf20312e1bb4b7d0d219d790e3a816c5bf992c14e3e6)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMPRECISETRACKING 1)
 (env CI true)
 (env OPAM_REPO_CI true)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (network host)
      (shell "opam depext -u || true"))
 (run (shell "opam pin add -k version -yn binaryen.0.26.0 0.26.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam depext binaryen.0.26.0 && opam reinstall binaryen.0.26.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        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'binaryen.0.26.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-05-17 11:50.29: Waiting for resource in pool OCluster
2025-05-17 11:50.29: Waiting for worker…
2025-05-17 11:53.42: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
Updating files:  75% (17454/23050)
Updating files:  76% (17518/23050)
Updating files:  77% (17749/23050)
Updating files:  78% (17979/23050)
Updating files:  79% (18210/23050)
Updating files:  80% (18440/23050)
Updating files:  81% (18671/23050)
Updating files:  82% (18901/23050)
Updating files:  83% (19132/23050)
Updating files:  84% (19362/23050)
Updating files:  85% (19593/23050)
Updating files:  86% (19823/23050)
Updating files:  87% (20054/23050)
Updating files:  88% (20284/23050)
Updating files:  89% (20515/23050)
Updating files:  90% (20745/23050)
Updating files:  91% (20976/23050)
Updating files:  92% (21206/23050)
Updating files:  93% (21437/23050)
Updating files:  94% (21667/23050)
Updating files:  95% (21898/23050)
Updating files:  96% (22128/23050)
Updating files:  97% (22359/23050)
Updating files:  98% (22589/23050)
Updating files:  99% (22820/23050)
Updating files: 100% (23050/23050)
Updating files: 100% (23050/23050), done.
HEAD is now at cf409d95af Merge pull request #27869 from chetmurthy/release-ledit-2.07
Updating cf409d95af..10c571afa6
Fast-forward
 packages/binaryen/binaryen.0.26.0/opam | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 packages/binaryen/binaryen.0.26.0/opam

(from ocaml/opam:debian-12-ocaml-5.3@sha256:601a187e2900fccdc210cf20312e1bb4b7d0d219d790e3a816c5bf992c14e3e6)
2025-05-17 11:53.47 ---> using "0585f6b0985f7eb566e20fd068ca8d674792c3b808091294d28083728c5a5ee6" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-05-17 11:53.48 ---> saved as "516b3fd3fd9039a307d3a04e69397fa29d1cd17f49ebb613ded2da322e3c315f"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-05-17 11:55.04 ---> saved as "f26c62a6d17405227a9512f0c2f5b613546e7ef05ed83c157442740b3c9681ff"

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=12
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              39
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    5.3
2025-05-17 11:55.06 ---> saved as "32f84a6580f2762020bc2c09ca5acb5efbba197a24c51e49d9f305ab4faf6dde"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-05-17 11:55.15 ---> saved as "01ddecb9721b574a4736e5f1a32bed263b3ccfdfdc2c66adf48d203a63e7d9c7"

/home/opam: (copy (src .) (dst opam-repository/))
2025-05-17 11:55.24 ---> saved as "8137475c45c83343f9d2cabe3f8802a5aefd285767f21684c70cc748c7f15cb6"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-05-17 11:55.44 ---> saved as "eef9e4adc3b5f70a9a93e80f6dac35e09f2ef46e840667d0683eb3cca7e16fce"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "sudo":
    apt-get update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8793 kB]
Get:5 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [258 kB]
Fetched 9306 kB in 2s (5236 kB/s)
Reading package lists...
# OS package update successful
2025-05-17 11:55.47 ---> saved as "0cec0fcb1745838dd6b06be649b48be9b7572cea8676b0b1511c17e87720facb"

/home/opam: (run (shell "opam pin add -k version -yn binaryen.0.26.0 0.26.0"))
binaryen is now pinned to version 0.26.0
2025-05-17 11:55.48 ---> saved as "626d161f2ec87db9910909496cdd169d60bbf14828bbc81546034ff31c3f68dc"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext binaryen.0.26.0 && opam reinstall binaryen.0.26.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        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'binaryen.0.26.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
cmake
The following command needs to be run through "sudo":
    apt-get install -qq -yy cmake
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libicu72: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 ... 18778 files and directories currently installed.)
Preparing to unpack .../0-libicu72_72.1-3_amd64.deb ...
Unpacking libicu72:amd64 (72.1-3) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../1-libxml2_2.9.14+dfsg-1.3~deb12u1_amd64.deb ...
Unpacking libxml2:amd64 (2.9.14+dfsg-1.3~deb12u1) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../2-libarchive13_3.6.2-1+deb12u2_amd64.deb ...
Unpacking libarchive13:amd64 (3.6.2-1+deb12u2) ...
Selecting previously unselected package libjsoncpp25:amd64.
Preparing to unpack .../3-libjsoncpp25_1.9.5-4_amd64.deb ...
Unpacking libjsoncpp25:amd64 (1.9.5-4) ...
Selecting previously unselected package librhash0:amd64.
Preparing to unpack .../4-librhash0_1.4.3-3_amd64.deb ...
Unpacking librhash0:amd64 (1.4.3-3) ...
Selecting previously unselected package libuv1:amd64.
Preparing to unpack .../5-libuv1_1.44.2-1+deb12u1_amd64.deb ...
Unpacking libuv1:amd64 (1.44.2-1+deb12u1) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../6-cmake-data_3.25.1-1_all.deb ...
Unpacking cmake-data (3.25.1-1) ...
Selecting previously unselected package cmake.
Preparing to unpack .../7-cmake_3.25.1-1_amd64.deb ...
Unpacking cmake (3.25.1-1) ...
Setting up libicu72:amd64 (72.1-3) ...
Setting up libuv1:amd64 (1.44.2-1+deb12u1) ...
Setting up libjsoncpp25:amd64 (1.9.5-4) ...
Setting up librhash0:amd64 (1.4.3-3) ...
Setting up cmake-data (3.25.1-1) ...
Setting up libxml2:amd64 (2.9.14+dfsg-1.3~deb12u1) ...
Setting up libarchive13:amd64 (3.6.2-1+deb12u2) ...
Setting up cmake (3.25.1-1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
# OS packages installation successful
binaryen.0.26.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
  - install cmdliner             1.3.0    [required by js_of_ocaml-compiler]
  - install dune                 3.18.2   [required by binaryen]
  - install seq                  base     [required by yojson]
  - install conf-cmake           1        [required by libbinaryen]
  - install stdlib-shims         0.3.0    [required by ppxlib]
  - install sexplib0             v0.17.0  [required by ppxlib]
  - install ppx_derivers         1.2.1    [required by ppxlib]
  - install ocaml-compiler-libs  v0.17.0  [required by ppxlib]
  - install menhirSdk            20230608 [required by js_of_ocaml-compiler]
  - install menhirLib            20230608 [required by js_of_ocaml-compiler]
  - install csexp                1.5.2    [required by dune-configurator]
  - install yojson               2.2.2    [required by js_of_ocaml-compiler]
  - install gen                  1.1      [required by sedlex]
  - install ppxlib               0.35.0   [required by js_of_ocaml-compiler]
  - install menhir               20230608 [required by js_of_ocaml-compiler]
  - install dune-configurator    3.18.2   [required by binaryen]
  - install sedlex               3.4      [required by js_of_ocaml-compiler]
  - install libbinaryen          116.0.0  [required by binaryen]
  - install js_of_ocaml-compiler 5.9.1    [required by binaryen]
  - install binaryen             0.26.0*
===== 20 to install =====

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[binaryen.0.26.0] downloaded from https://github.com/grain-lang/binaryen.ml/releases/download/v0.26.0/binaryen-archive-v0.26.0.tar.gz
[cmdliner.1.3.0] found in cache
[csexp.1.5.2] found in cache
[dune.3.18.2] found in cache
[dune-configurator.3.18.2] found in cache
[gen.1.1] found in cache
[js_of_ocaml-compiler.5.9.1] found in cache
[libbinaryen.116.0.0] found in cache
[menhir.20230608] found in cache
[menhirLib.20230608] found in cache
[menhirSdk.20230608] found in cache
[ocaml-compiler-libs.v0.17.0] found in cache
[ppx_derivers.1.2.1] found in cache
[ppxlib.0.35.0] found in cache
[sedlex.3.4] found in cache
[sexplib0.v0.17.0] found in cache
[stdlib-shims.0.3.0] found in cache
[yojson.2.2.2] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed seq.base
-> installed conf-cmake.1
-> installed cmdliner.1.3.0
-> installed dune.3.18.2
-> installed csexp.1.5.2
-> installed menhirSdk.20230608
-> installed ppx_derivers.1.2.1
-> installed gen.1.1
-> installed menhirLib.20230608
-> installed sexplib0.v0.17.0
-> installed ocaml-compiler-libs.v0.17.0
-> installed stdlib-shims.0.3.0
-> installed yojson.2.2.2
-> installed dune-configurator.3.18.2
-> installed menhir.20230608
-> installed ppxlib.0.35.0
-> installed sedlex.3.4
-> installed js_of_ocaml-compiler.5.9.1
-> installed libbinaryen.116.0.0
-> installed binaryen.0.26.0
Done.
# Run eval $(opam env) to update the current shell environment
2025-05-17 12:09.41 ---> saved as "49bb339b7e0ff6a97bf9d498a0a16cddb01481329c1ea29f647b6666066834d5"
Job succeeded
2025-05-17 12:11.16: Job succeeded