(for PR #28275)

2025-07-30 12:38.05: New job: build rocq-devtools.9.1+rc1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28275/head (66e60293e0f8ab4582472efcfcea76dc9977ca83)
                              on debian-12-ocaml-4.14/ppc64le

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28275/head" && git reset --hard 66e60293
git fetch origin master
git merge --no-edit f6368c68f94811eb2e5f105c731f2494a6e6fe04
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141
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 rocq-devtools.9.1+rc1 9.1+rc1
RUN opam reinstall rocq-devtools.9.1+rc1; \
    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" != 'rocq-devtools.9.1+rc1' && 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-07-30 12:38.05: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141-rocq-devtools.9.1+rc1-66e60293e0f8ab4582472efcfcea76dc9977ca83"
2025-07-30 12:38.05: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141)
 (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 rocq-devtools.9.1+rc1 9.1+rc1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall rocq-devtools.9.1+rc1;\
             \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\" != 'rocq-devtools.9.1+rc1' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-07-30 12:38.05: Waiting for resource in pool OCluster
2025-07-30 12:38.05: Waiting for worker…
2025-07-30 12:38.06: Got resource from pool OCluster
Building on scyleia.caelum.ci.dev
All commits already cached
HEAD is now at f6368c68f9 Merge pull request #28271 from jmid/qcheck-lin-ocaml-bound
Updating f6368c68f9..66e60293e0
Fast-forward
 packages/coq-core/coq-core.9.1+rc1/opam           | 50 +++++++++++++++++
 packages/coq-lsp/coq-lsp.0.2.3+9.0/opam           |  3 +-
 packages/coq/coq.9.1+rc1/opam                     | 14 +++++
 packages/coqide-server/coqide-server.9.1+rc1/opam | 42 ++++++++++++++
 packages/rocq-core/rocq-core.9.1+rc1/opam         | 51 +++++++++++++++++
 packages/rocq-devtools/rocq-devtools.9.1+rc1/opam | 48 ++++++++++++++++
 packages/rocq-runtime/rocq-runtime.9.1+rc1/opam   | 67 +++++++++++++++++++++++
 packages/rocqide/rocqide.9.1+rc1/opam             | 45 +++++++++++++++
 8 files changed, 319 insertions(+), 1 deletion(-)
 create mode 100644 packages/coq-core/coq-core.9.1+rc1/opam
 create mode 100644 packages/coq/coq.9.1+rc1/opam
 create mode 100644 packages/coqide-server/coqide-server.9.1+rc1/opam
 create mode 100644 packages/rocq-core/rocq-core.9.1+rc1/opam
 create mode 100644 packages/rocq-devtools/rocq-devtools.9.1+rc1/opam
 create mode 100644 packages/rocq-runtime/rocq-runtime.9.1+rc1/opam
 create mode 100644 packages/rocqide/rocqide.9.1+rc1/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141' locally
docker.io/ocaml/opam@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141: Pulling from ocaml/opam
5cf87be46ab8: Already exists
0f44a78fd01e: Already exists
094a34f4f82c: Already exists
849a5553b457: Already exists
48a1837609ac: Already exists
6adeab216d83: Already exists
9cae429f65ef: Already exists
4798dcc6fcab: Already exists
e33da69b522e: Already exists
b6deccc3e8a0: Already exists
54d7e44517d5: Already exists
125cdcefba82: Already exists
e874dda2377b: Already exists
89f263f387a0: Already exists
9848755dc1c6: Already exists
9848755dc1c6: Already exists
9d3f8499bd9f: Already exists
08b8c5f83b73: Already exists
b07128514c6a: Already exists
22261d96c168: Already exists
4f4fb700ef54: Already exists
5c4392d9a379: Already exists
1efd3e2332dc: Already exists
d9f74fdd0d0d: Already exists
44778c52e340: Already exists
8145ad815248: Already exists
acde6437be2a: Already exists
67ece1138b22: Already exists
920841f98a90: Already exists
98fa797b2598: Already exists
b2386981ff9c: Already exists
ec82933c3115: Already exists
119307fff09b: Already exists
3c800e302d1d: Already exists
3c5347f5eb38: Already exists
54032c63509b: Already exists
c7318abe086d: Already exists
3f7cb5043912: Already exists
2affd10add9c: Already exists
167e0430a699: Pulling fs layer
5efd4974ae56: Pulling fs layer
a2c21c319ddc: Pulling fs layer
e2b019726e8e: Pulling fs layer
e2b019726e8e: Waiting
a2c21c319ddc: Verifying Checksum
a2c21c319ddc: Download complete
5efd4974ae56: Download complete
e2b019726e8e: Verifying Checksum
e2b019726e8e: Download complete
167e0430a699: Verifying Checksum
167e0430a699: Download complete
167e0430a699: Pull complete
5efd4974ae56: Pull complete
a2c21c319ddc: Pull complete
e2b019726e8e: Pull complete
Digest: sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141
Status: Downloaded newer image for ocaml/opam@sha256:154e2aba2316707e89786362446c5d9cba67b0bf6c69891a5c37f6cc7dba7141
2025-07-30 12:38.38 ---> using "8aa3c526c4738ff3f83e7b7be3f7ce54840266186d62c3bdc6daeced5b824d53" 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-07-30 12:38.38 ---> using "d547ebc9013e55087dd41f01a5741a48da2c9ae9b4371fda5051928cf6931925" 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] Initialised
2025-07-30 12:38.38 ---> using "8dbd0da54d55668ebec94d82a67fe02216556ff9cd17c996921bc3a54c8249ce" 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=ppc64 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                 175
# repositories         1 (version-controlled)
# 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-07-30 12:38.38 ---> using "cf8dba60393e87228979b9693bca104a37b8c6980f101e9f8991f7f788bbcf49" 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-07-30 12:38.38 ---> using "ee6ad9d4846fb42db121dd2991a145b631d1ba5914024966edec9110bb7be03d" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-07-30 12:38.41 ---> saved as "8f1825a6e84b45ebf17ba80925733f77d2b5862964fa1cb837cbd807f6d590b7"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-07-30 12:39.00 ---> saved as "d13a4d2e6525f013122dde27f9be4fde88d72bef9d121a3617a143f40a2c6e5b"

