(for PR #27642)

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

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/27642/head" && git reset --hard 883443dc
git fetch origin master
git merge --no-edit b6a264c784afa1e19f7a926fc10d49010ad12be4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-42-ocaml-5.4@sha256:0a41cccf31bef658d45e55dc4a50aaa31b71df0f5eab432fd66d473f64393615
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 "\"fedora-42\""; 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-11-10 16:55.35: Using cache hint "ocaml/opam:fedora-42-ocaml-5.4@sha256:0a41cccf31bef658d45e55dc4a50aaa31b71df0f5eab432fd66d473f64393615-conf-rust-llvm.1-883443dcb74125770863632551853b048843182a"
2025-11-10 16:55.35: Using OBuilder spec:
((from ocaml/opam:fedora-42-ocaml-5.4@sha256:0a41cccf31bef658d45e55dc4a50aaa31b71df0f5eab432fd66d473f64393615)
 (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 \"\\\"fedora-42\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != '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-11-10 16:55.35: Waiting for resource in pool OCluster
2025-11-10 21:08.07: Waiting for worker…
2025-11-10 21:11.07: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at b6a264c784 Merge pull request #28853 from AltGr/catala100
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:fedora-42-ocaml-5.4@sha256:0a41cccf31bef658d45e55dc4a50aaa31b71df0f5eab432fd66d473f64393615)
2025-11-10 21:12.06 ---> using "5c6093ecbcffe4c849953e1d5065f5b8a34578644b13adc5affbf6974d64c62a" 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:12.06 ---> using "e29127ccb85d7bd5a8ab8e22a4ad66cf96469c3fad067bffa2a2888ad72e94ed" 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
[NOTE] The 'jobs' option was reset, its value was 71 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=71 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-11-10 21:12.06 ---> using "63de33ae7d70fb5c2edbd33dd49fae7fd24ef577eafacd9d9ce5235cc8c3139a" 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=fedora os-version=42
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 255
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.4
# invariant            ["ocaml-base-compiler" {>= "5.4.0"}]
# compiler-packages    ocaml-base-compiler.5.4.0, ocaml-compiler.5.4.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.4/lib/ocaml/stublibs:/home/opam/.opam/5.4/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.4.0
2025-11-10 21:12.06 ---> using "e37753b0868ff37937924e1db9719f99d91f3821426274267d3c5902b3f79e71" 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:12.06 ---> using "7a5b24979f90767df9f78b73b69c1ca6ddc26b23df63e9739e96be336cee9be6" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/sbin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 42 - x86_64 - Updates           100% | 161.3 KiB/s |  18.4 KiB |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-11-10 21:13.32 ---> saved as "9fa494e828a67804e3371aa7ed034780a35adc2436008077b2e1ae15e6692d23"

/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-11-10 21:13.33 ---> saved as "1cb791998a74454f6f911b708409366eb518e04afd8650695ce890e82c58e02f"

/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 \"\\\"fedora-42\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != '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"))
conf-rust-llvm.1 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 6 packages
  - install conf-bash      1          [required by conf-llvm]
  - install conf-lld       1          [required by conf-rust-llvm]
  - install conf-llvm      17         [required by conf-rust-llvm]
  - install conf-rust      0.1        [required by conf-rust-llvm]
  - install conf-rust-llvm 1 (pinned)
  - install conf-which     1          [required by conf-rust-llvm]

The following system packages will first need to be installed:
    cargo lld llvm17-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/sbin/sudo "yum" "install" "-y" "cargo" "lld" "llvm17-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package            Arch   Version                 Repository      Size
