(for PR #29110)

2026-01-31 15:31.26: New job: build conf-llvm-static.21, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea)
                              on fedora-42-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:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89
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-static.21 21
RUN opam reinstall conf-llvm-static.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 "\"fedora-42\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-llvm-static.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:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89-conf-llvm-static.21-e3b282a9c0eb1ef824245e3ffb935dc8fcc9b1ea"
2026-01-31 15:31.26: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89)
 (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-static.21 21"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-llvm-static.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 \"\\\"fedora-42\\\"\"; 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-static.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.32: Waiting for worker…
2026-01-31 15:33.39: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  88% (17192/19326)
Updating files:  89% (17201/19326)
Updating files:  90% (17394/19326)
Updating files:  91% (17587/19326)
Updating files:  92% (17780/19326)
Updating files:  93% (17974/19326)
Updating files:  94% (18167/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:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89)
2026-01-31 15:34.56 ---> using "8776fb0af6fc53898862b86f46ca8cee0489b257aca99b5899191e17bb0d5004" 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:34.56 ---> using "b8cca8bfd23834fb7e090e3c27f2170eb8281a065e79536f1e430ddc1b1c8118" 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2026-01-31 15:34.56 ---> using "3585d06f098553452479d6c335da00495554b93675451a57278a9271d623ff6d" 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=fedora os-version=42
# 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:34.56 ---> using "f5857c76864baf8cb3e699c519d757325cd57ff2fcd775d702006da4494b4c41" 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:34.56 ---> using "b6df9f59c19836f991f70bcd0501fd40466d07d3a25be361fb57a3445396f9a6" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64 - Updates           100% |  51.3 KiB/s |  20.6 KiB |  00m00s
-  Fedora 42 - x86_64                     100% |  77.5 KiB/s |  22.9 KiB |  00m00s
-  Fedora 42 openh264 (From Cisco) - x86_ 100% |   6.5 KiB/s | 986.0   B |  00m00s
- Repositories loaded.
- Metadata cache created.
2026-01-31 15:35.29 ---> saved as "4e961b3d8f74c402ba542287d90c66517e5018f1b0ed9379f8d72649526796fa"

/home/opam: (run (shell "opam pin add -k version -yn conf-llvm-static.21 21"))
conf-llvm-static is now pinned to version 21
2026-01-31 15:35.31 ---> saved as "117b0fa81a4a9eb6a09bd5ff3f078b98a6bf6fae10aca8b6c5adab8c2c3feddc"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-llvm-static.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 \"\\\"fedora-42\\\"\"; 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-static.21' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-llvm-static.21 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-bash        1           [required by conf-llvm-static]
  - install conf-llvm-static 21 (pinned)

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-llvm-static.21  (cached)
-> installed conf-bash.1
[ERROR] The compilation of conf-llvm-static.21 failed at "bash configure.sh 21 static".

#=== ERROR while compiling conf-llvm-static.21 ================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned
# path                 ~/.opam/5.4/.opam-switch/build/conf-llvm-static.21
# command              ~/.opam/opam-init/hooks/sandbox.sh build bash configure.sh 21 static
# exit-code            1
# env-file             ~/.opam/log/conf-llvm-static-7-aa7352.env
# output-file          ~/.opam/log/conf-llvm-static-7-aa7352.out
### output ###
# + version=21
# + mode=static
# + config_file=conf-llvm-static.config
# + hash brew
# + shopt -s nullglob
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-21 --version
# configure.sh: line 16: llvm-config-21: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-21'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-21' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config21 --version
# configure.sh: line 16: llvm-config21: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config21'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config21' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-21.0 --version
# configure.sh: line 16: llvm-config-21.0: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-21.0'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-21.0' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config210 --version
# configure.sh: line 16: llvm-config210: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config210'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config210' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-mp-21 --version
# configure.sh: line 16: llvm-config-mp-21: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-mp-21'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-mp-21' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-mp-21.0 --version
# configure.sh: line 16: llvm-config-mp-21.0: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-mp-21.0'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-mp-21.0' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm21-config --version
# configure.sh: line 16: llvm21-config: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm21-config'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm21-config' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-21-32 --version
# configure.sh: line 16: llvm-config-21-32: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-21-32'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-21-32' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config-21-64 --version
# configure.sh: line 16: llvm-config-21-64: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config-21-64'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config-21-64' doesn't match the required version. Got '' but required '21'.
# + continue
# + for llvm_config in llvm-config-$version llvm-config${version} llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config
# ++ llvm-config --version
# configure.sh: line 16: llvm-config: command not found
# + llvm_version=
# + true
# + case $llvm_version in
# + echo 'Note: '\''llvm-config'\'' doesn'\''t match the required version. Got '\'''\'' but required '\''21'\''.'
# Note: 'llvm-config' doesn't match the required version. Got '' but required '21'.
# + continue
# + echo 'Error: LLVM 21 is not installed.'
# Error: LLVM 21 is not installed.
# + exit 1



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-llvm-static 21
+- 
+- The following changes have been performed
| - install conf-bash 1
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.4/.opam-switch/backup/state-20260131153531.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-llvm-static.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 "\"fedora-42\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-llvm-static.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 1
2026-01-31 15:35.41: Job failed: Failed: Build failed
2026-01-31 15:35.41: Log analysis:
2026-01-31 15:35.41: >>> 
[ERROR] The compilation of conf-llvm-static.21 failed at "bash configure.sh 21 static".
 (score = 20)
2026-01-31 15:35.41: >>> 
# Error: LLVM 21 is not installed.
 (score = 48)
2026-01-31 15:35.41: LLVM 21 is not installed.