(for PR #29110)

2026-01-31 15:31.26: New job: build conf-llvm-shared.21, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea)
                              on ubuntu-24.04-ocaml-5.4/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/29110/head" && git reset --hard e3b282a9
git fetch origin master
git merge --no-edit 277244107784e7f5e6b57eaae2e769caae2a4906
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f
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 conf-llvm-shared.21 21
RUN opam reinstall conf-llvm-shared.21; \
    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-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-llvm-shared.21' && 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-01-31 15:31.26: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f-conf-llvm-shared.21-e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea"
2026-01-31 15:31.26: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f)
 (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 conf-llvm-shared.21 21"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm-shared.21;\
             \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-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'conf-llvm-shared.21' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2026-01-31 15:31.26: Waiting for resource in pool OCluster
2026-01-31 15:31.29: Waiting for worker…
2026-01-31 15:32.48: Got resource from pool OCluster
Building on eumache
All commits already cached
Updating files:  94% (18311/19326)
Updating files:  95% (18360/19326)
Updating files:  96% (18553/19326)
Updating files:  97% (18747/19326)
Updating files:  98% (18940/19326)
Updating files:  99% (19133/19326)
Updating files: 100% (19326/19326)
Updating files: 100% (19326/19326), done.
HEAD is now at 2772441077 Merge pull request #29314 from jmid/more-fstar-ocaml-upper-bounds
Merge made by the 'ort' strategy.
 packages/conf-llvm-shared/conf-llvm-shared.20/opam | 38 +++++++++++
 packages/conf-llvm-shared/conf-llvm-shared.21/opam | 38 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.20/opam | 38 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.21/opam | 38 +++++++++++
 packages/llvm/llvm.20-shared/opam                  | 77 ++++++++++++++++++++++
 packages/llvm/llvm.20-static/opam                  | 76 +++++++++++++++++++++
 packages/llvm/llvm.21-shared/opam                  | 77 ++++++++++++++++++++++
 packages/llvm/llvm.21-static/opam                  | 76 +++++++++++++++++++++
 8 files changed, 458 insertions(+)
 create mode 100644 packages/conf-llvm-shared/conf-llvm-shared.20/opam
 create mode 100644 packages/conf-llvm-shared/conf-llvm-shared.21/opam
 create mode 100644 packages/conf-llvm-static/conf-llvm-static.20/opam
 create mode 100644 packages/conf-llvm-static/conf-llvm-static.21/opam
 create mode 100644 packages/llvm/llvm.20-shared/opam
 create mode 100644 packages/llvm/llvm.20-static/opam
 create mode 100644 packages/llvm/llvm.21-shared/opam
 create mode 100644 packages/llvm/llvm.21-static/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f)
Unable to find image 'ocaml/opam:ubuntu-24.04-ocaml-5.4@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f' locally
docker.io/ocaml/opam@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f: Pulling from ocaml/opam
a3629ac5b9f4: Already exists
1df74ae2bf3e: Already exists
2563f25c1178: Already exists
f5fc2898bd97: Already exists
07bec2374ef4: Already exists
182b6598c3cc: Already exists
8c2da7c8c95f: Already exists
20cf8da7cf35: Already exists
7610f2cf1786: Already exists
7399021ff14f: Already exists
9456e89e55d4: Already exists
e5df944e4bd8: Already exists
2333fbde88eb: Already exists
13a073e08a30: Already exists
ec62492105dc: Already exists
f036ba372f52: Already exists
3682b95f48a4: Already exists
3682b95f48a4: Already exists
32baad6bd40c: Already exists
55ea33603a54: Already exists
01e4c8c454ad: Already exists
49e757bc4eaa: Already exists
4f4fb700ef54: Already exists
9ca2cd4333a3: Already exists
24fda3688513: Already exists
79b4050536fd: Already exists
a301a466fc25: Already exists
c92e4a5fb48f: Already exists
c232f3271d8c: Already exists
38ee7210bcfc: Already exists
8aa9bd545ce6: Already exists
894091e858fb: Already exists
77f8f8d20b66: Already exists
9dba2465b196: Already exists
9e601e55f327: Already exists
f35ddc136152: Already exists
9ae0bef3d320: Already exists
cea410b8abb3: Already exists
08accec35800: Already exists
17947165f33a: Already exists
9811f6717868: Already exists
76cb01be95b7: Already exists
31a6722447f3: Already exists
d68b303fbcc2: Already exists
4ea94cf3aee4: Already exists
318860ee7cf0: Already exists
fd0498c4151d: Already exists
76cf9f181e28: Already exists
Digest: sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f
Status: Downloaded newer image for ocaml/opam@sha256:d865128c72e253be3aaebcf40eaeac3d19243c952afb0b22227eb76c2cb8644f
2026-01-31 15:33.20 ---> using "84c19fd781ed0829bf0dd9bdec394832e9e80e41be7f6ad078c032c96c97a2f3" 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-01-31 15:33.20 ---> using "a6da4170fe2402f24e66339916f985845e2d563dd000af6c6dba84ad6baf5bd4" 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.

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.

Continue? [Y/n] y
[NOTE] The 'jobs' option was reset, its value was 255 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
           opam option jobs=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-31 15:33.20 ---> using "b5d6538b3d7e86a6064295396c4cc5e1d19b74348460a2eb7d5a9a0fa9319b39" 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=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# 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
2026-01-31 15:33.20 ---> using "682cdebf1d0f4238b523a3bc17bd1e56259127dd955dc9eceaa8e5074918be4a" 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-01-31 15:33.20 ---> using "9a76053963ae9b8641dd0e3e8ad17d1b67b785685dad4c51d76b89dd8e8a9498" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2026-01-31 15:33.32 ---> saved as "cc55e9a2f4548529b96ee235a7688cdf252c88f12bc10352ed272e0db1d9d289"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-31 15:33.52 ---> saved as "5ba4780f1bac7169c70945f5bd7bca10007b645273f9c38984de29355dac2670"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
- Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
- Get:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
- Get:4 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
- Get:5 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3219 kB]
- Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2171 kB]
- Get:7 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1975 kB]
- Get:8 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [38.1 kB]
- Get:9 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1194 kB]
- Get:10 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1776 kB]
- Get:11 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [3008 kB]
- Get:12 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [34.8 kB]
- Fetched 13.8 MB in 2s (6733 kB/s)
- Reading package lists...
- 
2026-01-31 15:33.57 ---> saved as "c8b0f71bedc55186b652d34eee25ee36828dbafa7a51898fbbcab4054d142f09"

/home/opam: (run (shell "opam pin add -k version -yn conf-llvm-shared.21 21"))
conf-llvm-shared is now pinned to version 21
2026-01-31 15:33.58 ---> saved as "8d5cd5810253840f5244ee176fe696fd4e6907a55a0712f1ede49d92be948ca3"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-llvm-shared.21;\
                        \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-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'conf-llvm-shared.21' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] Package conf-llvm-shared.21 depends on the unavailable system package 'llvm-21-dev'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-llvm-shared.21;
        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-24.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-llvm-shared.21' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2026-01-31 15:34.06: Job failed: Failed: Build failed
2026-01-31 15:34.06: Log analysis:
2026-01-31 15:34.06: >>> 
[ERROR] Package conf-llvm-shared.21 depends on the unavailable system package 'llvm-21-dev'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2026-01-31 15:34.06: [SKIP] Package not available