(for PR #28777)

2025-11-10 16:53.37: New job: build otp.0.2, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28777/head (d2eb184985510985f5dcca90f4246ce82b21b3cc)
                              on debian-13-ocaml-5.4/arm64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28777/head" && git reset --hard d2eb1849
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-5.4@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && 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 update --depexts || true
RUN opam pin add -k version -yn otp.0.2 0.2
RUN opam reinstall otp.0.2; \
    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-13\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'otp.0.2' && 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-11-10 16:53.37: Using cache hint "ocaml/opam:debian-13-ocaml-5.4@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb-otp.0.2-d2eb184985510985f5dcca90f4246ce82b21b3cc"
2025-11-10 16:53.37: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-5.4@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam option solver=builtin-0install && 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 update --depexts || true"))
 (run (shell "opam pin add -k version -yn otp.0.2 0.2"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall otp.0.2;\
             \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-13\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'otp.0.2' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-10 16:53.37: Waiting for resource in pool OCluster
2025-11-10 16:53.38: Waiting for worker…
2025-11-10 16:53.38: Got resource from pool OCluster
Building on okypous.caelum.ci.dev
Updating files:  68% (12757/18703)
Updating files:  69% (12906/18703)
Updating files:  70% (13093/18703)
Updating files:  71% (13280/18703)
Updating files:  72% (13467/18703)
Updating files:  73% (13654/18703)
Updating files:  74% (13841/18703)
Updating files:  75% (14028/18703)
Updating files:  76% (14215/18703)
Updating files:  77% (14402/18703)
Updating files:  78% (14589/18703)
Updating files:  79% (14776/18703)
Updating files:  80% (14963/18703)
Updating files:  81% (15150/18703)
Updating files:  82% (15337/18703)
Updating files:  83% (15524/18703)
Updating files:  84% (15711/18703)
Updating files:  85% (15898/18703)
Updating files:  86% (16085/18703)
Updating files:  87% (16272/18703)
Updating files:  88% (16459/18703)
Updating files:  89% (16646/18703)
Updating files:  90% (16833/18703)
Updating files:  91% (17020/18703)
Updating files:  92% (17207/18703)
Updating files:  93% (17394/18703)
Updating files:  94% (17581/18703)
Updating files:  95% (17768/18703)
Updating files:  96% (17955/18703)
Updating files:  97% (18142/18703)
Updating files:  98% (18329/18703)
Updating files:  99% (18516/18703)
Updating files: 100% (18703/18703)
Updating files: 100% (18703/18703), done.
HEAD is now at fb37fa9359 Add crypt.2.0
HEAD is now at b6a264c784 Merge pull request #28853 from AltGr/catala100
Merge made by the 'ort' strategy.
 packages/otp/otp.0.2/opam | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(from ocaml/opam:debian-13-ocaml-5.4@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb)
Unable to find image 'ocaml/opam:debian-13-ocaml-5.4@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb' locally
docker.io/ocaml/opam@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb: Pulling from ocaml/opam
6cca7a432802: Pulling fs layer
6cca7a432802: Verifying Checksum
6cca7a432802: Download complete
6cca7a432802: Pull complete
Digest: sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb
Status: Downloaded newer image for ocaml/opam@sha256:e06087eb857236a13ab27d8a89e099a66a01e88246f17c2f122668cdd843fbcb
2025-11-10 16:53.44 ---> using "1557b262c385f9df8b6358bc378d7debeec150e44a0add4c9ee3826c15e01b6a" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-10 16:53.44 ---> using "fe02e4a5256d8a1686d0104b18c138931d0620633b556b8a871e192db64b92cb" from cache

/home/opam: (run (network host)
                 (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.

Continue? [Y/n] y
This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-10 16:53.44 ---> using "afb2c5db13431908ed6de5fc689261cac7a264ff3db7c32116872e216bd32dac" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.5.0~alpha1
# self-upgrade         no
# system               arch=arm64 os=linux os-distribution=debian os-version=13
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 79
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-11-10 16:53.44 ---> using "06e68b59ff7a8d65632ff5602622ee5d3e6b3379f366d9dd51ee44bb846fb95d" from cache

/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-11-10 16:53.44 ---> using "c2fbeff0f6b2925dd1dbd1158483a504a25407127d6ed65b56af42cd1140e9b9" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-10 16:53.57 ---> saved as "07ff70957b18f3da0ebd03412c4a59acb3640ec4e7de841334e0e73cdd7f3737"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-10 16:54.25 ---> saved as "1ed4e4737a0ee49240dd3380db23439cd1217b04adbde6360eaae7f8c076b794"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Fetched 90.7 kB in 0s (576 kB/s)
- Reading package lists...
- 
2025-11-10 16:54.28 ---> saved as "839ea330dc2d0d9d14b618edc688b70de0ebcefe8fab2faa0d3d416a9ebf0774"

/home/opam: (run (shell "opam pin add -k version -yn otp.0.2 0.2"))
otp is now pinned to version 0.2
2025-11-10 16:54.29 ---> saved as "e785a2f9b4ad838bac48d476c8b2f1d6ef7f10f2734b34637f2571dbe3fce83c"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall otp.0.2;\
                        \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-13\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'otp.0.2' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
otp.0.2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 22 packages
  - install base32            1.0.0        [required by otp]
  - install conf-gmp          5            [required by otp]
  - install conf-gmp-powm-sec 4            [required by otp]
  - install conf-pkg-config   4            [required by conf-zlib, zarith]
  - install conf-zlib         1            [required by cryptokit]
  - install cryptokit         1.20         [required by otp]
  - install csexp             1.5.2        [required by dune-configurator]
  - install cstruct           6.2.0        [required by hex]
  - install dune              3.20.2       [required by otp]
  - install dune-configurator 3.20.2       [required by cryptokit]
  - install fmt               0.11.0       [required by cstruct]
  - install hex               1.5.0        [required by otp]
  - install ocamlbuild        0.16.1       [required by qrc]
  - install ocamlfind         1.9.8        [required by otp]
  - install otp               0.2 (pinned)
  - install ounit2            2.2.7        [required by otp]
  - install qrc               0.2.0        [required by otp]
  - install seq               base         [required by ounit2]
  - install stdint            0.7.2        [required by otp]
  - install stdlib-shims      0.3.0        [required by ounit2]
  - install topkg             1.1.1        [required by qrc]
  - install zarith            1.14         [required by cryptokit]

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

<><> 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" "libgmp-dev" "pkg-config" "zlib1g-dev"
- Selecting previously unselected package libgmpxx4ldbl:arm64.
- (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 ... 20767 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.3.0+dfsg-3_arm64.deb ...
- Unpacking libgmpxx4ldbl:arm64 (2:6.3.0+dfsg-3) ...
- Selecting previously unselected package libgmp-dev:arm64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.3.0+dfsg-3_arm64.deb ...
- Unpacking libgmp-dev:arm64 (2:6.3.0+dfsg-3) ...
- Selecting previously unselected package libpkgconf3:arm64.
- Preparing to unpack .../2-libpkgconf3_1.8.1-4_arm64.deb ...
- Unpacking libpkgconf3:arm64 (1.8.1-4) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-4_arm64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:arm64.
- Preparing to unpack .../4-pkgconf_1.8.1-4_arm64.deb ...
- Unpacking pkgconf:arm64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:arm64.
- Preparing to unpack .../5-pkg-config_1.8.1-4_arm64.deb ...
- Unpacking pkg-config:arm64 (1.8.1-4) ...
- Selecting previously unselected package zlib1g-dev:arm64.
- Preparing to unpack .../6-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_arm64.deb ...
- Unpacking zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libpkgconf3:arm64 (1.8.1-4) ...
- Setting up libgmpxx4ldbl:arm64 (2:6.3.0+dfsg-3) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up zlib1g-dev:arm64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libgmp-dev:arm64 (2:6.3.0+dfsg-3) ...
- Setting up pkgconf:arm64 (1.8.1-4) ...
- Setting up pkg-config:arm64 (1.8.1-4) ...
- Processing triggers for libc-bin (2.41-12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base32.1.0.0  (cached)
-> retrieved conf-gmp.5  (cached)
-> retrieved conf-gmp-powm-sec.4  (cached)
-> retrieved cryptokit.1.20  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-gmp.5
-> retrieved cstruct.6.2.0  (cached)
-> installed conf-pkg-config.4
-> installed conf-gmp-powm-sec.4
-> installed conf-zlib.1
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved fmt.0.11.0  (cached)
-> retrieved hex.1.5.0  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved otp.0.2  (cached)
-> retrieved ounit2.2.2.7  (cached)
-> retrieved qrc.0.2.0  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved stdint.0.7.2  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.1.1  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed ocamlbuild.0.16.1
-> installed zarith.1.14
-> installed topkg.1.1.1
-> installed qrc.0.2.0
-> installed fmt.0.11.0
-> installed dune.3.20.2
-> installed base32.1.0.0
-> installed csexp.1.5.2
-> installed cstruct.6.2.0
-> installed stdint.0.7.2
-> installed stdlib-shims.0.3.0
-> installed hex.1.5.0
-> installed ounit2.2.2.7
-> installed dune-configurator.3.20.2
-> installed cryptokit.1.20
-> installed otp.0.2
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-10 16:55.38 ---> saved as "8aebed170fba729fc6d29e0919f2cde7b5fe211a84f3f8d04cb48a02c0866ae8"
Job succeeded
2025-11-10 16:56.05: Job succeeded