(for PR #29110)

2026-01-31 15:31.26: New job: build llvm.20-static, 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 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 "\"fedora-42\""; 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 .

2026-01-31 15:31.26: Using cache hint "ocaml/opam:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89-llvm.20-static-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 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 \"\\\"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\" != '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"))
)

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.36: Got resource from pool OCluster
Building on eumache
All commits already cached
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)
Unable to find image 'ocaml/opam:fedora-42-ocaml-5.4@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89' locally
docker.io/ocaml/opam@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89: Pulling from ocaml/opam
9bf6f242b112: Already exists
8fabacba1251: Already exists
b556b825844b: Already exists
9e16b7647122: Already exists
12eaeb58df8c: Already exists
7838cf217961: Already exists
Digest: sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89
Status: Downloaded newer image for ocaml/opam@sha256:b74751ba6ac22a6f19a91dfb20696498aab52c04a5ce04357ab0a12279da8e89
2026-01-31 15:34.48 ---> saved as "8776fb0af6fc53898862b86f46ca8cee0489b257aca99b5899191e17bb0d5004"

/: (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.49 ---> saved as "b8cca8bfd23834fb7e090e3c27f2170eb8281a065e79536f1e430ddc1b1c8118"

/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:35.15 ---> saved as "3585d06f098553452479d6c335da00495554b93675451a57278a9271d623ff6d"

/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:35.16 ---> saved as "f5857c76864baf8cb3e699c519d757325cd57ff2fcd775d702006da4494b4c41"

/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:35.29 ---> saved as "b6df9f59c19836f991f70bcd0501fd40466d07d3a25be361fb57a3445396f9a6"

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

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-01-31 15:35.57 ---> 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% |  44.2 KiB/s |  20.6 KiB |  00m00s
-  Fedora 42 - x86_64                     100% |  73.5 KiB/s |  22.9 KiB |  00m00s
-  Fedora 42 openh264 (From Cisco) - x86_ 100% |   5.8 KiB/s | 986.0   B |  00m00s
- Repositories loaded.
- Metadata cache created.
2026-01-31 15:36.03 ---> saved as "4e961b3d8f74c402ba542287d90c66517e5018f1b0ed9379f8d72649526796fa"

/home/opam: (run (shell "opam pin add -k version -yn llvm.20-static 20-static"))
llvm is now pinned to version 20-static
2026-01-31 15:36.04 ---> saved as "831915d37297b7fe4c413e8196d44a59d12c92238002867d25eacecf3018de70"

/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 \"\\\"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\" != '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
The following actions will be performed:
=== install 11 packages
  - install conf-bash         1                  [required by conf-llvm-static]
  - install conf-cmake        1                  [required by llvm]
  - install conf-llvm-static  20                 [required by llvm]
  - install csexp             1.5.2              [required by dune-configurator]
  - install ctypes            0.24.0             [required by llvm]
  - install dune              3.21.0             [required by ctypes]
  - install dune-configurator 3.21.0             [required by ctypes]
  - install integers          0.7.0              [required by ctypes]
  - install llvm              20-static (pinned)
  - install ocamlfind         1.9.8              [required by llvm]
  - install stdlib-shims      0.3.0              [required by integers]

The following system packages will first need to be installed:
    cmake llvm-devel

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run yum to install them (may need root/sudo access)
  2. Display the recommended yum 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/sbin/sudo "yum" "install" "-y" "cmake" "llvm-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package           Arch   Version                 Repository      Size
- Installing:
-  cmake            x86_64 3.31.6-2.fc42           fedora      34.2 MiB
-  llvm-devel       x86_64 20.1.8-4.fc42           updates     28.9 MiB
- Installing dependencies:
-  cmake-data       noarch 3.31.6-2.fc42           fedora       8.5 MiB
-  cmake-filesystem x86_64 3.31.6-2.fc42           fedora       0.0   B
-  jsoncpp          x86_64 1.9.6-1.fc42            fedora     261.6 KiB
-  libedit-devel    x86_64 3.1-56.20251016cvs.fc42 updates     59.4 KiB
-  libuv            x86_64 1:1.51.0-1.fc42         updates    570.2 KiB
-  libzstd-devel    x86_64 1.5.7-1.fc42            fedora     208.0 KiB
-  llvm             x86_64 20.1.8-4.fc42           updates     89.7 MiB
-  llvm-googletest  x86_64 20.1.8-4.fc42           updates      2.4 MiB
-  llvm-static      x86_64 20.1.8-4.fc42           updates    365.1 MiB
-  llvm-test        x86_64 20.1.8-4.fc42           updates      2.1 MiB
-  ncurses-c++-libs x86_64 6.5-5.20250125.fc42     fedora     153.6 KiB
-  ncurses-devel    x86_64 6.5-5.20250125.fc42     fedora     883.7 KiB
-  rhash            x86_64 1.4.5-2.fc42            fedora     351.0 KiB
-  vim-filesystem   noarch 2:9.1.2086-1.fc42       updates     40.0   B
- 
- Transaction Summary:
-  Installing:        16 packages
- 
- Total size of inbound packages is 93 MiB. Need to download 93 MiB.
- After this operation, 533 MiB extra will be used (install 533 MiB, remove 0 B).
- [ 1/16] cmake-filesystem-0:3.31.6-2.fc4 100% | 344.9 KiB/s |  17.6 KiB |  00m00s
- [ 2/16] jsoncpp-0:1.9.6-1.fc42.x86_64   100% |   3.1 MiB/s | 103.5 KiB |  00m00s
- [ 3/16] rhash-0:1.4.5-2.fc42.x86_64     100% |   3.3 MiB/s | 198.7 KiB |  00m00s
- [ 4/16] cmake-data-0:3.31.6-2.fc42.noar 100% |   6.9 MiB/s |   2.5 MiB |  00m00s
- [ 5/16] llvm-devel-0:20.1.8-4.fc42.x86_ 100% |   7.7 MiB/s |   4.8 MiB |  00m01s
- [ 6/16] llvm-googletest-0:20.1.8-4.fc42 100% |   6.1 MiB/s | 445.2 KiB |  00m00s
- [ 7/16] cmake-0:3.31.6-2.fc42.x86_64    100% |   6.2 MiB/s |  12.2 MiB |  00m02s
- [ 8/16] llvm-test-0:20.1.8-4.fc42.x86_6 100% |  12.4 MiB/s | 723.1 KiB |  00m00s
- [ 9/16] libedit-devel-0:3.1-56.20251016 100% |   7.9 MiB/s |  40.5 KiB |  00m00s
- [10/16] ncurses-devel-0:6.5-5.20250125. 100% |  13.6 MiB/s | 583.5 KiB |  00m00s
- [11/16] ncurses-c++-libs-0:6.5-5.202501 100% |   1.1 MiB/s |  37.9 KiB |  00m00s
- [12/16] libzstd-devel-0:1.5.7-1.fc42.x8 100% |   6.5 MiB/s |  53.1 KiB |  00m00s
- [13/16] vim-filesystem-2:9.1.2086-1.fc4 100% |   3.0 MiB/s |  15.2 KiB |  00m00s
- [14/16] libuv-1:1.51.0-1.fc42.x86_64    100% |   8.1 MiB/s | 266.3 KiB |  00m00s
- [15/16] llvm-0:20.1.8-4.fc42.x86_64     100% |  12.0 MiB/s |  23.2 MiB |  00m02s
- [16/16] llvm-static-0:20.1.8-4.fc42.x86 100% |  13.7 MiB/s |  48.3 MiB |  00m04s
- --------------------------------------------------------------------------------
- [16/16] Total                           100% |  20.0 MiB/s |  93.5 MiB |  00m05s
- Running transaction
- [ 1/18] Verify package files            100% |  18.0   B/s |  16.0   B |  00m01s
- [ 2/18] Prepare transaction             100% |  83.0   B/s |  16.0   B |  00m00s
- [ 3/18] Installing cmake-filesystem-0:3 100% |   1.2 MiB/s |   7.6 KiB |  00m00s
- [ 4/18] Installing llvm-0:20.1.8-4.fc42 100% | 135.3 MiB/s |  89.8 MiB |  00m01s
- [ 5/18] Installing llvm-test-0:20.1.8-4 100% |  56.9 MiB/s |   2.1 MiB |  00m00s
- [ 6/18] Installing libuv-1:1.51.0-1.fc4 100% | 111.9 MiB/s | 573.0 KiB |  00m00s
- [ 7/18] Installing vim-filesystem-2:9.1 100% | 314.6 KiB/s |   4.7 KiB |  00m00s
- [ 8/18] Installing libzstd-devel-0:1.5. 100% | 102.0 MiB/s | 208.8 KiB |  00m00s
- [ 9/18] Installing ncurses-c++-libs-0:6 100% |  30.2 MiB/s | 154.8 KiB |  00m00s
- [10/18] Installing ncurses-devel-0:6.5- 100% |  25.8 MiB/s |   1.0 MiB |  00m00s
- [11/18] Installing libedit-devel-0:3.1- 100% |  21.8 MiB/s |  67.0 KiB |  00m00s
- [12/18] Installing llvm-static-0:20.1.8 100% | 183.2 MiB/s | 365.2 MiB |  00m02s
- [13/18] Installing llvm-googletest-0:20 100% | 112.1 MiB/s |   2.5 MiB |  00m00s
- [14/18] Installing rhash-0:1.4.5-2.fc42 100% |  11.2 MiB/s | 356.4 KiB |  00m00s
- [15/18] Installing jsoncpp-0:1.9.6-1.fc 100% |  15.1 MiB/s | 263.1 KiB |  00m00s
- [16/18] Installing cmake-data-0:3.31.6- 100% |  27.8 MiB/s |   9.1 MiB |  00m00s
- [17/18] Installing cmake-0:3.31.6-2.fc4 100% | 120.9 MiB/s |  34.2 MiB |  00m00s
- [18/18] Installing llvm-devel-0:20.1.8- 100% |  41.0 MiB/s |  29.6 MiB |  00m01s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "cmake" "llvm-devel"
- cmake-3.31.6-2.fc42.x86_64
- llvm-devel-20.1.8-4.fc42.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-cmake.1  (cached)
-> retrieved conf-llvm-static.20  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-bash.1
-> installed conf-cmake.1
-> retrieved ctypes.0.24.0  (cached)
-> installed conf-llvm-static.20
-> retrieved dune.3.21.0, dune-configurator.3.21.0  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved llvm.20-static  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed dune.3.21.0
-> installed csexp.1.5.2
-> installed stdlib-shims.0.3.0
-> installed integers.0.7.0
-> installed dune-configurator.3.21.0
-> installed ocamlfind.1.9.8
-> installed ctypes.0.24.0
-> installed llvm.20-static
Done.
# To update the current shell environment, run: eval $(opam env)
2026-01-31 15:38.29 ---> saved as "e5189229c76ef2329701e6a37a202f6df48e03ba180508092dbe1d17339783d1"
Job succeeded
2026-01-31 15:38.34: Job succeeded