(for PR #25002)

2025-02-10 15:07.54: 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 ubuntu-22.04-ocaml-5.3/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 36f4d2d5ceb882a79fd7d7f956b490201da67226
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece
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 "\"ubuntu-22.04\""; 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-02-10 15:07.54: Using cache hint "ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece-llvm.16.0.6+nnp+fix-homebrew-4d9fad21a5bc93fd3b1cd19733ce12ee7f259505"
2025-02-10 15:07.54: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece)
 (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 \"\\\"ubuntu-22.04\\\"\"; 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-02-10 15:07.54: Waiting for resource in pool OCluster
2025-02-10 17:17.31: Waiting for worker…
2025-02-10 17:20.16: Got resource from pool OCluster
Building on doris.caelum.ci.dev
All commits already cached
Updating files:  93% (21738/23304)
Updating files:  94% (21906/23304)
Updating files:  95% (22139/23304)
Updating files:  96% (22372/23304)
Updating files:  97% (22605/23304)
Updating files:  98% (22838/23304)
Updating files:  99% (23071/23304)
Updating files: 100% (23304/23304)
Updating files: 100% (23304/23304), done.
HEAD is now at 36f4d2d5ce Merge pull request #27169 from Frigory33/release-allegro5-0.1
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:ubuntu-22.04-ocaml-5.3@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece)
Unable to find image 'ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece' locally
docker.io/ocaml/opam@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece: Pulling from ocaml/opam
484b0deb330e: Pulling fs layer
484b0deb330e: Waiting
484b0deb330e: Verifying Checksum
484b0deb330e: Download complete
484b0deb330e: Pull complete
Digest: sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece
Status: Downloaded newer image for ocaml/opam@sha256:8df3e6d7769f10fc621ed3cded6f2f8dee48b0fb4e553cd7c9cf050db46cfece
2025-02-10 17:20.33 ---> using "5e36f4dd32c344c9eece6e843593339cb2ed379a9a41ef86dcb0f892fcb1b32b" 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-02-10 17:20.33 ---> using "63d2610dec688c289c0a8c8f16c7dc41a1aff21fe800ca1ff7a4cb2f1779c525" 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 development 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 ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[opam-repository-archive] no changes from git+https://github.com/ocaml/opam-repository-archive
[default] synchronised from file:///home/opam/opam-repository
2025-02-10 17:20.33 ---> using "7c016d55b2ccf36d39d306217f705b5ec48bf145af80b9d4f4b8706ca812a03f" 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.4.0~alpha1~dev (747e73667ad9d054b0f736be205c0013e1bec087)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=ubuntu os-version=22.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (local), 1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# invariant            ["ocaml-base-compiler" {>= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-02-10 17:20.33 ---> using "53646be97b6ad9a12a8926c937f5e68f0f046ca6c5c564dbd6952233ce9ed4ba" 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-02-10 17:20.33 ---> using "b9c987447dd80a27920f6070252690ba1b790f44c51de24aceda2cdec1f32e3d" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-02-10 17:20.41 ---> saved as "be3fa092868a0fa58fd52edda56617b8d3eb5ec86e1f447bfdd158989479e8f8"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-02-10 17:21.27 ---> saved as "262373fc21fc4b4532a993d7d13e87c4dc56e46baaa75b73697e3b9c3cb73ee7"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2910 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3748 kB]
- Fetched 7042 kB in 1s (9794 kB/s)
- Reading package lists...
- 
2025-02-10 17:21.30 ---> saved as "cd593c9a29769e150b7db52d161b78ea9cc90c3510d810b031eec704ca472181"

/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-02-10 17:21.31 ---> saved as "1bf958aabe77843511d7ae960fb404e433d7ab89cbb52c9e2c52a203ee8ef1d1"

/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 \"\\\"ubuntu-22.04\\\"\"; 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
  * Missing dependency:
    - llvm = 16.0.6+nnp+fix-homebrew -> conf-llvm = 16
    depends on the unavailable system package 'llvm-16-dev'. Use `--no-depexts' to attempt installation anyway, or it is possible that a depext package name in the opam file is incorrect.

No solution found, exiting
"/usr/bin/env" "bash" "-c" "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 "\"ubuntu-22.04\""; 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" failed with exit status 20
2025-02-10 17:21.56: Job failed: Failed: Build failed
2025-02-10 17:21.56: Log analysis:
2025-02-10 17:21.56: >>> 
No solution found, exiting
 (score = 100)
2025-02-10 17:21.56: [SKIP] Package not available