(for PR #26912)

2025-04-03 11:17.29: New job: build mlgmpidl.1.2.15-1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26912/head (8f78ac65ee262835b31990fcdf159b4ccdca7c5f)
                              on debian-12-ocaml-4.14/s390x

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/26912/head" && git reset --hard 8f78ac65
git fetch origin master
git merge --no-edit 020115166033f8d18e08028df022bfc4916eac6e
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:199a8ea3d42cfeb9916bc8f8639b45ce7aaf61b44e22073d14e39c1a048aa179
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /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 mlgmpidl.1.2.15-1 1.2.15-1
RUN opam reinstall mlgmpidl.1.2.15-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 "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'mlgmpidl.1.2.15-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-04-03 11:17.29: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:199a8ea3d42cfeb9916bc8f8639b45ce7aaf61b44e22073d14e39c1a048aa179-mlgmpidl.1.2.15-1-8f78ac65ee262835b31990fcdf159b4ccdca7c5f"
2025-04-03 11:17.29: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:199a8ea3d42cfeb9916bc8f8639b45ce7aaf61b44e22073d14e39c1a048aa179)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /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 mlgmpidl.1.2.15-1 1.2.15-1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall mlgmpidl.1.2.15-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 \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'mlgmpidl.1.2.15-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-04-03 11:17.29: Waiting for resource in pool OCluster
2025-04-03 11:17.30: Waiting for worker…
2025-04-03 11:19.57: Got resource from pool OCluster
Building on s390x-worker-02.marist.ci.dev
HEAD is now at 5945fade66 Package smtml.0.6.2
HEAD is now at 0201151660 Merge pull request #27703 from codinuum/diffast-20250403a
Merge made by the 'ort' strategy.
 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam | 41 ++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 packages/mlgmpidl/mlgmpidl.1.2.15-1/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:199a8ea3d42cfeb9916bc8f8639b45ce7aaf61b44e22073d14e39c1a048aa179)
2025-04-03 11:20.01 ---> using "2c92d0afa6ae01514a49807a654dac177b7472397065e5e2e98288c8ca8d6064" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-03 11:20.01 ---> using "dcf0ba99207be08581891a91895b0f6dbf231524164bafa42537ce57a84a2385" 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 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2025-04-03 11:20.01 ---> using "d9a5f04559b64bc0986ceecf70bbd263f88cc0e350dffd8b6dc65eb1ae729c12" 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.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=s390x os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         1 (local)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-04-03 11:20.01 ---> using "10dd4d46ae6d4fa855e6bf40ec93f4c6df7ceb7d2004c056ff7d8505d68a8c9a" 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-04-03 11:20.01 ---> using "f93f273c72cf2ad6f39f4f1c04d5a5bdb7478c9323489dc7204f63b7ff928800" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-03 11:20.15 ---> saved as "5ca30b931f7cef701cf1758e9727a8e858a458b3f5ae7a0e605a4e9d93b1bc1c"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-03 11:21.44 ---> saved as "518371c1fc3c51953cd6db4b48133b5365a4195e9f0c51c48c9ddf4bc940c0c8"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Get:4 http://deb.debian.org/debian-security bookworm-security/main s390x Packages [216 kB]
- Fetched 320 kB in 1s (419 kB/s)
- Reading package lists...
- 
2025-04-03 11:21.52 ---> saved as "d355c9eb88dfce7fd0d8485250f15deedc804bdc7c2bc2f1b7b36d8db44f4f27"

/home/opam: (run (shell "opam pin add -k version -yn mlgmpidl.1.2.15-1 1.2.15-1"))
mlgmpidl is now pinned to version 1.2.15-1
2025-04-03 11:22.02 ---> saved as "c4185f028f1e5ac07eb1d747ada467c95bf789a5e69a38fa001896ff88110322"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall mlgmpidl.1.2.15-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 \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'mlgmpidl.1.2.15-1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
mlgmpidl.1.2.15-1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 9 packages
  - install bigarray-compat 1.1.0             [required by mlgmpidl]
  - install camlidl         1.12              [required by mlgmpidl]
  - install conf-gmp        4                 [required by mlgmpidl]
  - install conf-mpfr       3                 [required by mlgmpidl]
  - install conf-perl       2                 [required by mlgmpidl]
  - install conf-pkg-config 4                 [required by conf-mpfr]
  - install dune            3.17.2            [required by bigarray-compat]
  - install mlgmpidl        1.2.15-1 (pinned)
  - install ocamlfind       1.9.8             [required by mlgmpidl]

The following system packages will first need to be installed:
    libgmp-dev libmpfr-dev pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get 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 "apt-get" "install" "-qq" "-yy" "libgmp-dev" "libmpfr-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:s390x.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
- (Reading database ... 100%
(Reading database ... 18520 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_s390x.deb ...
- Unpacking libgmpxx4ldbl:s390x (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:s390x.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_s390x.deb ...
- Unpacking libgmp-dev:s390x (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libmpfr-dev:s390x.
- Preparing to unpack .../2-libmpfr-dev_4.2.0-1_s390x.deb ...
- Unpacking libmpfr-dev:s390x (4.2.0-1) ...
- Selecting previously unselected package libpkgconf3:s390x.
- Preparing to unpack .../3-libpkgconf3_1.8.1-1_s390x.deb ...
- Unpacking libpkgconf3:s390x (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../4-pkgconf-bin_1.8.1-1_s390x.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:s390x.
- Preparing to unpack .../5-pkgconf_1.8.1-1_s390x.deb ...
- Unpacking pkgconf:s390x (1.8.1-1) ...
- Selecting previously unselected package pkg-config:s390x.
- Preparing to unpack .../6-pkg-config_1.8.1-1_s390x.deb ...
- Unpacking pkg-config:s390x (1.8.1-1) ...
- Setting up libpkgconf3:s390x (1.8.1-1) ...
- Setting up libgmpxx4ldbl:s390x (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libgmp-dev:s390x (2:6.2.1+dfsg1-1.1) ...
- Setting up libmpfr-dev:s390x (4.2.0-1) ...
- Setting up pkgconf:s390x (1.8.1-1) ...
- Setting up pkg-config:s390x (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved camlidl.1.12  (cached)
-> retrieved conf-gmp.4  (cached)
-> retrieved conf-mpfr.3  (cached)
-> installed conf-perl.2
-> installed conf-pkg-config.4
-> retrieved dune.3.17.2  (cached)
-> installed conf-gmp.4
-> installed camlidl.1.12
-> retrieved mlgmpidl.1.2.15-1  (cached)
-> installed conf-mpfr.3
-> retrieved ocamlfind.1.9.8  (cached)
-> installed ocamlfind.1.9.8
-> installed dune.3.17.2
-> installed bigarray-compat.1.1.0
-> installed mlgmpidl.1.2.15-1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-03 11:23.01 ---> saved as "2d58d6d352597305048d2406205e142ca216a72e6d929b8a72116298d5563e70"
Job succeeded
2025-04-03 11:23.05: Job succeeded