(not at the head of any monitored branch or PR)
2025-12-30 15:25.43: New job: build llvm.20-shared, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/29110/head (a16fbbbc4ad239dba151649395b1e98d3d337d30)
                              on macos-homebrew-ocaml-5.4/arm64

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 macos-homebrew-ocaml-5.4
USER 1000:1000
RUN ln -f ~/local/bin/opam-dev ~/local/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 -k local --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn llvm.20-shared 20-shared
RUN opam reinstall llvm.20-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 "\"macos-homebrew\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'llvm.20-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.43: Using cache hint "macos-homebrew-ocaml-5.4-llvm.20-shared-a16fbbbc4ad239dba151649395b1e98d3d337d30"
2025-12-30 15:25.43: Using OBuilder spec:
((from macos-homebrew-ocaml-5.4)
 (user (uid 1000) (gid 1000))
 (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
 (run (network host)
      (shell "opam init --reinit -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 -k local --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn llvm.20-shared 20-shared"))
 (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
      (network host)
      (shell  "opam reinstall llvm.20-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 \"\\\"macos-homebrew\\\"\"; 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-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.43: Waiting for resource in pool OCluster
2025-12-30 15:25.43: Waiting for worker…
2025-12-30 15:33.21: Got resource from pool OCluster
Building on m1-worker-04
All commits already cached
Updating files:  67% (12851/19122)
Updating files:  68% (13003/19122)
Updating files:  69% (13195/19122)
Updating files:  70% (13386/19122)
Updating files:  71% (13577/19122)
Updating files:  72% (13768/19122)
Updating files:  73% (13960/19122)
Updating files:  74% (14151/19122)
Updating files:  75% (14342/19122)
Updating files:  76% (14533/19122)
Updating files:  77% (14724/19122)
Updating files:  78% (14916/19122)
Updating files:  79% (15107/19122)
Updating files:  80% (15298/19122)
Updating files:  81% (15489/19122)
Updating files:  82% (15681/19122)
Updating files:  83% (15872/19122)
Updating files:  84% (16063/19122)
Updating files:  85% (16254/19122)
Updating files:  86% (16445/19122)
Updating files:  87% (16637/19122)
Updating files:  88% (16828/19122)
Updating files:  89% (17019/19122)
Updating files:  90% (17210/19122)
Updating files:  91% (17402/19122)
Updating files:  92% (17593/19122)
Updating files:  93% (17784/19122)
Updating files:  94% (17975/19122)
Updating files:  95% (18166/19122)
Updating files:  96% (18358/19122)
Updating files:  97% (18549/19122)
Updating files:  98% (18740/19122)
Updating files:  99% (18931/19122)
Updating files: 100% (19122/19122)
Updating files: 100% (19122/19122), done.
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 macos-homebrew-ocaml-5.4)
2025-12-30 15:33.21 ---> using "338135fbf1889e924a607b47198b8b308c32a925cc9436066d65a9bdc402cad5" from cache

/: (user (uid 1000) (gid 1000))

/: (run (shell "ln -f ~/local/bin/opam-dev ~/local/bin/opam"))
2025-12-30 15:33.21 ---> using "7aa34524ca0a69b4a488c30909f7495a04a243f9066091b1dfe73b446b0dfcd3" from cache

/: (run (network host)
        (shell "opam init --reinit -ni"))
No configuration file found, using 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 /Users/mac1000/.opam from version 2.1 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 1 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=1 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2025-12-30 15:33.21 ---> using "91dcaa513ca3161d91620d0583acdea5310cd52ccab1dfbdd183600da37afdb2" from cache

/: (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=arm64 os=macos os-distribution=homebrew os-version=15.5
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 7
# repositories         1 (version-controlled)
# pinned               0
# current-switch       5.4.0
# invariant            ["ocaml-base-compiler" {= "5.4.0"} | "ocaml-system" {= "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       /Users/mac1000/.opam/5.4.0/lib/ocaml/stublibs:/Users/mac1000/.opam/5.4.0/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-12-30 15:33.22 ---> using "cea1bfc0b1cda73d964aa2fc69cc828a6e6d8edd86f991754707e8b004a3cb09" from cache

/: (env OPAMDOWNLOADJOBS 1)

/: (env OPAMERRLOGLEN 0)

/: (env OPAMPRECISETRACKING 1)

/: (env CI true)

/: (env OPAM_REPO_CI true)

/: (run (shell "rm -rf opam-repository/"))
2025-12-30 15:33.22 ---> using "e3eba35b672d86e69268bbb9214f23a1f9d1fb0787b4d803840af8d45829b222" from cache

/: (copy (src .) (dst opam-repository/))
2025-12-30 15:33.23 ---> using "ce6d64b9b51ded4997c1240e24a398bb28a0ebe63eb27ececaddf06a205d60cb" from cache

/: (run (shell "opam repository set-url -k local --strict default opam-repository/"))
[default] Initialised
2025-12-30 15:33.23 ---> using "491e5bae0aed5b8a996c8752700095b4cdd9f062b8925adf4515d53430b0f33a" from cache

/: (run (network host)
        (shell "opam update --depexts || true"))
+ /opt/homebrew/bin/brew "update"
- ==> Updating Homebrew...
- ==> Downloading https://ghcr.io/v2/homebrew/core/portable-ruby/blobs/sha256:1c98fa49eacc935640a6f8e10a2bf33f14cfc276804b71ddb658ea45ba99d167
- #=#=#                                                                          

                                                                           0.3%
                                                                           0.8%
- 
#                                                                          1.5%
#                                                                          1.9%
#                                                                          2.6%
##                                                                         3.2%
##                                                                         3.7%
###                                                                        4.3%
###                                                                        4.7%
###                                                                        5.1%
####                                                                       5.6%
####                                                                       6.0%
####                                                                       6.4%
- 
####                                                                       6.8%
#####                                                                      7.3%
#####                                                                      7.7%
#####                                                                      8.1%
######                                                                     8.5%
######                                                                     8.9%
######                                                                     9.3%
#######                                                                    9.9%
#######                                                                   10.3%
#######                                                                   10.7%
- 
#######                                                                   11.1%
########                                                                  11.5%
########                                                                  12.0%
########                                                                  12.4%
#########                                                                 12.8%
#########                                                                 13.2%
#########                                                                 13.7%
##########                                                                14.1%
##########                                                                14.7%
##########                                                                15.1%
###########                                                               15.5%
- 
###########                                                               15.9%
###########                                                               16.3%
############                                                              16.8%
############                                                              17.2%
############                                                              17.6%
############                                                              18.0%
#############                                                             18.4%
#############                                                             18.8%
#############                                                             19.4%
##############                                                            19.8%
##############                                                            20.2%
- 
##############                                                            20.6%
###############                                                           21.1%
###############                                                           21.5%
###############                                                           21.9%
################                                                          22.5%
################                                                          22.9%
################                                                          23.2%
#################                                                         23.8%
#################                                                         24.2%
#################                                                         24.6%
##################                                                        25.0%
- 
##################                                                        25.5%
##################                                                        25.9%
##################                                                        26.3%
###################                                                       26.8%
###################                                                       27.2%
###################                                                       27.6%
####################                                                      28.1%
####################                                                      28.5%
####################                                                      28.9%
#####################                                                     29.3%
#####################                                                     29.8%
- 
#####################                                                     30.2%
######################                                                    30.6%
######################                                                    31.0%
######################                                                    31.7%
#######################                                                   32.1%
#######################                                                   32.6%
#######################                                                   33.0%
########################                                                  33.4%
########################                                                  33.8%
########################                                                  34.2%
#########################                                                 34.7%
- 
#########################                                                 35.2%
#########################                                                 35.6%
##########################                                                36.1%
##########################                                                36.5%
##########################                                                36.9%
##########################                                                37.3%
###########################                                               37.7%
###########################                                               38.3%
###########################                                               38.7%
############################                                              39.1%
############################                                              39.6%
- 
############################                                              40.0%
#############################                                             40.4%
#############################                                             40.8%
#############################                                             41.2%
##############################                                            41.7%
##############################                                            42.1%
##############################                                            42.6%
##############################                                            43.0%
###############################                                           43.4%
###############################                                           43.8%
###############################                                           44.2%
- 
################################                                          44.5%
################################                                          45.1%
################################                                          45.6%
#################################                                         46.3%
##################################                                        47.2%
##################################                                        48.0%
###################################                                       48.8%
###################################                                       49.6%
####################################                                      50.4%
####################################                                      51.0%
####################################                                      51.4%
- 
#####################################                                     51.8%
#####################################                                     52.3%
#####################################                                     52.7%
######################################                                    53.1%
######################################                                    53.6%
######################################                                    54.1%
#######################################                                   54.5%
#######################################                                   54.9%
#######################################                                   55.3%
########################################                                  55.8%
- 
########################################                                  56.2%
########################################                                  56.6%
#########################################                                 57.0%
#########################################                                 57.4%
#########################################                                 57.9%
#########################################                                 58.3%
##########################################                                58.7%
##########################################                                59.1%
##########################################                                59.5%
###########################################                               59.9%
###########################################                               60.4%
- 
###########################################                               60.8%
############################################                              61.2%
############################################                              61.6%
############################################                              62.2%
#############################################                             62.6%
#############################################                             63.0%
#############################################                             63.4%
##############################################                            63.9%
##############################################                            64.3%
##############################################                            64.7%
##############################################                            65.2%
#####################################
- #
- #########                           65.8%
###############################################                           66.3%
################################################                          66.9%
################################################                          67.3%
################################################                          67.8%
#################################################                         68.2%
#################################################                         68.6%
#################################################                         69.0%
#################################################                         69.4%
##################################################                        70.0%
##################################################                        70.4%
- 
###################################################                       70.9%
###################################################                       71.3%
###################################################                       71.8%
###################################################                       72.2%
####################################################                      72.7%
####################################################                      73.1%
#####################################################                     73.7%
#####################################################                     74.1%
#####################################################                     74.5%
#####################################################                     74.9%
- 
######################################################                    75.3%
######################################################                    75.8%
######################################################                    76.2%
#######################################################                   76.6%
#######################################################                   77.0%
#######################################################                   77.6%
########################################################                  78.0%
########################################################                  78.4%
########################################################                  78.8%
#########################################################                 79.2%
#########################################################                 79.6%
- 
#########################################################                 80.1%
#########################################################                 80.5%
##########################################################                81.1%
##########################################################                81.4%
##########################################################                81.8%
###########################################################               82.2%
###########################################################               82.8%
###########################################################               83.2%
############################################################              83.6%
############################################################              84.0%
############################################################              84.5%
- 
#############################################################             84.9%
#############################################################             85.5%
#############################################################             85.9%
##############################################################            86.4%
##############################################################            86.8%
##############################################################            87.2%
###############################################################           87.6%
###############################################################           88.1%
###############################################################           88.5%
################################################################          89.0%
################################################################          89.4%
- 
################################################################          89.8%
################################################################          90.2%
#################################################################         90.7%
#################################################################         91.1%
#################################################################         91.5%
##################################################################        91.9%
##################################################################        92.3%
##################################################################        92.8%
###################################################################       93.2%
###################################################################       93.6%
###################################################################       94.0%
- 
###################################################################       94.4%
####################################################################      95.0%
####################################################################      95.4%
####################################################################      95.8%
#####################################################################     96.2%
#####################################################################     96.7%
#####################################################################     97.1%
######################################################################    97.5%
######################################################################    98.0%
######################################################################    98.4%
#######################################################################   98.8%
- 
#######################################################################   99.4%
#######################################################################   99.8%
######################################################################## 100.0%
- ==> Pouring portable-ruby-3.4.8.arm64_big_sur.bottle.tar.gz
- ==> Homebrew collects anonymous analytics.
- Read the analytics documentation (and how to opt-out) here:
-   https://docs.brew.sh/Analytics
- No analytics have been recorded yet (nor will be during this `brew` run).
- 
- ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
-   https://github.com/Homebrew/brew#donations
- 
- Already up-to-date.
2025-12-30 15:33.23 ---> using "6f48c8b6d7ffe7e4e3888ef9de7c783f2417c5fbd70229ad1bbfd2e87cc1153c" from cache

/: (run (shell "opam pin add -k version -yn llvm.20-shared 20-shared"))
llvm is now pinned to version 20-shared
2025-12-30 15:33.24 ---> saved as "539f2cf03fc2d200c5e7288d14501b4704d41f60fae64eb501cb45405fd2c7c9"

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell  "opam reinstall llvm.20-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 \"\\\"macos-homebrew\\\"\"; 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-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.20-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  20                 [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              20-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 llvm@20 zstd

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

opam believes some required external dependencies are missing. opam can:
> 1. Run brew to install them (may need root/sudo access)
  2. Display the recommended brew 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

+ /opt/homebrew/bin/brew "install" "cmake" "llvm@20" "zstd"
- ==> Fetching downloads for: cmake, llvm@20 and zstd
- ✔︎ Bottle Manifest cmake (4.2.1)
- ✔︎ Bottle Manifest llvm@20 (20.1.8)
- ✔︎ Bottle Manifest zstd (1.5.7)
- ✔︎ Bottle Manifest cmake (4.2.1)
- ✔︎ Bottle Manifest llvm@20 (20.1.8)
- ✔︎ Bottle Manifest zstd (1.5.7)
- ✔︎ Bottle Manifest xz (5.8.2)
- ✔︎ Bottle Manifest lz4 (1.10.0)
- ✔︎ Bottle Manifest zstd (1.5.7)
- ✔︎ Bottle xz (5.8.2)
- ✔︎ Bottle lz4 (1.10.0)
- ✔︎ Bottle zstd (1.5.7)
- ✔︎ Bottle cmake (4.2.1)
- ✔︎ Bottle llvm@20 (20.1.8)
- ==> Pouring cmake--4.2.1.arm64_sequoia.bottle.tar.gz
- ==> Caveats
- To install the CMake documentation, run:
-   brew install cmake-docs
- ==> Summary
- 🍺  /opt/homebrew/Cellar/cmake/4.2.1: 4,016 files, 63.6MB
- ==> Running `brew cleanup cmake`...
- Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
- Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
- ==> Installing dependencies for llvm@20: xz, lz4 and zstd
- ==> Installing llvm@20 dependency: xz
- ==> Pouring xz--5.8.2.arm64_sequoia.bottle.tar.gz
- 🍺  /opt/homebrew/Cellar/xz/5.8.2: 96 files, 2.7MB
- ==> Installing llvm@20 dependency: lz4
- ==> Pouring lz4--1.10.0.arm64_sequoia.bottle.1.tar.gz
- 🍺  /opt/homebrew/Cellar/lz4/1.10.0: 24 files, 729.1KB
- ==> Installing llvm@20 dependency: zstd
- ==> Pouring zstd--1.5.7.arm64_sequoia.bottle.1.tar.gz
- 🍺  /opt/homebrew/Cellar/zstd/1.5.7: 32 files, 2.3MB
- ==> Installing llvm@20
- ==> Pouring llvm@20--20.1.8.arm64_sequoia.bottle.1.tar.gz
- ==> Caveats
- CLANG_CONFIG_FILE_SYSTEM_DIR: /opt/homebrew/etc/clang
- CLANG_CONFIG_FILE_USER_DIR:   ~/.config/clang
- 
- LLD is now provided in a separate formula:
-   brew install lld@20
- 
- Using `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`.
- If you don't want to install the CLT, you can write appropriate configuration files pointing to your
- SDK at ~/.config/clang.
- 
- To use the bundled libunwind please use the following LDFLAGS:
-   LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib/unwind -lunwind"
- 
- To use the bundled libc++ please use the following LDFLAGS:
-   LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib/c++ -L/opt/homebrew/opt/llvm@20/lib/unwind -lunwind"
- 
- NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.
- 
- llvm@20 is keg-only, which means it was not symlinked into /opt/homebrew,
- because this is an alternate version of another formula.
- 
- If you need to have llvm@20 first in your PATH, run:
-   echo 'export PATH="/opt/homebrew/opt/llvm@20/bin:$PATH"' >> ~/.profile
- 
- For compilers to find llvm@20 you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/llvm@20/include"
- 
- For cmake to find llvm@20 you may need to set:
-   export CMAKE_PREFIX_PATH="/opt/homebrew/opt/llvm@20"
- ==> Summary
- 🍺  /opt/homebrew/Cellar/llvm@20/20.1.8: 8,796 files, 1.5GB
- ==> Running `brew cleanup llvm@20`...
- ==> Running `brew cleanup zstd`...
- ==> Caveats
- Bash completion has been installed to:
-   /opt/homebrew/etc/bash_completion.d
- Emacs Lisp files have been installed to:
-   /opt/homebrew/share/emacs/site-lisp/cmake
- ==> cmake
- To install the CMake documentation, run:
-   brew install cmake-docs
- ==> llvm@20
- CLANG_CONFIG_FILE_SYSTEM_DIR: /opt/homebrew/etc/clang
- CLANG_CONFIG_FILE_USER_DIR:   ~/.config/clang
- 
- LLD is now provided in a separate formula:
-   brew install lld@20
- 
- Using `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`.
- If you don't want to install the CLT, you can write appropriate configuration files pointing to your
- SDK at ~/.config/clang.
- 
- To use the bundled libunwind please use the following LDFLAGS:
-   LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib/unwind -lunwind"
- 
- To use the bundled libc++ please use the following LDFLAGS:
-   LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib/c++ -L/opt/homebrew/opt/llvm@20/lib/unwind -lunwind"
- 
- NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.
- 
- llvm@20 is keg-only, which means it was not symlinked into /opt/homebrew,
- because this is an alternate version of another formula.
- 
- If you need to have llvm@20 first in your PATH, run:
-   echo 'export PATH="/opt/homebrew/opt/llvm@20/bin:$PATH"' >> ~/.profile
- 
- For compilers to find llvm@20 you may need to set:
-   export LDFLAGS="-L/opt/homebrew/opt/llvm@20/lib"
-   export CPPFLAGS="-I/opt/homebrew/opt/llvm@20/include"
- 
- For cmake to find llvm@20 you may need to set:
-   export CMAKE_PREFIX_PATH="/opt/homebrew/opt/llvm@20"

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-cmake.1  (cached)
-> retrieved conf-llvm-shared.20  (cached)
-> installed conf-cmake.1
-> installed conf-bash.1
-> retrieved csexp.1.5.2  (cached)
-> installed conf-llvm-shared.20
-> retrieved ctypes.0.24.0  (cached)
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved integers.0.7.0  (cached)
-> installed dune.3.20.2
-> installed csexp.1.5.2
-> installed dune-configurator.3.20.2
-> retrieved llvm.20-shared  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed stdlib-shims.0.3.0
-> installed integers.0.7.0
-> installed ocamlfind.1.9.8
-> installed ctypes.0.24.0
[ERROR] The compilation of llvm.20-shared failed at "bash -ex install.sh build --llvm-config /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --libdir /Users/mac1000/.opam/5.4.0/lib --cmake cmake --make make --link-mode shared --use-homebrew".

#=== ERROR while compiling llvm.20-shared =====================================#
# context              2.5.0 | macos/arm64 | ocaml-base-compiler.5.4.0 | pinned(https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.8/llvm-project-20.1.8.src.tar.xz)
# path                 ~/.opam/5.4.0/.opam-switch/build/llvm.20-shared
# command              ~/.opam/opam-init/hooks/sandbox.sh build bash -ex install.sh build --llvm-config /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --libdir /Users/mac1000/.opam/5.4.0/lib --cmake cmake --make make --link-mode shared --use-homebrew
# exit-code            2
# env-file             ~/.opam/log/llvm-56331-dfd0a4.env
# output-file          ~/.opam/log/llvm-56331-dfd0a4.out
### output ###
# + action=build
# + shift
# + llvm_config=
# + libdir=
# + cmake=
# + make=
# + link_mode=
# + use_homebrew=FALSE
# + [[ 11 -gt 0 ]]
# + case $1 in
# + [[ 11 -lt 2 ]]
# + llvm_config=/opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config
# + shift 2
# + [[ 9 -gt 0 ]]
# + case $1 in
# + [[ 9 -lt 2 ]]
# + libdir=/Users/mac1000/.opam/5.4.0/lib
# + shift 2
# + [[ 7 -gt 0 ]]
# + case $1 in
# + [[ 7 -lt 2 ]]
# + cmake=cmake
# + shift 2
# + [[ 5 -gt 0 ]]
# + case $1 in
# + [[ 5 -lt 2 ]]
# + make=make
# + shift 2
# + [[ 3 -gt 0 ]]
# + case $1 in
# + [[ 3 -lt 2 ]]
# + link_mode=shared
# + shift 2
# + [[ 1 -gt 0 ]]
# + case $1 in
# + use_homebrew=TRUE
# + shift
# + [[ 0 -gt 0 ]]
# + case "$action" in
# + llvm_build
# + mkdir build
# ++ /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --build-mode
# ++ /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --targets-built
# ++ filter_experimental_targets
# ++ sed 's/ /;/g'
# ++ sed s/ARC//g
# ++ sed s/DirectX//g
# ++ sed s/CSKY//g
# ++ sed s/M68k//g
# ++ sed s/SPIRV//g
# ++ sed s/Xtensa//g
# ++ xargs
# ++ /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --libdir
# ++ '[' shared = shared ']'
# ++ echo TRUE
# + cmake -Bbuild -Sllvm -DCMAKE_BUILD_TYPE=Release '-DLLVM_TARGETS_TO_BUILD=AArch64;AMDGPU;ARM;AVR;BPF;Hexagon;Lanai;LoongArch;Mips;MSP430;NVPTX;PowerPC;RISCV;Sparc;SystemZ;VE;WebAssembly;X86;XCore' -DLLVM_OCAML_EXTERNAL_LLVM_LIBDIR=/opt/homebrew/Cellar/llvm@20/20.1.8/lib -DLLVM_LINK_LLVM_DYLIB=TRUE -DLLVM_OCAML_OUT_OF_TREE=TRUE -DLLVM_OCAML_INSTALL_PATH=/Users/mac1000/.opam/5.4.0/lib -DLLVM_OCAML_USE_HOMEBREW=TRUE
# CMake Deprecation Warning at /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/cmake/Modules/CMakePolicy.cmake:6 (cmake_policy):
#   The OLD behavior for policy CMP0116 will be removed from a future version
#   of CMake.
# 
#   The cmake-policies(7) manual explains that the OLD behaviors of all
#   policies are deprecated and that a policy should be set to OLD only under
#   specific short-term circumstances.  Projects should be ported to the NEW
#   behavior and not rely on setting a policy to OLD.
# Call Stack (most recent call first):
#   CMakeLists.txt:8 (include)
# 
# 
# -- The C compiler identification is AppleClang 17.0.0.17000013
# -- The CXX compiler identification is AppleClang 17.0.0.17000013
# -- The ASM compiler identification is AppleClang
# -- Found assembler: /usr/bin/cc
# -- Detecting C compiler ABI info
# -- Detecting C compiler ABI info - done
# -- Check for working C compiler: /usr/bin/cc - skipped
# -- Detecting C compile features
# -- Detecting C compile features - done
# -- Detecting CXX compiler ABI info
# -- Detecting CXX compiler ABI info - done
# -- Check for working CXX compiler: /usr/bin/c++ - skipped
# -- Detecting CXX compile features
# -- Detecting CXX compile features - done
# -- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
# -- Found Python3: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/bin/python3.9 (found suitable version "3.9.6", minimum required is "3.8") found components: Interpreter
# -- Looking for __GLIBC__
# -- Looking for __GLIBC__ - not found
# -- Looking for valgrind/valgrind.h
# -- Looking for valgrind/valgrind.h - not found
# -- Looking for FE_ALL_EXCEPT
# -- Looking for FE_ALL_EXCEPT - found
# -- Looking for FE_INEXACT
# -- Looking for FE_INEXACT - found
# -- Performing Test HAVE_BUILTIN_THREAD_POINTER
# -- Performing Test HAVE_BUILTIN_THREAD_POINTER - Success
# -- Looking for CrashReporterClient.h
# -- Looking for CrashReporterClient.h - not found
# -- Performing Test HAVE_CRASHREPORTER_INFO
# -- Performing Test HAVE_CRASHREPORTER_INFO - Success
# -- Looking for pthread_create in pthread
# -- Looking for pthread_create in pthread - found
# -- Looking for pthread_rwlock_init in pthread
# -- Looking for pthread_rwlock_init in pthread - found
# -- Looking for pthread_mutex_lock in pthread
# -- Looking for pthread_mutex_lock in pthread - found
# -- Looking for dlopen in dl
# -- Looking for dlopen in dl - found
# -- Looking for shm_open in rt
# -- Looking for shm_open in rt - not found
# -- Looking for pfm_initialize in pfm
# -- Looking for pfm_initialize in pfm - not found
# -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
# -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
# -- Found Threads: TRUE
# -- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libz.tbd (found version "1.2.12")
# -- Looking for compress2
# -- Looking for compress2 - found
# -- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libxml2.tbd (found version "2.9.13")
# -- Looking for xmlReadMemory
# -- Looking for xmlReadMemory - found
# -- Looking for histedit.h
# -- Looking for histedit.h - found
# -- Found LibEdit: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include (found version "2.11")
# -- Looking for arc4random
# -- Looking for arc4random - found
# -- Looking for backtrace
# -- Looking for backtrace - found
# -- backtrace facility detected in default set of libraries
# -- Found Backtrace: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
# -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
# -- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Success
# -- Looking for __register_frame
# -- Looking for __register_frame - found
# -- Looking for __deregister_frame
# -- Looking for __deregister_frame - found
# -- Looking for __unw_add_dynamic_fde
# -- Looking for __unw_add_dynamic_fde - found
# -- Looking for _Unwind_Backtrace
# -- Looking for _Unwind_Backtrace - found
# -- Looking for getpagesize
# -- Looking for getpagesize - found
# -- Looking for sysconf
# -- Looking for sysconf - found
# -- Looking for getrusage
# -- Looking for getrusage - found
# -- Looking for isatty
# -- Looking for isatty - found
# -- Looking for futimens
# -- Looking for futimens - found
# -- Looking for futimes
# -- Looking for futimes - found
# -- Looking for mallctl
# -- Looking for mallctl - not found
# -- Looking for mallinfo
# -- Looking for mallinfo - not found
# -- Looking for mallinfo2
# -- Looking for mallinfo2 - not found
# -- Looking for malloc_zone_statistics
# -- Looking for malloc_zone_statistics - found
# -- Looking for posix_spawn
# -- Looking for posix_spawn - found
# -- Looking for pread
# -- Looking for pread - found
# -- Looking for sbrk
# -- Looking for sbrk - found
# -- Looking for strerror_r
# -- Looking for strerror_r - found
# -- Looking for strerror_s
# -- Looking for strerror_s - not found
# -- Looking for setenv
# -- Looking for setenv - found
# -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
# -- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Success
# -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
# -- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Failed
# -- Looking for pthread_getname_np
# -- Looking for pthread_getname_np - found
# -- Looking for pthread_setname_np
# -- Looking for pthread_setname_np - found
# -- Looking for pthread_get_name_np
# -- Looking for pthread_get_name_np - not found
# -- Looking for pthread_set_name_np
# -- Looking for pthread_set_name_np - not found
# -- Looking for dlopen
# -- Looking for dlopen - found
# -- Looking for proc_pid_rusage
# -- Looking for proc_pid_rusage - found
# -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
# -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
# -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
# -- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
# -- Performing Test LLVM_HAS_ATOMICS
# -- Performing Test LLVM_HAS_ATOMICS - Success
# -- LLVM host triple: arm64-apple-darwin24.5.0
# -- Native target architecture is AArch64
# -- Threads enabled.
# -- Doxygen disabled.
# -- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld-classic
# -- Found OCaml: /Users/mac1000/.opam/5.4.0/bin/ocamlfind
# -- OCaml bindings enabled.
# -- Could NOT find Python module pygments
# -- Could NOT find Python module pygments.lexers.c_cpp
# -- Could NOT find Python module yaml
# -- LLVM default target triple: arm64-apple-darwin24.5.0
# -- Performing Test C_SUPPORTS_FPIC
# -- Performing Test C_SUPPORTS_FPIC - Success
# -- Performing Test CXX_SUPPORTS_FPIC
# -- Performing Test CXX_SUPPORTS_FPIC - Success
# -- Building with -fPIC
# -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Failed
# -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Failed
# -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
# -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
# -- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
# -- Performing Test C_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success
# -- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG
# -- Performing Test CXX_SUPPORTS_CXX98_COMPAT_EXTRA_SEMI_FLAG - Success
# -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
# -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
# -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
# -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
# -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
# -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
# -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
# -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
# -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# -- Looking for os_signpost_interval_begin
# -- Looking for os_signpost_interval_begin - found
# -- Performing Test macos_signposts_usable
# -- Performing Test macos_signposts_usable - Success
# -- Linker detection: Apple
# -- Performing Test LLVM_LINKER_SUPPORTS_NO_EXPORTED_SYMBOLS
# -- Performing Test LLVM_LINKER_SUPPORTS_NO_EXPORTED_SYMBOLS - Success
# -- Performing Test LLVM_LINKER_SUPPORTS_NO_WARN_DUPLICATE_LIBRARIES
# -- Performing Test LLVM_LINKER_SUPPORTS_NO_WARN_DUPLICATE_LIBRARIES - Success
# -- Performing Test HAS_WERROR_GLOBAL_CTORS
# -- Performing Test HAS_WERROR_GLOBAL_CTORS - Success
# -- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX
# -- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Failed
# -- Looking for __x86_64__
# -- Looking for __x86_64__ - not found
# -- Found Git: /usr/bin/git (found version "2.39.5 (Apple Git-154)")
# -- Looking for logf128
# -- Looking for logf128 - not found
# -- Targeting AArch64
# -- Targeting AMDGPU
# -- Targeting ARM
# -- Targeting AVR
# -- Targeting BPF
# -- Targeting Hexagon
# -- Targeting Lanai
# -- Targeting LoongArch
# -- Targeting Mips
# -- Targeting MSP430
# -- Targeting NVPTX
# -- Targeting PowerPC
# -- Targeting RISCV
# -- Targeting Sparc
# -- Targeting SystemZ
# -- Targeting VE
# -- Targeting WebAssembly
# -- Targeting X86
# -- Targeting XCore
# -- Registering ExampleIRTransforms as a pass plugin (static build: OFF)
# -- Registering Bye as a pass plugin (static build: OFF)
# -- Google Benchmark version: v0.0.0, normalized to 0.0.0
# -- Looking for shm_open in rt
# -- Looking for shm_open in rt - not found
# -- Performing Test HAVE_CXX_FLAG_WALL
# -- Performing Test HAVE_CXX_FLAG_WALL - Success
# -- Performing Test HAVE_CXX_FLAG_WEXTRA
# -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success
# -- Performing Test HAVE_CXX_FLAG_WSHADOW
# -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success
# -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL
# -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success
# -- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST
# -- Performing Test HAVE_CXX_FLAG_WOLD_STYLE_CAST - Success
# -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE
# -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success
# -- Performing Test HAVE_CXX_FLAG_PEDANTIC
# -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success
# -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS
# -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success
# -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32
# -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Success
# -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING
# -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success
# -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS
# -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success
# -- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS
# -- Performing Test HAVE_CXX_FLAG_FNO_EXCEPTIONS - Success
# -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING
# -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success
# -- Performing Test HAVE_CXX_FLAG_WD654
# -- Performing Test HAVE_CXX_FLAG_WD654 - Failed
# -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY
# -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Success
# -- Enabling additional flags: -DINCLUDE_DIRECTORIES=/Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/third-party/benchmark/include
# -- Compiling and running to test HAVE_THREAD_SAFETY_ATTRIBUTES
# -- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- success
# -- Performing Test HAVE_CXX_FLAG_COVERAGE
# -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success
# -- Compiling and running to test HAVE_GNU_POSIX_REGEX
# -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
# -- Compiling and running to test HAVE_POSIX_REGEX
# -- Performing Test HAVE_POSIX_REGEX -- success
# -- Compiling and running to test HAVE_STEADY_CLOCK
# -- Performing Test HAVE_STEADY_CLOCK -- success
# -- Compiling and running to test HAVE_PTHREAD_AFFINITY
# -- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
# -- Configuring done (18.1s)
# -- Generating done (3.5s)
# -- Build files have been written to: /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/build
# + make -j -Cbuild ocaml_all
# [  0%] Built target ocaml_make_directory
# [  0%] Building OCaml stub object file Lanai_ocaml.o
# [  0%] Building OCaml stub object file LoongArch_ocaml.o
# [  0%] Building OCaml stub object file AArch64_ocaml.o
# [  0%] Building OCaml stub object file MSP430_ocaml.o
# [  0%] Building OCaml stub object file Mips_ocaml.o
# [  0%] Building OCaml stub object file AMDGPU_ocaml.o
# [  0%] Building OCaml stub object file XCore_ocaml.o
# [  0%] Building OCaml stub object file PowerPC_ocaml.o
# [  0%] Building OCaml stub object file VE_ocaml.o
# [  0%] Building OCaml stub object file RISCV_ocaml.o
# [  0%] Building OCaml stub object file NVPTX_ocaml.o
# [  0%] Building OCaml stub object file X86_ocaml.o
# [  0%] Building OCaml stub object file SystemZ_ocaml.o
# [  0%] Building OCaml stub object file WebAssembly_ocaml.o
# [  0%] Building OCaml stub object file ARM_ocaml.o
# [  0%] Building OCaml stub object file Sparc_ocaml.o
# [  0%] Building OCaml stub object file Hexagon_ocaml.o
# [  0%] Building OCaml stub object file AVR_ocaml.o
# [  0%] Building OCaml stub object file BPF_ocaml.o
# [  0%] Copying llvm.mli to build area
# [  0%] Copying llvm_ocaml.c to build area
# [  0%] Copying llvm.ml to build area
# [  0%] Building OCaml stub object file llvm_ocaml.o
# [  0%] Building OCaml library llvm_WebAssembly
# [  0%] Building OCaml library llvm_PowerPC
# [ 50%] Building OCaml library llvm_Mips
# [ 50%] Building OCaml library llvm_AMDGPU
# [ 50%] Building OCaml library llvm_VE
# [ 50%] Building OCaml library llvm_Hexagon
# [ 50%] Building OCaml library llvm_XCore
# [ 50%] Building OCaml library llvm_MSP430
# [ 50%] Building OCaml library llvm_Lanai
# [ 50%] Building OCaml library llvm_BPF
# [ 50%] Building OCaml library llvm_SystemZ
# [ 50%] Building OCaml library llvm_AArch64
# [ 50%] Building OCaml library llvm_RISCV
# [ 50%] Building OCaml library llvm_X86
# [ 50%] Building OCaml library llvm_AVR
# [ 50%] Building OCaml library llvm_ARM
# [ 50%] Building OCaml library llvm_Sparc
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_PowerPC.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_PowerPC.dir/all] Error 2
# make[2]: *** Waiting for unfinished jobs....
# make[3]: *** [bindings/ocaml/backends/llvm_Mips.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_Mips.dir/all] Error 2
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/build/bindings/ocaml/llvm/llvm_ocaml.c:1167:27: warning: 'LLVMConstNUWNeg' is deprecated: Use LLVMConstNull instead. [-Wdeprecated-declarations]
#  1167 |   LLVMValueRef NegValue = LLVMConstNUWNeg(Value_val(Value));
#       |                           ^
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/llvm/include/llvm-c/Core.h:2457:1: note: 'LLVMConstNUWNeg' has been explicitly marked deprecated here
#  2457 | LLVM_ATTRIBUTE_C_DEPRECATED(
#       | ^
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/llvm/include/llvm-c/Deprecated.h:26:23: note: expanded from macro 'LLVM_ATTRIBUTE_C_DEPRECATED'
#    26 |   decl __attribute__((deprecated(message)))
#       |                       ^
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_AMDGPU.cma] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_Hexagon.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_Hexagon.dir/all] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_AMDGPU.dir/all] Error 2
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_XCore.cma] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_BPF.cma] Error 2
# ld: library 'zstd' not found
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_XCore.dir/all] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_BPF.dir/all] Error 2
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_VE.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_VE.dir/all] Error 2
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_WebAssembly.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_WebAssembly.dir/all] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_Lanai.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_Lanai.dir/all] Error 2
# [ 50%] Building OCaml library llvm_NVPTX
# [ 50%] Building OCaml library llvm_LoongArch
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_X86.cma] Error 2
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_X86.dir/all] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_AArch64.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_AArch64.dir/all] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_MSP430.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_MSP430.dir/all] Error 2
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_SystemZ.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_SystemZ.dir/all] Error 2
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_Sparc.cma] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_ARM.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_Sparc.dir/all] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_ARM.dir/all] Error 2
# make[3]: *** [bindings/ocaml/backends/llvm_RISCV.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_RISCV.dir/all] Error 2
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/build/bindings/ocaml/llvm/llvm_ocaml.c:2374:7: warning: 'LLVMBuildNUWNeg' is deprecated: Use LLVMBuildNeg + LLVMSetNUW instead. [-Wdeprecated-declarations]
#  2374 |       LLVMBuildNUWNeg(Builder_val(B), Value_val(X), String_val(Name)));
#       |       ^
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/llvm/include/llvm-c/Core.h:4401:1: note: 'LLVMBuildNUWNeg' has been explicitly marked deprecated here
#  4401 | LLVM_ATTRIBUTE_C_DEPRECATED(LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B,
#       | ^
# /Users/mac1000/.opam/5.4.0/.opam-switch/build/llvm.20-shared/llvm/include/llvm-c/Deprecated.h:26:23: note: expanded from macro 'LLVM_ATTRIBUTE_C_DEPRECATED'
#    26 |   decl __attribute__((deprecated(message)))
#       |                       ^
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_AVR.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_AVR.dir/all] Error 2
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_NVPTX.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_NVPTX.dir/all] Error 2
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/backends/llvm_LoongArch.cma] Error 2
# make[2]: *** [bindings/ocaml/backends/CMakeFiles/ocaml_llvm_LoongArch.dir/all] Error 2
# 2 warnings generated.
# [ 50%] Building OCaml library llvm
# ld: library 'zstd' not found
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
# make[3]: *** [bindings/ocaml/llvm/llvm.cma] Error 2
# make[2]: *** [bindings/ocaml/llvm/CMakeFiles/ocaml_llvm.dir/all] Error 2
# make[1]: *** [CMakeFiles/ocaml_all.dir/rule] Error 2
# make: *** [ocaml_all] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build llvm 20-shared
+- 
+- The following changes have been performed
| - install conf-bash         1
| - install conf-cmake        1
| - install conf-llvm-shared  20
| - 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:
    /opt/homebrew/bin/opam switch import "/Users/mac1000/.opam/5.4.0/.opam-switch/backup/state-20251230153326.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 llvm.20-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 "\"macos-homebrew\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'llvm.20-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:35.59: Job failed: Failed: Build failed
2025-12-30 15:35.59: Log analysis:
2025-12-30 15:35.59: >>> 
[ERROR] The compilation of llvm.20-shared failed at "bash -ex install.sh build --llvm-config /opt/homebrew/Cellar/llvm@20/20.1.8/bin/llvm-config --libdir /Users/mac1000/.opam/5.4.0/lib --cmake cmake --make make --link-mode shared --use-homebrew".
 (score = 20)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: >>> 
# clang: error: linker command failed with exit code 1 (use -v to see invocation)
 (score = 30)
2025-12-30 15:35.59: linker command failed with exit code 1 (use -v to see invocation)