/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 bookworm-updates/main ppc64el Packages.diff/Index [18.5 kB]
- Get:5 http://deb.debian.org/debian bookworm-updates/main ppc64el Packages T-2025-07-29-2006.47-F-2025-07-29-2006.47.pdiff [5082 B]
- Get:5 http://deb.debian.org/debian bookworm-updates/main ppc64el Packages T-2025-07-29-2006.47-F-2025-07-29-2006.47.pdiff [5082 B]
- Get:6 http://deb.debian.org/debian-security bookworm-security/main ppc64el Packages [260 kB]
- Fetched 387 kB in 0s (1083 kB/s)
- Reading package lists...
- 
2025-07-30 12:39.01 ---> saved as "858528964279deaadd8e07686ae9e213c1fe35d5f6f5a7789f65d4f24ea9da15"

/home/opam: (run (shell "opam pin add -k version -yn rocq-devtools.9.1+rc1 9.1+rc1"))
rocq-devtools is now pinned to version 9.1+rc1
2025-07-30 12:39.02 ---> saved as "809c8390ff56c1f79c99327cfaded8141072cd8a3d22a48ae469fabc881445fb"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall rocq-devtools.9.1+rc1;\
                        \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\" != 'rocq-devtools.9.1+rc1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
rocq-devtools.9.1+rc1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 11 packages
  - install camlzip             1.13             [required by rocq-devtools]
  - install conf-gmp            5                [required by zarith]
  - install conf-linux-libc-dev 0                [required by rocq-runtime]
  - install conf-pkg-config     4                [required by conf-zlib, zarith]
  - install conf-zlib           1                [required by camlzip]
  - install dune                3.19.1           [required by rocq-devtools]
  - install ocamlfind           1.9.8            [required by camlzip, rocq-runtime]
  - install rocq-devtools       9.1+rc1 (pinned)
  - install rocq-runtime        9.1+rc1          [required by rocq-devtools]
  - install yojson              3.0.0            [required by rocq-devtools]
  - install zarith              1.14             [required by rocq-runtime]

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

<><> 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" "pkg-config" "zlib1g-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:ppc64el.
- (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 ... 18689 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_ppc64el.deb ...
- Unpacking libgmpxx4ldbl:ppc64el (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:ppc64el.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_ppc64el.deb ...
- Unpacking libgmp-dev:ppc64el (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libpkgconf3:ppc64el.
- Preparing to unpack .../2-libpkgconf3_1.8.1-1_ppc64el.deb ...
- Unpacking libpkgconf3:ppc64el (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-1_ppc64el.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:ppc64el.
- Preparing to unpack .../4-pkgconf_1.8.1-1_ppc64el.deb ...
- Unpacking pkgconf:ppc64el (1.8.1-1) ...
- Selecting previously unselected package pkg-config:ppc64el.
- Preparing to unpack .../5-pkg-config_1.8.1-1_ppc64el.deb ...
- Unpacking pkg-config:ppc64el (1.8.1-1) ...
- Selecting previously unselected package zlib1g-dev:ppc64el.
- Preparing to unpack .../6-zlib1g-dev_1%3a1.2.13.dfsg-1_ppc64el.deb ...
- Unpacking zlib1g-dev:ppc64el (1:1.2.13.dfsg-1) ...
- Setting up libpkgconf3:ppc64el (1.8.1-1) ...
- Setting up libgmpxx4ldbl:ppc64el (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up zlib1g-dev:ppc64el (1:1.2.13.dfsg-1) ...
- Setting up libgmp-dev:ppc64el (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf:ppc64el (1.8.1-1) ...
- Setting up pkg-config:ppc64el (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved camlzip.1.13  (cached)
-> retrieved conf-gmp.5  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> installed conf-linux-libc-dev.0
-> installed conf-zlib.1
-> retrieved dune.3.19.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved rocq-devtools.9.1+rc1, rocq-runtime.9.1+rc1  (cached)
-> retrieved yojson.3.0.0  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed camlzip.1.13
-> installed zarith.1.14
-> installed dune.3.19.1
-> installed yojson.3.0.0
-> installed rocq-runtime.9.1+rc1
-> installed rocq-devtools.9.1+rc1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-30 12:40.32 ---> saved as "9f2c0c423f340a4da3299d71ca84d3a488fa07e204f68d245c2522f0f725528e"
Job succeeded
2025-07-30 12:40.37: Job succeeded