(for PR #29110)

2025-12-30 15:25.28: New job: build llvm.21-shared, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (a16fbbbc4ad239dba151649395b1e98d3d337d30)
                              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 a16fbbbc
git fetch origin master
git merge --no-edit f2d102f951a5dc2af6db218c6aef53c80186295a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-5.4@sha256:f1e5a2a806455339772b890519949f3014ea0ebe3330f94323f4457e88c324da
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.21-shared 21-shared
RUN opam reinstall llvm.21-shared; \
    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.21-shared' && 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.28: Using cache hint "ocaml/opam:fedora-42-ocaml-5.4@sha256:f1e5a2a806455339772b890519949f3014ea0ebe3330f94323f4457e88c324da-llvm.21-shared-a16fbbbc4ad239dba151649395b1e98d3d337d30"
2025-12-30 15:25.28: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-5.4@sha256:f1e5a2a806455339772b890519949f3014ea0ebe3330f94323f4457e88c324da)
 (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.21-shared 21-shared"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall llvm.21-shared;\
             \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.21-shared' && 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.28: Waiting for resource in pool OCluster
2025-12-30 15:26.36: Waiting for worker…
2025-12-30 15:30.52: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
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:fedora-42-ocaml-5.4@sha256:f1e5a2a806455339772b890519949f3014ea0ebe3330f94323f4457e88c324da)
2025-12-30 15:31.33 ---> saved as "db23f85558ee845c94ee085d6c47a8cb19fbf2fcf19d3669587b0e47807dd65c"