- Installing:
-  cargo             x86_64 1.91.0-1.fc42           updates     22.9 MiB
-  lld               x86_64 20.1.8-4.fc42           updates     48.4 KiB
-  llvm17-devel      x86_64 17.0.6-9.fc41           fedora      23.0 MiB
- Installing dependencies:
-  libedit-devel     x86_64 3.1-56.20251016cvs.fc42 updates     59.4 KiB
-  libgit2           x86_64 1.9.0-4.fc42            fedora       1.3 MiB
-  libssh2           x86_64 1.11.1-3.fc42           fedora     322.7 KiB
-  lld-libs          x86_64 20.1.8-4.fc42           updates      6.3 MiB
-  llhttp            x86_64 9.2.1-6.fc42            updates     72.5 KiB
-  llvm17            x86_64 17.0.6-9.fc41           fedora     112.5 MiB
-  llvm17-googletest x86_64 17.0.6-9.fc41           fedora       2.2 MiB
-  llvm17-libs       x86_64 17.0.6-9.fc41           fedora     114.2 MiB
-  llvm17-static     x86_64 17.0.6-9.fc41           fedora     277.2 MiB
-  llvm17-test       x86_64 17.0.6-9.fc41           fedora       1.9 MiB
-  ncurses-c++-libs  x86_64 6.5-5.20250125.fc42     fedora     153.6 KiB
-  ncurses-devel     x86_64 6.5-5.20250125.fc42     fedora     883.7 KiB
-  rust              x86_64 1.91.0-1.fc42           updates     93.8 MiB
-  rust-std-static   x86_64 1.91.0-1.fc42           updates    164.0 MiB
- 
- Transaction Summary:
-  Installing:        17 packages
- 
- Total size of inbound packages is 175 MiB. Need to download 175 MiB.
- After this operation, 821 MiB extra will be used (install 821 MiB, remove 0 B).
- [ 1/17] cargo-0:1.91.0-1.fc42.x86_64    100% |  14.6 MiB/s |   7.5 MiB |  00m01s
- [ 2/17] libssh2-0:1.11.1-3.fc42.x86_64  100% | 141.6 KiB/s | 147.2 KiB |  00m01s
- [ 3/17] rust-0:1.91.0-1.fc42.x86_64     100% |  16.6 MiB/s |  30.1 MiB |  00m02s
- [ 4/17] lld-0:20.1.8-4.fc42.x86_64      100% |   2.6 MiB/s |  39.9 KiB |  00m00s
- [ 5/17] rust-std-static-0:1.91.0-1.fc42 100% |  23.0 MiB/s |  40.7 MiB |  00m02s
- [ 6/17] libgit2-0:1.9.0-4.fc42.x86_64   100% | 123.5 KiB/s | 584.7 KiB |  00m05s
- [ 7/17] llvm17-googletest-0:17.0.6-9.fc 100% | 244.9 KiB/s | 359.8 KiB |  00m01s
- [ 8/17] llvm17-devel-0:17.0.6-9.fc41.x8 100% | 198.5 KiB/s |   3.8 MiB |  00m20s
- [ 9/17] llvm17-0:17.0.6-9.fc41.x86_64   100% | 232.3 KiB/s |  25.6 MiB |  01m53s
- [10/17] llvm17-test-0:17.0.6-9.fc41.x86 100% | 212.3 KiB/s | 644.5 KiB |  00m03s
- [11/17] libedit-devel-0:3.1-56.20251016 100% | 547.0 KiB/s |  40.5 KiB |  00m00s
- [12/17] ncurses-devel-0:6.5-5.20250125. 100% | 207.5 KiB/s | 583.5 KiB |  00m03s
- [13/17] ncurses-c++-libs-0:6.5-5.202501 100% |  87.4 KiB/s |  37.9 KiB |  00m00s
- [14/17] llhttp-0:9.2.1-6.fc42.x86_64    100% | 413.1 KiB/s |  31.4 KiB |  00m00s
- [15/17] lld-libs-0:20.1.8-4.fc42.x86_64 100% |  13.0 MiB/s |   1.8 MiB |  00m00s
- [16/17] llvm17-libs-0:17.0.6-9.fc41.x86 100% | 228.1 KiB/s |  26.7 MiB |  02m00s
- [17/17] llvm17-static-0:17.0.6-9.fc41.x 100% | 325.8 KiB/s |  36.3 MiB |  01m54s
- --------------------------------------------------------------------------------
- [17/17] Total                           100% |   1.3 MiB/s | 174.9 MiB |  02m16s
- Running transaction
- [ 1/19] Verify package files            100% |  30.0   B/s |  17.0   B |  00m01s
- [ 2/19] Prepare transaction             100% | 202.0   B/s |  17.0   B |  00m00s
- [ 3/19] Installing llvm17-libs-0:17.0.6 100% | 312.8 MiB/s | 114.2 MiB |  00m00s
- [ 4/19] Installing llvm17-0:17.0.6-9.fc 100% | 293.9 MiB/s | 112.6 MiB |  00m00s
- [ 5/19] Installing rust-std-static-0:1. 100% | 335.3 MiB/s | 164.0 MiB |  00m00s
- [ 6/19] Installing rust-0:1.91.0-1.fc42 100% | 296.9 MiB/s |  93.8 MiB |  00m00s
- [ 7/19] Installing libssh2-0:1.11.1-3.f 100% | 158.4 MiB/s | 324.4 KiB |  00m00s
- [ 8/19] Installing llvm17-test-0:17.0.6 100% | 237.8 MiB/s |   1.9 MiB |  00m00s
- [ 9/19] Installing lld-libs-0:20.1.8-4. 100% | 275.9 MiB/s |   6.3 MiB |  00m00s
- [10/19] Installing llhttp-0:9.2.1-6.fc4 100% |  71.9 MiB/s |  73.7 KiB |  00m00s
- [11/19] Installing libgit2-0:1.9.0-4.fc 100% | 221.2 MiB/s |   1.3 MiB |  00m00s
- [12/19] Installing ncurses-c++-libs-0:6 100% |  50.4 MiB/s | 154.8 KiB |  00m00s
- [13/19] Installing ncurses-devel-0:6.5- 100% |  33.6 MiB/s |   1.0 MiB |  00m00s
- [14/19] Installing libedit-devel-0:3.1- 100% |  32.7 MiB/s |  67.0 KiB |  00m00s
- [15/19] Installing llvm17-static-0:17.0 100% | 395.5 MiB/s | 277.2 MiB |  00m01s
- [16/19] Installing llvm17-googletest-0: 100% | 137.0 MiB/s |   2.2 MiB |  00m00s
- [17/19] Installing llvm17-devel-0:17.0. 100% |  98.0 MiB/s |  23.3 MiB |  00m00s
- [18/19] Installing cargo-0:1.91.0-1.fc4 100% | 246.6 MiB/s |  22.9 MiB |  00m00s
- [19/19] Installing lld-0:20.1.8-4.fc42. 100% | 386.1 KiB/s |  51.4 KiB |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "cargo" "lld" "llvm17-devel"
- cargo-1.91.0-1.fc42.x86_64
- lld-20.1.8-4.fc42.x86_64
- llvm17-devel-17.0.6-9.fc41.x86_64

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-llvm.17  (cached)
-> installed conf-bash.1
-> installed conf-lld.1
-> installed conf-which.1
-> installed conf-llvm.17
-> installed conf-rust.0.1
[ERROR] The compilation of conf-rust-llvm.1 failed at "which rust-lld".

#=== ERROR while compiling conf-rust-llvm.1 ===================================#
# context              2.5.0~alpha1 | linux/x86_64 | ocaml-base-compiler.5.4.0 | pinned
# path                 ~/.opam/5.4/.opam-switch/build/conf-rust-llvm.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build which rust-lld
# exit-code            1
# env-file             ~/.opam/log/conf-rust-llvm-7-e7e52a.env
# output-file          ~/.opam/log/conf-rust-llvm-7-e7e52a.out
### output ###
# which: no rust-lld in (/home/opam/.opam/5.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-rust-llvm 1
+- 
+- The following changes have been performed
| - install conf-bash  1
| - install conf-lld   1
| - install conf-llvm  17
| - install conf-rust  0.1
| - install conf-which 1
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.4/.opam-switch/backup/state-20251110211334.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 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 "\"fedora-42\""; 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 1
2025-11-10 21:16.57: Job failed: Failed: Build failed
2025-11-10 21:16.57: Log analysis:
2025-11-10 21:16.57: >>> 
[ERROR] The compilation of conf-rust-llvm.1 failed at "which rust-lld".
 (score = 20)
2025-11-10 21:16.57: The compilation of conf-rust-llvm.1 failed at "which rust-lld".