(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-41-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-41-ocaml-5.4@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439
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-41\""; 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-41-ocaml-5.4@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439-conf-rust-llvm.1-883443dcb74125770863632551853b048843182a"
2025-11-10 16:55.35: Using OBuilder spec:
((from ocaml/opam:fedora-41-ocaml-5.4@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439)
 (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-41\\\"\"; 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.10: Waiting for worker…
2025-11-10 21:11.08: 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-41-ocaml-5.4@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439)
Unable to find image 'ocaml/opam:fedora-41-ocaml-5.4@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439' locally
docker.io/ocaml/opam@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439: Pulling from ocaml/opam
f1504a8c5299: Pulling fs layer
f1504a8c5299: Verifying Checksum
f1504a8c5299: Download complete
f1504a8c5299: Pull complete
Digest: sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439
Status: Downloaded newer image for ocaml/opam@sha256:d3e7e01d7c7cf0b3c97e2332ee2d00e2d6c3f2c3ca5850b9369850cc4b481439
2025-11-10 21:12.13 ---> using "67b51f99ac7836393591a935eca5368aa4cb698201bcc99de9b2596806c042d7" 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.13 ---> using "0d9e6b76c1781dfadeafdcb7c87a555afa0f9bf2c8b5617b1805bc4b7b4cb129" 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:12.13 ---> using "7d5314a85b7b3a54798ba577b69af3aca1204263c3461fbfe0ff5db84a6283d4" 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=fedora os-version=41
# 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.13 ---> using "fb7491ec5386a50ef6183ed1214abe1c0839de16e7ac9692b23d3eac0b89f444" 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.13 ---> using "ce9858a29486abfefb6196aec06c98e00a6d34608e3f16664ac029c301fb3a5e" from cache

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

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Updating and loading repositories:
-  Fedora 41 - x86_64 - Updates           100% |  23.9 KiB/s |  18.4 KiB |  00m01s
-  Fedora 41 - x86_64                     100% |  42.6 KiB/s |  24.8 KiB |  00m01s
-  Fedora 41 openh264 (From Cisco) - x86_ 100% |   7.4 KiB/s | 986.0   B |  00m00s
- Repositories loaded.
- Metadata cache created.
2025-11-10 21:13.39 ---> saved as "87103ddbf33628edd2991d0b37af952a1d1241f6c10bb4a093618a50e6ae2aad"

/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.40 ---> saved as "bfcaf260c7b77d2d40914224ddaeebd59290fa22992adcf56e63fc7b12231654"

/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-41\\\"\"; 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/bin/sudo "yum" "install" "-y" "cargo" "lld" "llvm17-devel"
- Updating and loading repositories:
- Repositories loaded.
- Package              Arch   Version                 Repository      Size
- Upgrading:
-  libedit             x86_64 3.1-55.20251016cvs.fc41 updates    244.2 KiB
-    replacing libedit x86_64 3.1-54.20250104cvs.fc41 updates    239.3 KiB
- Installing:
-  cargo               x86_64 1.91.0-2.fc41           updates     22.9 MiB
-  lld                 x86_64 19.1.7-5.fc41           updates     48.2 KiB
-  llvm17-devel        x86_64 17.0.6-9.fc41           fedora      23.0 MiB
- Installing dependencies:
-  libedit-devel       x86_64 3.1-55.20251016cvs.fc41 updates     59.4 KiB
-  libgit2             x86_64 1.9.0-4.fc41            updates      1.3 MiB
-  libssh2             x86_64 1.11.1-1.fc41           updates    322.7 KiB
-  lld-libs            x86_64 19.1.7-5.fc41           updates      6.1 MiB
-  llhttp              x86_64 9.2.1-6.fc41            updates     76.6 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-2.20240629.fc41     fedora     161.7 KiB
-  ncurses-devel       x86_64 6.5-2.20240629.fc41     fedora     870.1 KiB
-  rust                x86_64 1.91.0-2.fc41           updates     94.1 MiB
-  rust-std-static     x86_64 1.91.0-2.fc41           updates    166.7 MiB
- 
- Transaction Summary:
-  Installing:        17 packages
-  Upgrading:          1 package
-  Replacing:          1 package
- 
- Total size of inbound packages is 175 MiB. Need to download 175 MiB.
- After this operation, 824 MiB extra will be used (install 824 MiB, remove 239 KiB).
- [ 1/18] libgit2-0:1.9.0-4.fc41.x86_64   100% | 695.5 KiB/s | 580.1 KiB |  00m01s
- [ 2/18] rust-0:1.91.0-2.fc41.x86_64     100% |  12.3 MiB/s |  30.1 MiB |  00m02s
- [ 3/18] lld-0:19.1.7-5.fc41.x86_64      100% |  90.8 KiB/s |  35.0 KiB |  00m00s
- [ 4/18] cargo-0:1.91.0-2.fc41.x86_64    100% |   1.9 MiB/s |   7.5 MiB |  00m04s
- [ 5/18] llvm17-devel-0:17.0.6-9.fc41.x8 100% | 201.7 KiB/s |   3.8 MiB |  00m19s
- [ 6/18] llvm17-googletest-0:17.0.6-9.fc 100% | 150.1 KiB/s | 359.8 KiB |  00m02s
- [ 7/18] rust-std-static-0:1.91.0-2.fc41 100% |   1.7 MiB/s |  40.8 MiB |  00m24s
- [ 8/18] llvm17-static-0:17.0.6-9.fc41.x 100% |   8.6 MiB/s |  36.3 MiB |  00m04s
- [ 9/18] llvm17-test-0:17.0.6-9.fc41.x86 100% |   6.8 MiB/s | 644.5 KiB |  00m00s
- [10/18] lld-libs-0:19.1.7-5.fc41.x86_64 100% |   2.0 MiB/s |   1.7 MiB |  00m01s
- [11/18] libssh2-0:1.11.1-1.fc41.x86_64  100% |   4.0 MiB/s | 145.7 KiB |  00m00s
- [12/18] llhttp-0:9.2.1-6.fc41.x86_64    100% | 618.5 KiB/s |  31.5 KiB |  00m00s
- [13/18] libedit-devel-0:3.1-55.20251016 100% | 380.5 KiB/s |  40.3 KiB |  00m00s
- [14/18] ncurses-devel-0:6.5-2.20240629. 100% |   8.2 MiB/s | 570.0 KiB |  00m00s
- [15/18] ncurses-c++-libs-0:6.5-2.202406 100% |   1.9 MiB/s |  37.8 KiB |  00m00s
- [16/18] libedit-0:3.1-55.20251016cvs.fc 100% |   2.4 MiB/s | 105.1 KiB |  00m00s
- [17/18] llvm17-0:17.0.6-9.fc41.x86_64   100% | 232.3 KiB/s |  25.6 MiB |  01m53s
- [18/18] llvm17-libs-0:17.0.6-9.fc41.x86 100% | 271.5 KiB/s |  26.7 MiB |  01m41s
- --------------------------------------------------------------------------------
- [18/18] Total                           100% |   1.4 MiB/s | 175.0 MiB |  02m07s
- Running transaction
- [ 1/21] Verify package files            100% |  32.0   B/s |  18.0   B |  00m01s
- [ 2/21] Prepare transaction             100% | 231.0   B/s |  19.0   B |  00m00s
- [ 3/21] Installing rust-std-static-0:1. 100% | 364.0 MiB/s | 166.7 MiB |  00m00s
- [ 4/21] Installing rust-0:1.91.0-2.fc41 100% | 323.5 MiB/s |  94.2 MiB |  00m00s
- [ 5/21] Upgrading libedit-0:3.1-55.2025 100% | 120.1 MiB/s | 245.9 KiB |  00m00s
- [ 6/21] Installing llvm17-libs-0:17.0.6 100% | 302.9 MiB/s | 114.2 MiB |  00m00s
- [ 7/21] Installing llvm17-0:17.0.6-9.fc 100% | 299.4 MiB/s | 112.6 MiB |  00m00s
- [ 8/21] Installing libssh2-0:1.11.1-1.f 100% | 158.4 MiB/s | 324.4 KiB |  00m00s
- [ 9/21] Installing llvm17-test-0:17.0.6 100% | 237.8 MiB/s |   1.9 MiB |  00m00s
- [10/21] Installing ncurses-c++-libs-0:6 100% |  53.0 MiB/s | 162.9 KiB |  00m00s
- [11/21] Installing ncurses-devel-0:6.5- 100% |  76.4 MiB/s |   1.0 MiB |  00m00s
- [12/21] Installing libedit-devel-0:3.1- 100% |  65.4 MiB/s |  67.0 KiB |  00m00s
- [13/21] Installing llhttp-0:9.2.1-6.fc4 100% |  75.9 MiB/s |  77.7 KiB |  00m00s
- [14/21] Installing libgit2-0:1.9.0-4.fc 100% | 221.9 MiB/s |   1.3 MiB |  00m00s
- [15/21] Installing lld-libs-0:19.1.7-5. 100% | 278.3 MiB/s |   6.1 MiB |  00m00s
- [16/21] Installing llvm17-static-0:17.0 100% | 401.8 MiB/s | 277.2 MiB |  00m01s
- [17/21] Installing llvm17-googletest-0: 100% | 146.2 MiB/s |   2.2 MiB |  00m00s
- [18/21] Installing llvm17-devel-0:17.0. 100% | 108.5 MiB/s |  23.3 MiB |  00m00s
- [19/21] Installing lld-0:19.1.7-5.fc41. 100% |   1.9 MiB/s |  49.7 KiB |  00m00s
- [20/21] Installing cargo-0:1.91.0-2.fc4 100% | 290.1 MiB/s |  22.9 MiB |  00m00s
- [21/21] Removing libedit-0:3.1-54.20250 100% | 100.0   B/s |  11.0   B |  00m00s
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "cargo" "lld" "llvm17-devel"
- cargo-1.91.0-2.fc41.x86_64
- lld-19.1.7-5.fc41.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.4.1 | 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-513235.env
# output-file          ~/.opam/log/conf-rust-llvm-7-513235.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-20251110211341.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-41\""; 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.54: Job failed: Failed: Build failed
2025-11-10 21:16.54: Log analysis:
2025-11-10 21:16.54: >>> 
[ERROR] The compilation of conf-rust-llvm.1 failed at "which rust-lld".
 (score = 20)
2025-11-10 21:16.54: The compilation of conf-rust-llvm.1 failed at "which rust-lld".