(for PR #25002)

2025-11-10 16:56.52: New job: build llvm.16.0.6+nnp+fix-homebrew, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/25002/head (4d9fad21a5bc93fd3b1cd19733ce12ee7f259505)
                              on centos-9-ocaml-4.14/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/25002/head" && git reset --hard 4d9fad21
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:centos-9-ocaml-4.14@sha256:df239cf501a436b58c13dea53dae5b381edd0d24cba69a7b18877b15e8042ba2
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.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew
RUN opam reinstall llvm.16.0.6+nnp+fix-homebrew; \
    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 "\"centos-9\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'llvm.16.0.6+nnp+fix-homebrew' && 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-11-10 16:56.52: Using cache hint "ocaml/opam:centos-9-ocaml-4.14@sha256:df239cf501a436b58c13dea53dae5b381edd0d24cba69a7b18877b15e8042ba2-llvm.16.0.6+nnp+fix-homebrew-4d9fad21a5bc93fd3b1cd19733ce12ee7f259505"
2025-11-10 16:56.52: Using OBuilder spec:
((from ocaml/opam:centos-9-ocaml-4.14@sha256:df239cf501a436b58c13dea53dae5b381edd0d24cba69a7b18877b15e8042ba2)
 (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.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall llvm.16.0.6+nnp+fix-homebrew;\
             \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 \"\\\"centos-9\\\"\"; 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.16.0.6+nnp+fix-homebrew' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-11-10 16:56.52: Waiting for resource in pool OCluster
2025-11-10 21:54.19: Waiting for worker…
2025-11-10 21:58.01: Got resource from pool OCluster
Building on clete
All commits already cached
HEAD is now at b6a264c784 Merge pull request #28853 from AltGr/catala100
Merge made by the 'ort' strategy.
 packages/llvm/llvm.16.0.6+nnp+fix-homebrew/opam | 37 +++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 packages/llvm/llvm.16.0.6+nnp+fix-homebrew/opam

(from ocaml/opam:centos-9-ocaml-4.14@sha256:df239cf501a436b58c13dea53dae5b381edd0d24cba69a7b18877b15e8042ba2)
2025-11-10 21:58.10 ---> using "a61290d9305af924156940aede364fc050ca1c9cd3822fa26dd3573c88b69bf8" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-11-10 21:58.10 ---> using "c3eb43ea4e34354e10a9ecffe056142a5bd621b1695cc56266726966a51e09e5" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.

This version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [Y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-10 21:58.10 ---> using "2044d4e1e99b0f2a6f91fae600bafb74352034dcb18b60d2e603db99ff932b74" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.5.0~alpha1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=centos os-version=9
# 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       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-11-10 21:58.10 ---> using "7be05fd2741d66962183a1a4330fd04a1d750ad8e2d10384e5410a8018c86178" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-11-10 21:58.10 ---> using "0ffd4a3d875e715dca42b0c8d18691025ed7ac5cd6f7249827a77da5e04b193f" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-11-10 21:58.22 ---> saved as "66fa0f7ae3ea41bc69d99a52f129f9408879cc3bccb37d0264c5e1fe985c5908"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-11-10 21:58.47 ---> saved as "41deb7519919c7af8b657d6637b610b5588d93749f6e7e721880d93bc8ec36a8"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- CentOS Stream 9 - BaseOS                        114 kB/s |  15 kB     00:00    
- CentOS Stream 9 - AppStream                     115 kB/s |  15 kB     00:00    
- CentOS Stream 9 - CRB                           121 kB/s |  14 kB     00:00    
- CentOS Stream 9 - Extras packages               136 kB/s |  16 kB     00:00    
- Metadata cache created.
2025-11-10 21:58.50 ---> saved as "00a4fb2725ba75b1f0875f2651a9dde521202e65028f46096e71a8121541f03c"

/home/opam: (run (shell "opam pin add -k version -yn llvm.16.0.6+nnp+fix-homebrew 16.0.6+nnp+fix-homebrew"))
llvm is now pinned to version 16.0.6+nnp+fix-homebrew
2025-11-10 21:58.51 ---> saved as "745b420aeb75eccd06560bea31614e41ba14734c973f70c558359f645e84089f"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall llvm.16.0.6+nnp+fix-homebrew;\
                        \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 \"\\\"centos-9\\\"\"; 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.16.0.6+nnp+fix-homebrew' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
llvm.16.0.6+nnp+fix-homebrew is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 11 packages
  - install bigarray-compat   1.1.0                            [required by ctypes]
  - install conf-bash         1                                [required by conf-llvm]
  - install conf-llvm         16                               [required by llvm]
  - install conf-pkg-config   4                                [required by llvm]
  - install csexp             1.5.2                            [required by dune-configurator]
  - install ctypes            0.23.0                           [required by llvm]
  - install dune              3.20.2                           [required by llvm]
  - install dune-configurator 3.20.2                           [required by ctypes]
  - install integers          0.7.0                            [required by ctypes]
  - install llvm              16.0.6+nnp+fix-homebrew (pinned)
  - install stdlib-shims      0.3.0                            [required by integers]

The following system packages will first need to be installed:
    epel-release llvm16-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/bin/sudo "yum" "install" "-y" "epel-release"
- Last metadata expiration check: 0:00:07 ago on Mon Nov 10 21:58:49 2025.
- Dependencies resolved.
- ================================================================================
-  Package                Arch        Version            Repository          Size
- ================================================================================
- Installing:
-  epel-release           noarch      9-7.el9            extras-common       19 k
- Installing weak dependencies:
-  dnf-plugins-core       noarch      4.3.0-23.el9       baseos              36 k
-  epel-next-release      noarch      9-7.el9            extras-common      8.1 k
- 
- Transaction Summary
- ================================================================================
- Install  3 Packages
- 
- Total download size: 62 k
- Installed size: 51 k
- Downloading Packages:
- (1/3): epel-next-release-9-7.el9.noarch.rpm     535 kB/s | 8.1 kB     00:00    
- (2/3): epel-release-9-7.el9.noarch.rpm          1.2 MB/s |  19 kB     00:00    
- (3/3): dnf-plugins-core-4.3.0-23.el9.noarch.rpm 1.6 MB/s |  36 kB     00:00    
- --------------------------------------------------------------------------------
- Total                                           240 kB/s |  62 kB     00:00     
- CentOS Stream 9 - Extras packages               2.1 MB/s | 2.1 kB     00:00    
- Importing GPG key 0x1D997668:
-  Userid     : "CentOS Extras SIG (https://wiki.centos.org/SpecialInterestGroup) <security@centos.org>"
-  Fingerprint: 363F C097 2F64 B699 AED3 968E 1FF6 A217 1D99 7668
-  From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras-SHA512
- Key imported successfully
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1 
-   Installing       : dnf-plugins-core-4.3.0-23.el9.noarch                   1/3 
-   Installing       : epel-next-release-9-7.el9.noarch                       2/3 
-   Installing       : epel-release-9-7.el9.noarch                            3/3 
-   Running scriptlet: epel-release-9-7.el9.noarch                            3/3 
- Many EPEL packages require the CodeReady Builder (CRB) repository.
- It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
- 
-   Verifying        : dnf-plugins-core-4.3.0-23.el9.noarch                   1/3 
-   Verifying        : epel-next-release-9-7.el9.noarch                       2/3 
-   Verifying        : epel-release-9-7.el9.noarch                            3/3
-  
- 
- Installed:
-   dnf-plugins-core-4.3.0-23.el9.noarch     epel-next-release-9-7.el9.noarch    
-   epel-release-9-7.el9.noarch             
- 
- Complete!
+ /usr/bin/sudo "yum" "install" "-y" "llvm16-devel"
- Extra Packages for Enterprise Linux 9 - x86_64   13 MB/s |  20 MB     00:01    
- Extra Packages for Enterprise Linux 9 openh264  5.7 kB/s | 2.5 kB     00:00    
- Extra Packages for Enterprise Linux 9 - Next -  932 kB/s | 289 kB     00:00    
- Dependencies resolved.
- ================================================================================
-  Package              Arch       Version                    Repository     Size
- ================================================================================
- Installing:
-  llvm16-devel         x86_64     16.0.6-8.el9               epel          3.5 M
- Installing dependencies:
-  libedit-devel        x86_64     3.1-38.20210216cvs.el9     appstream      47 k
-  llvm16               x86_64     16.0.6-8.el9               epel           19 M
-  llvm16-libs          x86_64     16.0.6-8.el9               epel           24 M
-  llvm16-static        x86_64     16.0.6-8.el9               epel           30 M
-  ncurses-c++-libs     x86_64     6.2-12.20210508.el9        appstream      37 k
-  ncurses-devel        x86_64     6.2-12.20210508.el9        appstream     728 k
- 
- Transaction Summary
- ================================================================================
- Install  7 Packages
- 
- Total download size: 78 M
- Installed size: 437 M
- Downloading Packages:
- (1/7): ncurses-c++-libs-6.2-12.20210508.el9.x86 2.3 MB/s |  37 kB     00:00    
- (2/7): libedit-devel-3.1-38.20210216cvs.el9.x86 1.0 MB/s |  47 kB     00:00    
- (3/7): ncurses-devel-6.2-12.20210508.el9.x86_64 7.3 MB/s | 728 kB     00:00    
- (4/7): llvm16-devel-16.0.6-8.el9.x86_64.rpm      11 MB/s | 3.5 MB     00:00    
- (5/7): llvm16-libs-16.0.6-8.el9.x86_64.rpm       12 MB/s |  24 MB     00:01    
- (6/7): llvm16-16.0.6-8.el9.x86_64.rpm           8.3 MB/s |  19 MB     00:02    
- (7/7): llvm16-static-16.0.6-8.el9.x86_64.rpm     11 MB/s |  30 MB     00:02    
- --------------------------------------------------------------------------------
- Total                                            23 MB/s |  78 MB     00:03     
- Extra Packages for Enterprise Linux 9 - x86_64  1.6 MB/s | 1.6 kB     00:00    
- Importing GPG key 0x3228467C:
-  Userid     : "Fedora (epel9) <epel@fedoraproject.org>"
-  Fingerprint: FF8A D134 4597 106E CE81 3B91 8A38 72BF 3228 467C
-  From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-9
- Key imported successfully
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1
-  
-   Installing       : llvm16-libs-16.0.6-8.el9.x86_64                        1/7 
-   Running scriptlet: llvm16-libs-16.0.6-8.el9.x86_64                        1/7
-  
-   Installing       : llvm16-16.0.6-8.el9.x86_64                             2/7
-  
-   Installing       : llvm16-static-16.0.6-8.el9.x86_64                      3/7 
-   Installing       : ncurses-c++-libs-6.2-12.20210508.el9.x86_64            4/7 
-   Installing       : ncurses-devel-6.2-12.20210508.el9.x86_64               5/7 
-   Installing       : libedit-devel-3.1-38.20210216cvs.el9.x86_64            6/7 
-   Installing       : llvm16-devel-16.0.6-8.el9.x86_64                       7/7 
-   Running scriptlet: llvm16-devel-16.0.6-8.el9.x86_64                       7/7 
-   Verifying        : libedit-devel-3.1-38.20210216cvs.el9.x86_64            1/7 
-   Verifying        : ncurses-c++-libs-6.2-12.20210508.el9.x86_64            2/7 
-   Verifying        : ncurses-devel-6.2-12.20210508.el9.x86_64               3/7 
-   Verifying        : llvm16-16.0.6-8.el9.x86_64                             4/7 
-   Verifying        : llvm16-devel-16.0.6-8.el9.x86_64                       5/7 
-   Verifying        : llvm16-libs-16.0.6-8.el9.x86_64                        6/7 
-   Verifying        : llvm16-static-16.0.6-8.el9.x86_64                      7/7 
- 
- Installed:
-   libedit-devel-3.1-38.20210216cvs.el9.x86_64                                   
-   llvm16-16.0.6-8.el9.x86_64                                                    
-   llvm16-devel-16.0.6-8.el9.x86_64                                              
-   llvm16-libs-16.0.6-8.el9.x86_64                                               
-   llvm16-static-16.0.6-8.el9.x86_64                                             
-   ncurses-c++-libs-6.2-12.20210508.el9.x86_64                                   
-   ncurses-devel-6.2-12.20210508.el9.x86_64                                      
- 
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "epel-release" "llvm16-devel"
- epel-release-9-7.el9.noarch
- llvm16-devel-16.0.6-8.el9.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved conf-llvm.16  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved ctypes.0.23.0  (cached)
-> installed conf-bash.1
-> installed conf-pkg-config.4
-> installed conf-llvm.16
-> retrieved dune.3.20.2, dune-configurator.3.20.2  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved llvm.16.0.6+nnp+fix-homebrew  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed dune.3.20.2
-> installed stdlib-shims.0.3.0
-> installed csexp.1.5.2
-> installed bigarray-compat.1.1.0
-> installed integers.0.7.0
-> installed dune-configurator.3.20.2
-> installed ctypes.0.23.0
-> installed llvm.16.0.6+nnp+fix-homebrew
Done.
# To update the current shell environment, run: eval $(opam env)
2025-11-10 22:00.57 ---> saved as "51cef2d3c4025effee290af5ab40848f933cd320b4e1a1e26af5506e6bcaabf2"
Job succeeded
2025-11-10 22:01.11: Job succeeded