(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-43-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-43-ocaml-5.4@sha256:9d00dba6985e92fa03859266d8c1b74423a69c5663a4475c32a5fba99c476fa6
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-43\""; 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-43-ocaml-5.4@sha256:9d00dba6985e92fa03859266d8c1b74423a69c5663a4475c32a5fba99c476fa6-conf-rust-llvm.1-883443dcb74125770863632551853b048843182a"
2025-11-10 16:55.35: Using OBuilder spec:
((from ocaml/opam:fedora-43-ocaml-5.4@sha256:9d00dba6985e92fa03859266d8c1b74423a69c5663a4475c32a5fba99c476fa6)
 (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-43\\\"\"; 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.06: 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-43-ocaml-5.4@sha256:9d00dba6985e92fa03859266d8c1b74423a69c5663a4475c32a5fba99c476fa6)
2025-11-10 21:12.00 ---> using "685e4705bd4d4c9279dce0ea52c3cbf5d486a58137067398f5445eae41bef726" 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.00 ---> using "9b01743b21da41952b615c29c942fe8353402991fd5b715cb93f25a651c5278c" 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.00 ---> using "beaf676e33d7afa418ac860065b04d831de01a5141a181242129c9c1c27a603d" 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=43
# 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.00 ---> using "a93a87621df3eac88a6cb8599334f832fcb7ba7424546b51f0c2c9d8b7576edd" 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.00 ---> using "41768d8760351ac145795e7ada773c7ac1c2c5b63156d4caca4fd3c486f6895f" from cache

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

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

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

/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.29 ---> saved as "83b8da3060e1fcadf6143bb4eb5d5aff56560fd090fce5f4cab1db1f01aebca8"

/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-43\\\"\"; 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
- Upgrading:
-  libedit                     x86_64 3.1-57.20251016cvs.fc43 updates    240.2 KiB
-    replacing libedit         x86_64 3.1-56.20250104cvs.fc43 fedora     240.1 KiB
-  llvm-filesystem             x86_64 21.1.4-1.fc43           updates      0.0   B
-    replacing llvm-filesystem x86_64 21.1.2-1.fc43           fedora       0.0   B
-  llvm-libs                   x86_64 21.1.4-1.fc43           updates    138.6 MiB
-    replacing llvm-libs       x86_64 21.1.2-1.fc43           fedora     138.6 MiB
- Installing:
-  cargo                       x86_64 1.91.0-1.fc43           updates     22.8 MiB
-  lld                         x86_64 21.1.4-1.fc43           updates     44.2 KiB
-  llvm17-devel                x86_64 17.0.6-9.fc41           fedora      23.0 MiB
- Installing dependencies:
-  libedit-devel               x86_64 3.1-57.20251016cvs.fc43 updates     59.4 KiB
-  libgit2                     x86_64 1.9.0-6.fc43            fedora       1.3 MiB
-  libssh2                     x86_64 1.11.1-4.fc43           fedora     322.7 KiB
-  lld-libs                    x86_64 21.1.4-1.fc43           updates      6.5 MiB
-  llhttp                      x86_64 9.3.0-5.fc43            fedora      92.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-7.20250614.fc43     fedora     153.6 KiB
-  ncurses-devel               x86_64 6.5-7.20250614.fc43     fedora     893.4 KiB
-  rust                        x86_64 1.91.0-1.fc43           updates     93.5 MiB
-  rust-std-static             x86_64 1.91.0-1.fc43           updates    164.2 MiB
- 
- Transaction Summary:
-  Installing:        17 packages
-  Upgrading:          3 packages
-  Replacing:          3 packages
- 
- Total size of inbound packages is 210 MiB. Need to download 210 MiB.
- After this operation, 821 MiB extra will be used (install 960 MiB, remove 139 MiB).
- [ 1/20] cargo-0:1.91.0-1.fc43.x86_64    100% |   2.8 MiB/s |   7.5 MiB |  00m03s
- [ 2/20] libssh2-0:1.11.1-4.fc43.x86_64  100% | 140.6 KiB/s | 143.0 KiB |  00m01s
- [ 3/20] libgit2-0:1.9.0-6.fc43.x86_64   100% | 147.1 KiB/s | 580.3 KiB |  00m04s
- [ 4/20] llhttp-0:9.3.0-5.fc43.x86_64    100% | 167.3 KiB/s |  38.8 KiB |  00m00s
- [ 5/20] lld-0:21.1.4-1.fc43.x86_64      100% | 186.1 KiB/s |  40.4 KiB |  00m00s
- [ 6/20] rust-0:1.91.0-1.fc43.x86_64     100% |   2.9 MiB/s |  30.0 MiB |  00m10s
- [ 7/20] rust-std-static-0:1.91.0-1.fc43 100% |   2.0 MiB/s |  40.5 MiB |  00m20s
- [ 8/20] llvm17-googletest-0:17.0.6-9.fc 100% | 589.9 KiB/s | 359.8 KiB |  00m01s
- [ 9/20] llvm17-devel-0:17.0.6-9.fc41.x8 100% | 183.6 KiB/s |   3.8 MiB |  00m21s
- [10/20] llvm17-0:17.0.6-9.fc41.x86_64   100% | 220.8 KiB/s |  25.6 MiB |  01m59s
- [11/20] llvm17-test-0:17.0.6-9.fc41.x86 100% | 829.5 KiB/s | 644.5 KiB |  00m01s
- [12/20] libedit-devel-0:3.1-57.20251016 100% | 267.3 KiB/s |  40.6 KiB |  00m00s
- [13/20] ncurses-devel-0:6.5-7.20250614. 100% |   1.7 MiB/s | 590.2 KiB |  00m00s
- [14/20] ncurses-c++-libs-0:6.5-7.202506 100% |   1.6 MiB/s |  37.7 KiB |  00m00s
- [15/20] lld-libs-0:21.1.4-1.fc43.x86_64 100% |   4.0 MiB/s |   1.9 MiB |  00m00s
- [16/20] libedit-0:3.1-57.20251016cvs.fc 100% |   1.6 MiB/s | 105.2 KiB |  00m00s
- [17/20] llvm-libs-0:21.1.4-1.fc43.x86_6 100% |  26.2 MiB/s |  34.9 MiB |  00m01s
- [18/20] llvm-filesystem-0:21.1.4-1.fc43 100% | 313.5 KiB/s |  14.7 KiB |  00m00s
- [19/20] llvm17-libs-0:17.0.6-9.fc41.x86 100% | 243.4 KiB/s |  26.7 MiB |  01m52s
- [20/20] llvm17-static-0:17.0.6-9.fc41.x 100% | 309.4 KiB/s |  36.3 MiB |  02m00s
- --------------------------------------------------------------------------------
- [20/20] Total                           100% |   1.4 MiB/s | 209.6 MiB |  02m26s
- Running transaction
- [ 1/25] Verify package files            100% |  25.0   B/s |  20.0   B |  00m01s
- [ 2/25] Prepare transaction             100% | 291.0   B/s |  23.0   B |  00m00s
- [ 3/25] Upgrading libedit-0:3.1-57.2025 100% |  78.7 MiB/s | 241.9 KiB |  00m00s
- [ 4/25] Installing llvm17-libs-0:17.0.6 100% | 302.9 MiB/s | 114.2 MiB |  00m00s
- [ 5/25] Installing llvm17-0:17.0.6-9.fc 100% | 285.7 MiB/s | 112.6 MiB |  00m00s
- [ 6/25] Installing libssh2-0:1.11.1-4.f 100% | 105.6 MiB/s | 324.4 KiB |  00m00s
- [ 7/25] Installing llvm17-test-0:17.0.6 100% | 237.8 MiB/s |   1.9 MiB |  00m00s
- [ 8/25] Upgrading llvm-filesystem-0:21. 100% |   1.0 MiB/s |   1.1 KiB |  00m00s
- [ 9/25] Upgrading llvm-libs-0:21.1.4-1. 100% | 341.4 MiB/s | 138.6 MiB |  00m00s
- [10/25] Installing rust-0:1.91.0-1.fc43 100% | 309.7 MiB/s |  93.5 MiB |  00m00s
- [11/25] Installing rust-std-static-0:1. 100% | 356.2 MiB/s | 164.2 MiB |  00m00s
- [12/25] Installing lld-libs-0:21.1.4-1. 100% | 297.2 MiB/s |   6.5 MiB |  00m00s
- [13/25] Installing ncurses-c++-libs-0:6 100% |  50.4 MiB/s | 154.8 KiB |  00m00s
- [14/25] Installing ncurses-devel-0:6.5- 100% |  37.7 MiB/s |   1.0 MiB |  00m00s
- [15/25] Installing libedit-devel-0:3.1- 100% |  32.7 MiB/s |  67.0 KiB |  00m00s
- [16/25] Installing llvm17-static-0:17.0 100% | 410.1 MiB/s | 277.2 MiB |  00m01s
- [17/25] Installing llvm17-googletest-0: 100% | 219.3 MiB/s |   2.2 MiB |  00m00s
- [18/25] Installing llhttp-0:9.3.0-5.fc4 100% |  91.8 MiB/s |  94.0 KiB |  00m00s
- [19/25] Installing libgit2-0:1.9.0-6.fc 100% | 221.2 MiB/s |   1.3 MiB |  00m00s
- [20/25] Installing cargo-0:1.91.0-1.fc4 100% | 253.2 MiB/s |  22.8 MiB |  00m00s
- [21/25] Installing llvm17-devel-0:17.0. 100% | 102.3 MiB/s |  23.3 MiB |  00m00s
- [22/25] Installing lld-0:21.1.4-1.fc43. 100% |   1.2 MiB/s |  47.3 KiB |  00m00s
- [23/25] Removing llvm-libs-0:21.1.2-1.f 100% |  12.7 KiB/s |  26.0   B |  00m00s
- [24/25] Removing llvm-filesystem-0:21.1 100% |   0.0   B/s |   7.0   B |  00m00s
- [25/25] Removing libedit-0:3.1-56.20250 100% | 115.0   B/s |  11.0   B |  00m00s
- Complete!
+ /usr/sbin/rpm "-q" "--whatprovides" "cargo" "lld" "llvm17-devel"
- cargo-1.91.0-1.fc43.x86_64
- lld-21.1.4-1.fc43.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-c448a3.env
# output-file          ~/.opam/log/conf-rust-llvm-7-c448a3.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-20251110211330.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-43\""; 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:17.07: Job failed: Failed: Build failed
2025-11-10 21:17.07: Log analysis:
2025-11-10 21:17.07: >>> 
[ERROR] The compilation of conf-rust-llvm.1 failed at "which rust-lld".
 (score = 20)
2025-11-10 21:17.07: The compilation of conf-rust-llvm.1 failed at "which rust-lld".