/: (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:31.33 ---> saved as "f05a4b4a25f887dfb9e086701e41e902ad8a564b1bfad55fe96c33474d8b1f32"

/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
2025-12-30 15:31.55 ---> saved as "a0f939ca53a64fbac8621788b979c8a465aeb8df93459fa1f788b0b3fcb090b3"

/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                 255
# 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:31.55 ---> saved as "f4f1f511be91437092895f73817f1fe4bb0f2e4663cf15465c57a67bc90d1885"

/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:32.07 ---> saved as "c0b6f8f78fba4a2b579f4ab0a7bd5ece9bc89bd5fa8fefa94c5e4459f8f7c03d"

/home/opam: (copy (src .) (dst opam-repository/))
2025-12-30 15:32.12 ---> saved as "7f128f4ae5fecda36cb534d47aed57235f8c9690e2d8bd632cae258f9560d598"

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

/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% | 195.5 KiB/s |  20.1 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-12-30 15:32.32 ---> saved as "70e819980bcb1ad54d6185fd423c4f2238357ba38433d7bf237e2783f264659e"

/home/opam: (run (shell "opam pin add -k version -yn llvm.21-shared 21-shared"))
llvm is now pinned to version 21-shared
2025-12-30 15:32.33 ---> saved as "c4c03f66646d60849f39be28fdbe4c133cfa6ed26c820cdcea49b6ee11e6108b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall llvm.21-shared;\
                        \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.21-shared' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
llvm.21-shared 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-shared]
  - install conf-cmake        1                  [required by llvm]
  - install conf-llvm-shared  21                 [required by llvm]
  - install csexp             1.5.2              [required by dune-configurator]
  - install ctypes            0.24.0             [required by llvm]
  - install dune              3.20.2             [required by ctypes]
  - install dune-configurator 3.20.2             [required by ctypes]
  - install integers          0.7.0              [required by ctypes]
  - install llvm              21-shared (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

<><> 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"
- Updating and loading repositories:
- Repositories loaded.
- Package           Arch   Version           Repository      Size
- Installing:
-  cmake            x86_64 3.31.6-2.fc42     fedora      34.2 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
-  libuv            x86_64 1:1.51.0-1.fc42   updates    570.2 KiB
-  rhash            x86_64 1.4.5-2.fc42      fedora     351.0 KiB
-  vim-filesystem   noarch 2:9.1.1952-1.fc42 updates     40.0   B
- 
- Transaction Summary:
-  Installing:         7 packages
- 
- Total size of inbound packages is 15 MiB. Need to download 15 MiB.
- After this operation, 44 MiB extra will be used (install 44 MiB, remove 0 B).
- [1/7] cmake-filesystem-0:3.31.6-2.fc42. 100% | 258.7 KiB/s |  17.6 KiB |  00m00s
- [2/7] jsoncpp-0:1.9.6-1.fc42.x86_64     100% |   1.2 MiB/s | 103.5 KiB |  00m00s
- [3/7] rhash-0:1.4.5-2.fc42.x86_64       100% | 827.9 KiB/s | 198.7 KiB |  00m00s
- [4/7] vim-filesystem-2:9.1.1952-1.fc42. 100% |   1.1 MiB/s |  15.3 KiB |  00m00s
- [5/7] libuv-1:1.51.0-1.fc42.x86_64      100% | 191.5 KiB/s | 266.3 KiB |  00m01s
- [6/7] cmake-data-0:3.31.6-2.fc42.noarch 100% |   1.2 MiB/s |   2.5 MiB |  00m02s
- [7/7] cmake-0:3.31.6-2.fc42.x86_64      100% |   2.1 MiB/s |  12.2 MiB |  00m06s
- --------------------------------------------------------------------------------
- [7/7] Total                             100% |   2.0 MiB/s |  15.2 MiB |  00m08s
- Running transaction
- [1/9] Verify package files              100% | 145.0   B/s |   7.0   B |  00m00s
- [2/9] Prepare transaction               100% | 106.0   B/s |   7.0   B |  00m00s
- [3/9] Installing cmake-filesystem-0:3.3 100% |   1.9 MiB/s |   7.6 KiB |  00m00s
- [4/9] Installing libuv-1:1.51.0-1.fc42. 100% | 186.5 MiB/s | 573.0 KiB |  00m00s
- [5/9] Installing vim-filesystem-2:9.1.1 100% | 294.9 KiB/s |   4.7 KiB |  00m00s
- [6/9] Installing rhash-0:1.4.5-2.fc42.x 100% |  17.4 MiB/s | 356.4 KiB |  00m00s
- [7/9] Installing jsoncpp-0:1.9.6-1.fc42 100% |  25.7 MiB/s | 263.1 KiB |  00m00s
- [8/9] Installing cmake-data-0:3.31.6-2. 100% |  35.7 MiB/s |   9.1 MiB |  00m00s
- [9/9] Installing cmake-0:3.31.6-2.fc42. 100% | 219.4 MiB/s |  34.2 MiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "cmake"
- cmake-3.31.6-2.fc42.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-cmake.1  (cached)
-> retrieved conf-llvm-shared.21  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-bash.1
-> installed conf-cmake.1
-> retrieved ctypes.0.24.0  (cached)
[ERROR] The compilation of conf-llvm-shared.21 failed at "bash configure.sh 21 shared".
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved llvm.21-shared  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed dune.3.20.2
-> installed csexp.1.5.2
-> installed stdlib-shims.0.3.0
-> installed integers.0.7.0
-> installed dune-configurator.3.20.2
-> installed ocamlfind.1.9.8
-> installed ctypes.0.24.0

#=== ERROR while compiling conf-llvm-shared.21 ================================#
# context              2.5.0 | linux/x86_64 | ocaml-base-compiler.5.4.0 | file:///home/opam/opam-repository
# path                 ~/.opam/5.4/.opam-switch/build/conf-llvm-shared.21
# command              ~/.opam/opam-init/hooks/sandbox.sh build bash configure.sh 21 shared
# exit-code            1
# env-file             ~/.opam/log/conf-llvm-shared-7-8326fa.env
# output-file          ~/.opam/log/conf-llvm-shared-7-8326fa.out
### output ###
# + version=21
# + mode=shared
# + config_file=conf-llvm-shared.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-shared 21
+- 
+- The following changes have been performed (the rest was aborted)
| - install conf-bash         1
| - install conf-cmake        1
| - install csexp             1.5.2
| - install ctypes            0.24.0
| - install dune              3.20.2
| - install dune-configurator 3.20.2
| - install integers          0.7.0
| - install ocamlfind         1.9.8
| - install stdlib-shims      0.3.0
+- 
# 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-20251230153234.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.
opam-repo-ci detected dependencies failing:  conf-llvm-shared.21
"/usr/bin/env" "bash" "-c" "opam reinstall llvm.21-shared;
        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.21-shared' && 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
2025-12-30 15:33.39: Job failed: Failed: Build failed
2025-12-30 15:33.39: Log analysis:
2025-12-30 15:33.39: >>> 
[ERROR] The compilation of conf-llvm-shared.21 failed at "bash configure.sh 21 shared".
 (score = 20)
2025-12-30 15:33.39: >>> 
# Error: LLVM 21 is not installed.
 (score = 48)
2025-12-30 15:33.39: >>> 
opam-repo-ci detected dependencies failing:  conf-llvm-shared.21
 (score = 75)
2025-12-30 15:33.39:  conf-llvm-shared.21 failed to build