(for PR #29582)

2026-03-25 08:39.58: New job: build ocaml-compiler.5.6, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29582/head (fa5fb3a6a806e832e4c7791145889a6bbe8b64ef)
                              on ubuntu-25.10-ocaml-4.14/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/29582/head" && git reset --hard fa5fb3a6
git fetch origin master
git merge --no-edit 7216d2e0eb5d8d116434228a0b19a267b98e8510
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-25.10-ocaml-4.14@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8
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 ocaml-compiler.5.6 5.6
RUN opam reinstall --update-invariant ocaml-compiler.5.6; \
    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 "\"ubuntu-25.10\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocaml-compiler.5.6' && 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 .

2026-03-25 08:39.58: Using cache hint "ocaml/opam:ubuntu-25.10-ocaml-4.14@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8-ocaml-compiler.5.6-fa5fb3a6a806e832e4c7791145889a6bbe8b64ef"
2026-03-25 08:39.58: Using OBuilder spec:
((from ocaml/opam:ubuntu-25.10-ocaml-4.14@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8)
 (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 ocaml-compiler.5.6 5.6"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall --update-invariant ocaml-compiler.5.6;\
             \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 \"\\\"ubuntu-25.10\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocaml-compiler.5.6' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-03-25 08:39.58: Waiting for resource in pool OCluster
2026-03-25 08:56.47: Waiting for worker…
2026-03-25 09:00.28: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at 7216d2e0eb Merge pull request #29593 from arvidj/aj/avoid-passage-0-3-2-3
Merge made by the 'ort' strategy.
 packages/ocaml-compiler/ocaml-compiler.5.3.0/opam      |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.3/opam        |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.0/opam      |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~alpha1/opam    |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~beta1/opam     |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.4.0~beta2/opam     |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.0~rc1/opam  |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4.1/opam      |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.4/opam        |  5 ++++-
 .../ocaml-compiler/ocaml-compiler.5.5.0~alpha1/opam    |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.5/opam        |  5 ++++-
 packages/ocaml-compiler/ocaml-compiler.5.6/opam        |  5 ++++-
 packages/ocaml-option-llvm/ocaml-option-llvm.1/opam    | 18 ++++++++++++++++++
 .../ocaml-options-vanilla/ocaml-options-vanilla.1/opam |  1 +
 packages/ocaml-variants/ocaml-variants.5.2.0+msvc/opam |  2 ++
 15 files changed, 69 insertions(+), 12 deletions(-)
 create mode 100644 packages/ocaml-option-llvm/ocaml-option-llvm.1/opam

(from ocaml/opam:ubuntu-25.10-ocaml-4.14@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8)
Unable to find image 'ocaml/opam:ubuntu-25.10-ocaml-4.14@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8' locally
docker.io/ocaml/opam@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8: Pulling from ocaml/opam
16c195d4c5e9: Already exists
1c62812e7321: Already exists
8a4b09d2a7a7: Already exists
3318481042ff: Already exists
3efb10c5a696: Already exists
888f94101ffe: Already exists
cb111e18f70b: Already exists
4577a01d97fc: Already exists
36c03f94b287: Already exists
b55120cc7c58: Already exists
40f87b6b7b5e: Already exists
b6b4461886a5: Already exists
82cf66283d29: Already exists
1a02079536a8: Already exists
2e0bc88eb84b: Already exists
09b28afbcd46: Already exists
00cd2b8865d8: Already exists
2e4e2f0309f4: Already exists
2e4e2f0309f4: Already exists
50db42a840cc: Already exists
7e53edc26b50: Already exists
d3e23dc84d9f: Already exists
00be44d6dc33: Already exists
4f4fb700ef54: Already exists
c4c722f9486c: Already exists
0c7d37cf0e34: Already exists
59a943ba645f: Already exists
bd9804fcdebe: Already exists
ba9e597c1206: Already exists
2e772c935e0b: Already exists
c420ec2e2ade: Already exists
8ab6bbb76418: Already exists
cf55c954c3b6: Already exists
aa487f376a9a: Already exists
7b14f4af6aae: Already exists
970cbf42991d: Already exists
a6846d83fdc6: Already exists
b918cb3a3954: Already exists
a3627ce1af35: Already exists
b6a90ae889b8: Already exists
fe759b2b603e: Already exists
7ddcb2b9210b: Already exists
2596ff3e14c2: Pulling fs layer
a0393312d310: Pulling fs layer
92b4d0c76a93: Pulling fs layer
be1ef6b3703b: Pulling fs layer
be1ef6b3703b: Waiting
a0393312d310: Verifying Checksum
a0393312d310: Download complete
92b4d0c76a93: Verifying Checksum
92b4d0c76a93: Download complete
be1ef6b3703b: Verifying Checksum
be1ef6b3703b: Download complete
2596ff3e14c2: Verifying Checksum
2596ff3e14c2: Download complete
2596ff3e14c2: Pull complete
a0393312d310: Pull complete
92b4d0c76a93: Pull complete
be1ef6b3703b: Pull complete
Digest: sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8
Status: Downloaded newer image for ocaml/opam@sha256:aec3a5c361e1f840cee035f131574cc49dd90121a2304a12b879c967204233b8
2026-03-25 09:00.37 ---> using "04835e086f0fd314ab439d9bfdada761cb46e8d0ba86fb4f8e21557c3e2726af" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-03-25 09:00.37 ---> using "4b360f7bdbe6359bb538931b445a944bdf2f010cff9aa36d193fede00381ab21" 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
2026-03-25 09:00.37 ---> using "248dab8fb0fe5e11f435fe615dccdf3010d57f83ef46cee803a18cfd6936c477" 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
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=ubuntu os-version=25.10
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2026-03-25 09:00.37 ---> using "b6c100013bec2cd282c4e3e269f0a65da0e26ef3782f03886a5d425a3ace0adb" 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/"))
2026-03-25 09:00.37 ---> using "47abe3d8ecce2715b22f7748640bdcb1371f43c974a3f00461f374a8eba979fc" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-03-25 09:00.39 ---> saved as "5b98d9c0a5b15f94ea2571f5c3add4e2e607802deada70e75904b53d5763a4e5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-03-25 09:00.59 ---> saved as "993a3fdc4fcc62027500bdf9cdc4f3fa5404e7010ab17d0a5f310535b85bf307"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://security.ubuntu.com/ubuntu questing-security InRelease [136 kB]
- Get:2 http://security.ubuntu.com/ubuntu questing-security/main amd64 Packages [310 kB]
- Get:3 http://security.ubuntu.com/ubuntu questing-security/universe amd64 Packages [255 kB]
- Hit:4 http://archive.ubuntu.com/ubuntu questing InRelease
- Get:5 http://archive.ubuntu.com/ubuntu questing-updates InRelease [136 kB]
- Get:6 http://archive.ubuntu.com/ubuntu questing-backports InRelease [133 kB]
- Get:7 http://archive.ubuntu.com/ubuntu questing-updates/universe amd64 Packages [324 kB]
- Get:8 http://archive.ubuntu.com/ubuntu questing-updates/restricted amd64 Packages [228 kB]
- Get:9 http://archive.ubuntu.com/ubuntu questing-updates/main amd64 Packages [439 kB]
- Get:10 http://archive.ubuntu.com/ubuntu questing-updates/multiverse amd64 Packages [6001 B]
- Fetched 1966 kB in 2s (1235 kB/s)
- Reading package lists...
- 
2026-03-25 09:01.02 ---> saved as "5cf4d94b827fd3202cf27df7157ff83258d7f8774291d89d60e5fda7e9784bad"

/home/opam: (run (shell "opam pin add -k version -yn ocaml-compiler.5.6 5.6"))
ocaml-compiler is now pinned to version 5.6
2026-03-25 09:01.03 ---> saved as "f7f6eab1cc8b71c28f3fbe849cf461ab9bdf5bb6a1760c5d5413ed2418a69b81"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall --update-invariant ocaml-compiler.5.6;\
                        \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 \"\\\"ubuntu-25.10\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocaml-compiler.5.6' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>

ocaml-compiler.5.6 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== remove 1 package
  - remove    ocaml-base-compiler 4.14.2 (pinned) [conflicts with ocaml-variants]
=== recompile 2 packages
  - recompile ocaml-config        2               [uses ocaml-variants]
  - recompile opam-depext         1.2.3           [uses ocaml]
=== upgrade 1 package
  - upgrade   ocaml               4.14.2 to 5.6.0
=== install 7 packages
  - install   base-domains        base
  - install   base-effects        base
  - install   base-nnp            base
  - install   host-arch-x86_64    1
  - install   host-system-other   1
  - install   ocaml-compiler      5.6 (pinned)
  - install   ocaml-variants      5.6.0+trunk     [required by ocaml]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocaml.5.6.0  (cached)
-> installed host-arch-x86_64.1
-> installed host-system-other.1
-> retrieved ocaml-compiler.5.6  (https://github.com/ocaml/ocaml/archive/trunk.tar.gz)
-> retrieved ocaml-config.2  (cached)
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> removed   ocaml.4.14.2
-> removed   ocaml-config.2
-> removed   ocaml-base-compiler.4.14.2
-> installed ocaml-compiler.5.6
-> installed ocaml-variants.5.6.0+trunk
-> installed ocaml-config.2
-> installed ocaml.5.6.0
-> installed base-domains.base
-> installed base-effects.base
-> installed base-nnp.base
-> installed opam-depext.1.2.3
[NOTE] Switch invariant was updated to ["ocaml-variants" {= "5.6.0+trunk"}]
       Use `opam switch set-invariant' to change it.
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# To update the current shell environment, run: eval $(opam env)
2026-03-25 09:03.23 ---> saved as "047aabad0eee438a692d4423c5e74dfe8addcf4d64d986acfe8eac43d7e3c6c5"
Job succeeded
2026-03-25 09:03.31: Job succeeded