(for PR #29110)

2025-12-30 15:25.27: New job: build llvm.20-static, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (a16fbbbc4ad239dba151649395b1e98d3d337d30)
                              on debian-unstable-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 a16fbbbc
git fetch origin master
git merge --no-edit f2d102f951a5dc2af6db218c6aef53c80186295a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-unstable-ocaml-5.4@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1
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 llvm.20-static 20-static
RUN opam reinstall llvm.20-static; \
    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-unstable\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'llvm.20-static' && 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-12-30 15:25.27: Using cache hint "ocaml/opam:debian-unstable-ocaml-5.4@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1-llvm.20-static-a16fbbbc4ad239dba151649395b1e98d3d337d30"
2025-12-30 15:25.27: Using OBuilder spec:
((from ocaml/opam:debian-unstable-ocaml-5.4@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1)
 (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 llvm.20-static 20-static"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall llvm.20-static;\
             \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-unstable\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'llvm.20-static' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-12-30 15:25.27: Waiting for resource in pool OCluster
2025-12-30 15:25.27: Waiting for worker…
2025-12-30 15:29.57: Got resource from pool OCluster
Building on eumache
All commits already cached
HEAD is now at f2d102f951 Merge pull request #29150 from raphael-proust/llvm-20-21-only-cosmetics
Merge made by the 'ort' strategy.
 packages/conf-llvm-shared/conf-llvm-shared.20/opam | 34 +++++++++++
 packages/conf-llvm-shared/conf-llvm-shared.21/opam | 34 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.20/opam | 34 +++++++++++
 packages/conf-llvm-static/conf-llvm-static.21/opam | 34 +++++++++++
 packages/llvm/llvm.20-shared/opam                  | 67 ++++++++++++++++++++++
 packages/llvm/llvm.20-static/opam                  | 67 ++++++++++++++++++++++
 packages/llvm/llvm.21-shared/opam                  | 67 ++++++++++++++++++++++
 packages/llvm/llvm.21-static/opam                  | 67 ++++++++++++++++++++++
 8 files changed, 404 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:debian-unstable-ocaml-5.4@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1)
Unable to find image 'ocaml/opam:debian-unstable-ocaml-5.4@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1' locally
docker.io/ocaml/opam@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1: Pulling from ocaml/opam
8d9b0d1957d2: Already exists
77bd5ce6de14: Already exists
59ace7bbb792: Already exists
b44820cf8c7c: Already exists
01779645db39: Already exists
2eff1215ea11: Already exists
cd204a506c17: Already exists
fdbe9d71b607: Already exists
1d1ef689aa4e: Already exists
21d29e096296: Already exists
f3c0f441dc5a: Already exists
24e024f45d9d: Already exists
70f2fc20df5f: Already exists
dc1d3669f80d: Already exists
d1960fd642f1: Already exists
5a522f53743b: Already exists
69c97573612d: Already exists
69c97573612d: Already exists
e309391d441d: Already exists
db1ca6399fa8: Already exists
14889b83b326: Already exists
44e6acdbb29a: Already exists
4f4fb700ef54: Already exists
1976d6d05edb: Already exists
847e4a574c7f: Already exists
6b92941a3055: Already exists
37281440a7ab: Already exists
b771055b6fbe: Already exists
8f4ee55b4bf4: Already exists
d31d3386bb00: Already exists
aa71471fafa8: Already exists
cab8c018bf1d: Already exists
efe6eb884787: Already exists
22ff1b490950: Already exists
08392e8ad44d: Already exists
06179f88ab5e: Already exists
d150b9aac864: Already exists
4b7a641c6ed8: Already exists
853fd7bbd04f: Already exists
2f5aec184633: Already exists
2b5266412aec: Already exists
5a4d87a519ef: Pulling fs layer
4d560378f42c: Pulling fs layer
5379b5daecdd: Pulling fs layer
5a4d87a519ef: Waiting
d076c2fe356f: Pulling fs layer
22bb05e2e184: Pulling fs layer
4d560378f42c: Waiting
bb66a4d8e571: Pulling fs layer
5379b5daecdd: Waiting
5f23220c0aaf: Pulling fs layer
d076c2fe356f: Waiting
22bb05e2e184: Waiting
bb66a4d8e571: Waiting
5a4d87a519ef: Verifying Checksum
5a4d87a519ef: Download complete
5a4d87a519ef: Pull complete
4d560378f42c: Verifying Checksum
4d560378f42c: Download complete
5379b5daecdd: Verifying Checksum
5379b5daecdd: Download complete
4d560378f42c: Pull complete
d076c2fe356f: Verifying Checksum
d076c2fe356f: Download complete
5379b5daecdd: Pull complete
22bb05e2e184: Verifying Checksum
22bb05e2e184: Download complete
bb66a4d8e571: Verifying Checksum
bb66a4d8e571: Download complete
5f23220c0aaf: Verifying Checksum
5f23220c0aaf: Download complete
d076c2fe356f: Pull complete
22bb05e2e184: Pull complete
bb66a4d8e571: Pull complete
5f23220c0aaf: Pull complete
Digest: sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1
Status: Downloaded newer image for ocaml/opam@sha256:26aee0314662fd139e3efa2225389a7a313979da60e5bd317782e687e4984cd1
2025-12-30 15:30.06 ---> using "364d43fafe494279e66ba79141c9700cfc464f4a04dcb63a9174bb120df5f126" 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-12-30 15:30.06 ---> using "e3302ef461b403d4175ac0768c2952fb24bf7ded1fcfdf490760cde64e39f23b" 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
2025-12-30 15:30.06 ---> using "eae80b391beb8de36635e17fd743c1386a6e9b52f420ea6aac1da5acdb4450c8" 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=debian os-version=unknown
# 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
2025-12-30 15:30.06 ---> using "9a31ae90b71d729b5e21fab8a54a7903dceb49ba5010841087d96f5f6cf75d7a" 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-12-30 15:30.06 ---> using "9b135790c64da7bce63b932d4e96fe92eac5829dc15ba9a8c7995f6c8d6b07db" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-30 15:30.08 ---> saved as "18ff919275ccadae5ffb54074470a6cd4d199cb29c9f9416e17dc1b16ea3654b"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-12-30 15:30.28 ---> saved as "bbecb51419a3a9b1576c739fe25f44fb01fde343cabf65fadbd55b587d615eb1"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Get:1 http://deb.debian.org/debian unstable InRelease [187 kB]
- Get:2 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-12-30-0815.30-F-2025-12-26-2020.11.pdiff [320 kB]
- Get:3 http://deb.debian.org/debian unstable/main amd64 Packages T-2025-12-30-0815.30-F-2025-12-26-2020.11.pdiff [320 kB]
- Fetched 570 kB in 3s (188 kB/s)
- Reading package lists...
2025-12-30 15:30.33 ---> saved as "5d3e6355f00a882e691b92ad0143c6d31b2af98079b0a1c9327e1517fcc786e4"

/home/opam: (run (shell "opam pin add -k version -yn llvm.20-static 20-static"))
llvm is now pinned to version 20-static
2025-12-30 15:30.33 ---> saved as "a8ee31dbf61c05ed8611e01e88c4324c148b7f10e5f1c66c5cccae5d352f11e6"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall llvm.20-static;\
                        \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-unstable\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'llvm.20-static' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
llvm.20-static is not installed. Install it? [Y/n] y
  * Missing dependency:
    - llvm = 20-static -> conf-llvm-static = 20
    depends on the unavailable system package 'llvm-20-dev'. Use `--no-depexts' to attempt installation anyway, or it is possible that a depext package name in the opam file is incorrect.

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall llvm.20-static;
        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-unstable\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'llvm.20-static' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2025-12-30 15:30.52: Job failed: Failed: Build failed
2025-12-30 15:30.52: Log analysis:
2025-12-30 15:30.52: >>> 
No solution found, exiting
 (score = 100)
2025-12-30 15:30.52: [SKIP] Package not available