(for PR #26991)

2024-11-28 18:38.25: New job: build conf-gcc-multilib.1.0, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26991/head (1d9aa3a77d42360c809fa99e0d6c021fc2db3644)
                              on fedora-40-ocaml-4.14/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/26991/head" && git reset --hard 1d9aa3a7
git fetch origin master
git merge --no-edit 38e57622045c665b26c1f3de8cc1ee5e47faedb3
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:fedora-40-ocaml-4.14@sha256:b11d57f260f67429dbe5f14493608c5cd2132b5899f0a066a7f566ad08ddabc7
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="1000"
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-gcc-multilib.1.0 1.0
RUN opam reinstall conf-gcc-multilib.1.0; \
    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-40\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'conf-gcc-multilib.1.0' && 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 .

2024-11-28 18:38.25: Using cache hint "ocaml/opam:fedora-40-ocaml-4.14@sha256:b11d57f260f67429dbe5f14493608c5cd2132b5899f0a066a7f566ad08ddabc7-conf-gcc-multilib.1.0-1d9aa3a77d42360c809fa99e0d6c021fc2db3644"
2024-11-28 18:38.25: Using OBuilder spec:
((from ocaml/opam:fedora-40-ocaml-4.14@sha256:b11d57f260f67429dbe5f14493608c5cd2132b5899f0a066a7f566ad08ddabc7)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 1000)
 (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-gcc-multilib.1.0 1.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall conf-gcc-multilib.1.0;\
             \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-40\\\"\"; 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-gcc-multilib.1.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-11-28 18:38.25: Waiting for resource in pool OCluster
2024-11-28 18:38.27: Waiting for worker…
2024-11-28 18:39.36: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
Updating files:  66% (21775/32769)
Updating files:  67% (21956/32769)
Updating files:  68% (22283/32769)
Updating files:  69% (22611/32769)
Updating files:  70% (22939/32769)
Updating files:  71% (23266/32769)
Updating files:  72% (23594/32769)
Updating files:  73% (23922/32769)
Updating files:  74% (24250/32769)
Updating files:  75% (24577/32769)
Updating files:  76% (24905/32769)
Updating files:  77% (25233/32769)
Updating files:  78% (25560/32769)
Updating files:  79% (25888/32769)
Updating files:  80% (26216/32769)
Updating files:  81% (26543/32769)
Updating files:  82% (26871/32769)
Updating files:  83% (27199/32769)
Updating files:  84% (27526/32769)
Updating files:  85% (27854/32769)
Updating files:  86% (28182/32769)
Updating files:  87% (28510/32769)
Updating files:  88% (28837/32769)
Updating files:  89% (29165/32769)
Updating files:  90% (29493/32769)
Updating files:  91% (29820/32769)
Updating files:  92% (30148/32769)
Updating files:  93% (30476/32769)
Updating files:  94% (30803/32769)
Updating files:  95% (31131/32769)
Updating files:  96% (31459/32769)
Updating files:  97% (31786/32769)
Updating files:  98% (32114/32769)
Updating files:  99% (32442/32769)
Updating files: 100% (32769/32769)
Updating files: 100% (32769/32769), done.
HEAD is now at 38e5762204 Merge pull request #26986 from shym/manual-5.2.1
Merge made by the 'ort' strategy.
 .../conf-gcc-multilib/conf-gcc-multilib.1.0/opam   | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 packages/conf-gcc-multilib/conf-gcc-multilib.1.0/opam

(from ocaml/opam:fedora-40-ocaml-4.14@sha256:b11d57f260f67429dbe5f14493608c5cd2132b5899f0a066a7f566ad08ddabc7)
2024-11-28 18:40.22 ---> saved as "db36779623e8d45c06cbfa137b16a3ee5d4b7140484b6bd838b7095a191f2806"

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-11-28 18:40.23 ---> saved as "03f3b5a58eb28df484648f0ccb68488938ee390e174cb3324c86f47bea21057e"

/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
[NOTE] The 'jobs' option was reset, its value was 31 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=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-11-28 18:41.31 ---> saved as "ef597a838d333d377348cac06e5ffce79895ebbbe45a49c99bf2418c5bc89ced"

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-126-generic
The OCaml toplevel, version 4.14.2
2.4.0~alpha1~dev
2024-11-28 18:41.31 ---> saved as "406b940f03cc326ac70218ec969c9c0d504ec5dce48d7dd973b9cc444e45b34c"

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 1000)

/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/"))
2024-11-28 18:41.56 ---> saved as "9b68ca4dde34c0293f997426c03feec48dd7a87a8e9d3d6c57c4fb21f4617da2"

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-28 18:42.55 ---> saved as "a229a1e01ad07e1a3db2538be6def108fad8f2258cbb9b110d34ceeef09497ca"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-11-28 18:44.14 ---> saved as "d8967e48f94d2b8297a509a03c41305faa179c7b2eea025a193a7c503e5f85bf"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "yum" "makecache"
- Fedora 40 - x86_64                              213 kB/s |  28 kB     00:00    
- Fedora 40 openh264 (From Cisco) - x86_64        9.6 kB/s | 989  B     00:00    
- Fedora 40 - x86_64 - Updates                    188 kB/s |  24 kB     00:00    
- Fedora 40 - x86_64 - Updates                    6.8 MB/s | 4.2 MB     00:00    
- Metadata cache created.
2024-11-28 18:44.20 ---> saved as "ae7c4396b7fa8a1767ed1a20789bdfa1d45282bf4494e5558221589df89241d3"

/home/opam: (run (shell "opam pin add -k version -yn conf-gcc-multilib.1.0 1.0"))
conf-gcc-multilib is now pinned to version 1.0
2024-11-28 18:44.21 ---> saved as "5c336c3016cffd8988d81812c08ca0193c25700a9408334036adad36670abab1"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall conf-gcc-multilib.1.0;\
                        \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-40\\\"\"; 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-gcc-multilib.1.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
conf-gcc-multilib.1.0 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 1 package
  - install conf-gcc-multilib 1.0 (pinned)

The following system packages will first need to be installed:
    glibc-devel.i686

<><> 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" "glibc-devel.i686"
- Last metadata expiration check: 0:00:19 ago on Thu Nov 28 18:44:15 2024.
- Dependencies resolved.
- ================================================================================
-  Package                 Architecture Version               Repository     Size
- ================================================================================
- Installing:
-  glibc-devel             i686         2.39-22.fc40          updates       116 k
- Installing dependencies:
-  glibc                   i686         2.39-22.fc40          updates       2.0 M
-  glibc-gconv-extra       x86_64       2.39-22.fc40          updates       1.7 M
-  libgcc                  i686         14.2.1-3.fc40         updates       151 k
-  libxcrypt               i686         4.4.36-10.fc40        updates       121 k
-  libxcrypt-devel         i686         4.4.36-10.fc40        updates        29 k
- Installing weak dependencies:
-  glibc-gconv-extra       i686         2.39-22.fc40          updates       1.7 M
- 
- Transaction Summary
- ================================================================================
- Install  7 Packages
- 
- Total download size: 5.8 M
- Installed size: 21 M
- Downloading Packages:
- (1/7): glibc-devel-2.39-22.fc40.i686.rpm        1.0 MB/s | 116 kB     00:00    
- (2/7): glibc-gconv-extra-2.39-22.fc40.i686.rpm  8.1 MB/s | 1.7 MB     00:00    
- (3/7): glibc-2.39-22.fc40.i686.rpm              9.3 MB/s | 2.0 MB     00:00    
- (4/7): glibc-gconv-extra-2.39-22.fc40.x86_64.rp  15 MB/s | 1.7 MB     00:00    
- (5/7): libgcc-14.2.1-3.fc40.i686.rpm            8.6 MB/s | 151 kB     00:00    
- (6/7): libxcrypt-4.4.36-10.fc40.i686.rpm        7.6 MB/s | 121 kB     00:00    
- (7/7): libxcrypt-devel-4.4.36-10.fc40.i686.rpm  1.9 MB/s |  29 kB     00:00    
- --------------------------------------------------------------------------------
- Total                                           9.0 MB/s | 5.8 MB     00:00     
- Running transaction check
- Transaction check succeeded.
- Running transaction test
- Transaction test succeeded.
- Running transaction
-   Preparing        :                                                        1/1 
-   Installing       : glibc-gconv-extra-2.39-22.fc40.x86_64                  1/7 
-   Running scriptlet: glibc-gconv-extra-2.39-22.fc40.x86_64                  1/7 
-   Installing       : libgcc-14.2.1-3.fc40.i686                              2/7 
-   Running scriptlet: libgcc-14.2.1-3.fc40.i686                              2/7 
-   Installing       : glibc-gconv-extra-2.39-22.fc40.i686                    3/7 
-   Running scriptlet: glibc-gconv-extra-2.39-22.fc40.i686                    3/7 
-   Running scriptlet: glibc-2.39-22.fc40.i686                                4/7 
-   Installing       : glibc-2.39-22.fc40.i686                                4/7 
-   Running scriptlet: glibc-2.39-22.fc40.i686                                4/7 
-   Installing       : libxcrypt-4.4.36-10.fc40.i686                          5/7 
-   Installing       : glibc-devel-2.39-22.fc40.i686                          6/7 
-   Installing       : libxcrypt-devel-4.4.36-10.fc40.i686                    7/7 
-   Running scriptlet: libxcrypt-devel-4.4.36-10.fc40.i686                    7/7 
- 
- Installed:
-   glibc-2.39-22.fc40.i686               glibc-devel-2.39-22.fc40.i686          
-   glibc-gconv-extra-2.39-22.fc40.i686   glibc-gconv-extra-2.39-22.fc40.x86_64  
-   libgcc-14.2.1-3.fc40.i686             libxcrypt-4.4.36-10.fc40.i686          
-   libxcrypt-devel-4.4.36-10.fc40.i686  
- 
- Complete!
+ /usr/bin/rpm "-q" "--whatprovides" "glibc-devel.i686"
- no package provides glibc-devel.i686
[ERROR] System package install failed with exit code 1 at command:
            rpm -q --whatprovides glibc-devel.i686
[ERROR] These packages are still missing: glibc-devel.i686

[NOTE] You can retry with '--assume-depexts' to skip this check, or run 'opam option depext=false' to permanently disable handling of system packages.

"/usr/bin/env" "bash" "-c" "opam reinstall conf-gcc-multilib.1.0;
        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-40\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'conf-gcc-multilib.1.0' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 10
2024-11-28 18:45.00: Job failed: Failed: Build failed
2024-11-28 18:45.00: Log analysis:
2024-11-28 18:45.00: >>> 
[ERROR] System package install failed with exit code 1 at command:
 (score = 20)
2024-11-28 18:45.00: >>> 
[ERROR] These packages are still missing: glibc-devel.i686
 (score = 20)
2024-11-28 18:45.00: System package install failed with exit code 1 at command: