(for PR #28275)

2025-07-30 12:38.03: New job: build coq-core.9.1+rc1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28275/head (66e60293e0f8ab4582472efcfcea76dc9977ca83)
                              on ubuntu-24.04-ocaml-5.3/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/28275/head" && git reset --hard 66e60293
git fetch origin master
git merge --no-edit f6368c68f94811eb2e5f105c731f2494a6e6fe04
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650
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 coq-core.9.1+rc1 9.1+rc1
RUN opam reinstall coq-core.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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'coq-core.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.03: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650-coq-core.9.1+rc1-66e60293e0f8ab4582472efcfcea76dc9977ca83"
2025-07-30 12:38.03: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650)
 (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 coq-core.9.1+rc1 9.1+rc1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall coq-core.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 \"\\\"ubuntu-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'coq-core.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.03: Waiting for resource in pool OCluster
2025-07-30 12:38.06: Waiting for worker…
2025-07-30 12:38.13: Got resource from pool OCluster
Building on doris.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:ubuntu-24.04-ocaml-5.3@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650)
Unable to find image 'ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650' locally
docker.io/ocaml/opam@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650: Pulling from ocaml/opam
7023aa702668: Pulling fs layer
a982bf79872c: Pulling fs layer
185e1a14d769: Pulling fs layer
4e21e9e9c125: Pulling fs layer
f81b2c53d3a3: Pulling fs layer
2a668214cbf6: Pulling fs layer
22bca89cf583: Pulling fs layer
1883b6a2cbe9: Pulling fs layer
4e21e9e9c125: Waiting
2a668214cbf6: Waiting
f81b2c53d3a3: Waiting
22bca89cf583: Waiting
185e1a14d769: Verifying Checksum
185e1a14d769: Download complete
a982bf79872c: Verifying Checksum
a982bf79872c: Download complete
4e21e9e9c125: Verifying Checksum
4e21e9e9c125: Download complete
2a668214cbf6: Verifying Checksum
2a668214cbf6: Download complete
22bca89cf583: Download complete
1883b6a2cbe9: Download complete
f81b2c53d3a3: Verifying Checksum
f81b2c53d3a3: Download complete
7023aa702668: Verifying Checksum
7023aa702668: Download complete
7023aa702668: Pull complete
a982bf79872c: Pull complete
185e1a14d769: Pull complete
4e21e9e9c125: Pull complete
f81b2c53d3a3: Pull complete
2a668214cbf6: Pull complete
22bca89cf583: Pull complete
1883b6a2cbe9: Pull complete
Digest: sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650
Status: Downloaded newer image for ocaml/opam@sha256:cb361ff4dd1fa70eab6465dab8bb6b0de1adcbb9a013e0268ff603c617a15650
2025-07-30 12:40.09 ---> using "eef66e51adef8bd26b16d9b1345295618810a15d53714365d587e2c9944674d4" 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:40.09 ---> using "1d7fd4b3be6cedae9eb03534849007076770a9e978654cf62049965d19df350c" 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:40.09 ---> using "a61750168d17b731e5098ec99b4584e013d700cbf6d282148bb25e68ab376a45" 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=x86_64 os=linux os-distribution=ubuntu os-version=24.04
# 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.3
# invariant            ["ocaml-base-compiler" {= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-07-30 12:40.09 ---> using "f666f13203e34abbf4a8f1c0c7246e7f818f53d7b0ba3602d1267e26fa367020" 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:40.09 ---> using "6de8d7d0e8907cee60067c3c55b24974617ba0f3aa096481c98efe1b8faeeb90" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-07-30 12:40.10 ---> using "164086f092220d8818be6bb53c4dc275cd22ac1c8288c35033819425acde51e2" from cache

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

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
- Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
- Get:3 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
- Get:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
- Get:5 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1968 kB]
- Get:6 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1135 kB]
- Get:7 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1324 kB]
- Get:8 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1447 kB]
- Get:9 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [2078 kB]
- Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1660 kB]
- Fetched 9990 kB in 1s (16.0 MB/s)
- Reading package lists...
- 
2025-07-30 12:40.28 ---> saved as "b57802912d24acb09d858b09af772e7d3a00dd5128672e7593da5c2f064e27ac"

/home/opam: (run (shell "opam pin add -k version -yn coq-core.9.1+rc1 9.1+rc1"))
coq-core is now pinned to version 9.1+rc1
2025-07-30 12:40.29 ---> saved as "727b55ebfe77e380f8c6ef110dc7bab989bce31f2694f7d3c6bc144fc34731f3"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall coq-core.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 \"\\\"ubuntu-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'coq-core.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"))
coq-core.9.1+rc1 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 8 packages
  - install conf-gmp            5                [required by zarith]
  - install conf-linux-libc-dev 0                [required by rocq-runtime]
  - install conf-pkg-config     4                [required by zarith]
  - install coq-core            9.1+rc1 (pinned)
  - install dune                3.19.1           [required by coq-core]
  - install ocamlfind           1.9.8            [required by rocq-runtime]
  - install rocq-runtime        9.1+rc1          [required by coq-core]
  - install zarith              1.14             [required by rocq-runtime]

The following system packages will first need to be installed:
    libgmp-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" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- (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 ... 16365 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.3.0+dfsg-2ubuntu6.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-2ubuntu6.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.3.0+dfsg-2ubuntu6.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.3.0+dfsg-2ubuntu6.1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../2-libpkgconf3_1.8.1-2build1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-2build1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-2build1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-2build1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../4-pkgconf_1.8.1-2build1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-2build1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../5-pkg-config_1.8.1-2build1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-2build1) ...
- Setting up libpkgconf3:amd64 (1.8.1-2build1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.3.0+dfsg-2ubuntu6.1) ...
- Setting up pkgconf-bin (1.8.1-2build1) ...
- Setting up libgmp-dev:amd64 (2:6.3.0+dfsg-2ubuntu6.1) ...
- Setting up pkgconf:amd64 (1.8.1-2build1) ...
- Setting up pkg-config:amd64 (1.8.1-2build1) ...
- Processing triggers for libc-bin (2.39-0ubuntu8.5) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved conf-gmp.5  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> installed conf-linux-libc-dev.0
-> retrieved coq-core.9.1+rc1, rocq-runtime.9.1+rc1  (cached)
-> retrieved dune.3.19.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed zarith.1.14
-> installed dune.3.19.1
-> installed rocq-runtime.9.1+rc1
-> installed coq-core.9.1+rc1
Done.

<><> coq-core.9.1+rc1 installed successfully ><><><><><><><><><><><><><><><><><>
=> Coq has been renamed to The Rocq Prover, see https://rocq-prover.org/refman/changes.html#porting-to-the-rocq-prover for details. 
      This package provides compatibility binaries to ease the transition to the new rocq binary.
# To update the current shell environment, run: eval $(opam env)
2025-07-30 12:41.41 ---> saved as "36ce67a1b0aeb2ee310d8c480355d8f66cb84a3f51952ff8378750eaefabd7ef"
Job succeeded
2025-07-30 12:41.48: Job succeeded