(for PR #27642)

2025-10-17 13:54.18: New job: build conf-rust-llvm.1, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27642/head (883443dcb74125770863632551853b048843182a)
                              on archlinux-ocaml-5.4/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/27642/head" && git reset --hard 883443dc
git fetch origin master
git merge --no-edit 5bf570252bd9fee71938b828ca0b86573c1e3355
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:archlinux-ocaml-5.4@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82
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 conf-rust-llvm.1 1
RUN opam reinstall conf-rust-llvm.1; \
    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 "\"archlinux\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-rust-llvm.1' && 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-10-17 13:54.18: Using cache hint "ocaml/opam:archlinux-ocaml-5.4@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82-conf-rust-llvm.1-883443dcb74125770863632551853b048843182a"
2025-10-17 13:54.18: Using OBuilder spec:
((from ocaml/opam:archlinux-ocaml-5.4@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82)
 (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 conf-rust-llvm.1 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-rust-llvm.1;\
             \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 \"\\\"archlinux\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'conf-rust-llvm.1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-10-17 13:54.18: Connecting to build cluster…
2025-10-17 13:54.18: Waiting for resource in pool OCluster
2025-10-17 14:29.59: Waiting for worker…
2025-10-17 14:32.15: Got resource from pool OCluster
Building on eumache
All commits already cached
HEAD is now at 5bf570252b Merge pull request #28700 from drjdn/opam-publish-p5scm.0.5.0
Auto-merging packages/conf-rust-llvm/conf-rust-llvm.1/opam
Merge made by the 'ort' strategy.
 packages/conf-rust-llvm/conf-rust-llvm.1/opam | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(from ocaml/opam:archlinux-ocaml-5.4@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82)
Unable to find image 'ocaml/opam:archlinux-ocaml-5.4@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82' locally
docker.io/ocaml/opam@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82: Pulling from ocaml/opam
f76ba238a84a: Already exists
5433a31b7d4e: Already exists
74ee6b24ca8e: Already exists
ac3ca215bcb1: Already exists
b91f57add277: Already exists
2c371071f498: Already exists
aa2833e3dbcd: Already exists
e2fa589b4a39: Already exists
db0ed6ae016a: Already exists
335f086c4198: Already exists
125843ae028e: Already exists
efc0d19fab1a: Already exists
16882f03d959: Already exists
16882f03d959: Already exists
4f4fb700ef54: Already exists
62623adbdce2: Already exists
b08d2b88a6d3: Already exists
85a7f2b1a287: Already exists
0be113b21ba7: Already exists
f8d53774465a: Already exists
1cd4763127f1: Already exists
08e93daa6985: Already exists
f8421f095cc0: Already exists
2593972bca85: Already exists
4d062722bcb2: Already exists
1a8ef7361fab: Already exists
8492fb6808a6: Already exists
04940e95ee73: Already exists
05a4def49bfb: Already exists
4d38ca90dc2a: Already exists
a7dbfb5e3636: Already exists
ff352db01faa: Already exists
d6eacb2b901a: Already exists
8be997b57637: Pulling fs layer
621fe3389b59: Pulling fs layer
ebb91cc3f718: Pulling fs layer
8be997b57637: Waiting
eec2b0b04ccc: Pulling fs layer
621fe3389b59: Waiting
ebb91cc3f718: Waiting
33c20e68ace1: Pulling fs layer
eec2b0b04ccc: Waiting
33c20e68ace1: Waiting
8be997b57637: Verifying Checksum
8be997b57637: Download complete
8be997b57637: Pull complete
ebb91cc3f718: Verifying Checksum
ebb91cc3f718: Download complete
eec2b0b04ccc: Verifying Checksum
eec2b0b04ccc: Download complete
33c20e68ace1: Verifying Checksum
33c20e68ace1: Download complete
621fe3389b59: Verifying Checksum
621fe3389b59: Download complete
621fe3389b59: Pull complete
ebb91cc3f718: Pull complete
eec2b0b04ccc: Pull complete
33c20e68ace1: Pull complete
Digest: sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82
Status: Downloaded newer image for ocaml/opam@sha256:d4ffd98f11eadb9ab8657e2ee8375c8ad84888a645ee39f80beaa9d357b23b82
2025-10-17 14:32.31 ---> using "acf6cad112877b425fc39c9b8b50e4c6a9e4911fbec36729199dccc5e03b4e82" 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-10-17 14:32.31 ---> using "b91464d55aa8f1234d2fe052e5a4daf16c5e1ffe2b2071c0fb111e19a495c77c" 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-10-17 14:32.31 ---> using "e0e03b5fe42030728add0e26bd621599f540847cdf625ecc9bbe33f31b3013f0" 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.1
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=arch os-version=20251005.0.430597
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-10-17 14:32.31 ---> using "721251b59d6fa78da598f53a9c9c38fb7e6ae6a7c2dad2fbe619077acfe9a5a9" 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-10-17 14:32.31 ---> using "34b0287d0d012abd1913a0ff8a18f73aba165ace41d995acd22544ba8442c876" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-10-17 14:32.37 ---> saved as "fc2c4b5a6fdb6f558ca34933ddc6207605f1555ac2932dcbd6e5c815d1468350"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-10-17 14:32.56 ---> saved as "7493d4ff8c46d3c0a47d1a3dd6afbfd01bb2ccbd0862185636e5f3dbe2300ea6"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "pacman" "-Sy"
- :: Synchronizing package databases...
-  core downloading...
-  extra downloading...
2025-10-17 14:32.56 ---> saved as "84c4704099c958188026743ad4d9f3a6ee7c052c113334baa4e98d0ce62043f9"

/home/opam: (run (shell "opam pin add -k version -yn conf-rust-llvm.1 1"))
conf-rust-llvm is now pinned to version 1
2025-10-17 14:32.58 ---> saved as "40a59474c3234c45adf6f375ff715c3deb509b94df12bbd9774004f1fe7d3609"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-rust-llvm.1;\
                        \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 \"\\\"archlinux\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'conf-rust-llvm.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] Package conf-rust-llvm.1 depends on the unavailable system package 'rust-llvm'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall conf-rust-llvm.1;
        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 "\"archlinux\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-rust-llvm.1' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-10-17 14:33.11: Job failed: Failed: Build failed
2025-10-17 14:33.11: Log analysis:
2025-10-17 14:33.11: >>> 
[ERROR] Package conf-rust-llvm.1 depends on the unavailable system package 'rust-llvm'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2025-10-17 14:33.11: [SKIP] Package not available