(for PR #28026)

2025-06-13 20:37.48: New job: build fstar.2025.06.13, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28026/head (b2b3a3d701217939eefe71b5e458d8b02f455b16)
                              on debian-12-ocaml-5.1/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/28026/head" && git reset --hard b2b3a3d7
git fetch origin master
git merge --no-edit c7269f729a780d8cad2232be10de94ac8da8381e
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-5.1@sha256:b175e333a5efc05edfda5c42f5f3d0718839a8d790cb401eff2d610b79dcf27d
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 fstar.2025.06.13 2025.06.13
RUN opam reinstall fstar.2025.06.13; \
    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" != 'fstar.2025.06.13' && 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-06-13 20:37.48: Using cache hint "ocaml/opam:debian-12-ocaml-5.1@sha256:b175e333a5efc05edfda5c42f5f3d0718839a8d790cb401eff2d610b79dcf27d-fstar.2025.06.13-b2b3a3d701217939eefe71b5e458d8b02f455b16"
2025-06-13 20:37.48: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.1@sha256:b175e333a5efc05edfda5c42f5f3d0718839a8d790cb401eff2d610b79dcf27d)
 (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 fstar.2025.06.13 2025.06.13"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall fstar.2025.06.13;\
             \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\" != 'fstar.2025.06.13' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-06-13 20:37.48: Waiting for resource in pool OCluster
2025-06-13 20:37.48: Waiting for worker…
2025-06-13 20:37.49: Got resource from pool OCluster
Building on asteria.caelum.ci.dev
All commits already cached
HEAD is now at c7269f729a Merge pull request #28025 from xavierleroy/camlidl-1.13
Updating c7269f729a..b2b3a3d701
Fast-forward
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
warning: The last gc run reported the following. Please correct the root cause
and remove .git/gc.log
Automatic cleanup will not be performed until the file is removed.

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

 packages/fstar/fstar.2025.06.13/opam | 52 ++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 packages/fstar/fstar.2025.06.13/opam

(from ocaml/opam:debian-12-ocaml-5.1@sha256:b175e333a5efc05edfda5c42f5f3d0718839a8d790cb401eff2d610b79dcf27d)
2025-06-13 20:38.23 ---> saved as "a842e93b09816be3311d690f513bfcd510416b7c08a4c55a760c59e201535283"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-06-13 20:38.23 ---> saved as "dea4b7b8064503c067d9076ac2c2415a1ed39937f0a3674385c8bcc12c486218"

/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 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-06-13 20:38.52 ---> saved as "8f5aa2e9985e6f9c441f1a8966279ad1ea8f513a104bbcd1871096f576ec3707"

/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=debian os-version=12
# 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.1
# invariant            ["ocaml-base-compiler" {= "5.1.1"}]
# compiler-packages    ocaml-base-compiler.5.1.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.1/lib/ocaml/stublibs:/home/opam/.opam/5.1/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.1.1
2025-06-13 20:38.53 ---> saved as "6849f0994b82870946b6789b279f5f52efe9c05b867d45403d41777ca3829be9"

/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-06-13 20:39.07 ---> saved as "502172a84501cc98c97b1493c179ae5b9428f03239e05ad88966cc203a6860cd"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-13 20:39.13 ---> saved as "b6f701836222d7290d2d2158a0f91db1dc8055b5cf1cae025707497d6ce96a83"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-13 20:39.37 ---> saved as "3bd4bef8f547f3b44a1df554ed06da4cc456a7f3acb2a7deac043708df293f2c"

/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 amd64 Packages.diff/Index [17.3 kB]
- Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-06-13-1410.14-F-2025-06-13-1410.14.pdiff [434 B]
- Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages T-2025-06-13-1410.14-F-2025-06-13-1410.14.pdiff [434 B]
- Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [266 kB]
- Fetched 387 kB in 0s (1166 kB/s)
- Reading package lists...
2025-06-13 20:39.38 ---> saved as "b55f46ce9f5058f8bb3a79898da686afe291e9abb02c4dd1638f5e1fbe380766"

/home/opam: (run (shell "opam pin add -k version -yn fstar.2025.06.13 2025.06.13"))
fstar is now pinned to version 2025.06.13
2025-06-13 20:39.39 ---> saved as "a6e4acbf0a758b22f89947690ff4aa8048a90595affc06dd8e4d007dc558f514"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall fstar.2025.06.13;\
                        \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\" != 'fstar.2025.06.13' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
fstar.2025.06.13 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 33 packages
  - install base-bytes          base                [required by process]
  - install batteries           3.9.0               [required by fstar]
  - install camlp-streams       5.0.1               [required by batteries]
  - install conf-gmp            5                   [required by zarith]
  - install conf-pkg-config     4                   [required by zarith]
  - install cppo                1.8.0               [required by ppx_deriving]
  - install dune                3.19.1              [required by fstar]
  - install fstar               2025.06.13 (pinned)
  - install gen                 1.1                 [required by sedlex]
  - install memtrace            0.2.3               [required by fstar]
  - install menhir              20240715            [required by fstar]
  - install menhirCST           20240715            [required by menhir]
  - install menhirLib           20240715            [required by fstar]
  - install menhirSdk           20240715            [required by menhir]
  - install mtime               2.1.0               [required by fstar]
  - install num                 1.5-1               [required by batteries]
  - install ocaml-compiler-libs v0.12.4             [required by ppxlib]
  - install ocamlbuild          0.16.1              [required by mtime, process]
  - install ocamlfind           1.9.8               [required by process, mtime, batteries, etc.]
  - install pprint              20230830            [required by fstar]
  - install ppx_derivers        1.2.1               [required by ppx_deriving]
  - install ppx_deriving        6.1.0               [required by fstar]
  - install ppx_deriving_yojson 3.10.0              [required by fstar]
  - install ppxlib              0.36.0              [required by fstar]
  - install process             0.2.1               [required by fstar]
  - install sedlex              3.6                 [required by fstar]
  - install seq                 base                [required by gen]
  - install sexplib0            v0.17.0             [required by ppxlib]
  - install stdint              0.7.2               [required by fstar]
  - install stdlib-shims        0.3.0               [required by ppxlib]
  - install topkg               1.0.8               [required by mtime]
  - install yojson              3.0.0               [required by fstar]
  - install zarith              1.14                [required by fstar]

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 ... 18776 files and directories currently installed.)
- Preparing to unpack .../0-libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../1-libgmp-dev_2%3a6.2.1+dfsg1-1.1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../2-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../3-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../4-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../5-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg1-1.1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u10) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved batteries.3.9.0  (cached)
-> retrieved camlp-streams.5.0.1  (cached)
-> retrieved conf-gmp.5  (cached)
-> retrieved cppo.1.8.0  (cached)
-> installed conf-gmp.5
-> installed conf-pkg-config.4
-> retrieved dune.3.19.1  (cached)
-> retrieved fstar.2025.06.13  (https://github.com/FStarLang/FStar/archive/refs/tags/v2025.06.13.tar.gz)
-> retrieved gen.1.1  (cached)
-> retrieved memtrace.0.2.3  (cached)
-> retrieved menhir.20240715, menhirCST.20240715, menhirLib.20240715, menhirSdk.20240715  (cached)
-> retrieved mtime.2.1.0  (cached)
-> retrieved num.1.5-1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlbuild.0.16.1  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved pprint.20230830  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved ppx_deriving.6.1.0  (cached)
-> retrieved ppx_deriving_yojson.3.10.0  (cached)
-> retrieved ppxlib.0.36.0  (cached)
-> retrieved process.0.2.1  (cached)
-> retrieved sedlex.3.6  (cached)
-> retrieved seq.base  (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0  (cached)
-> retrieved stdint.0.7.2  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.0.8  (cached)
-> retrieved yojson.3.0.0  (cached)
-> retrieved zarith.1.14  (cached)
-> installed num.1.5-1
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed ocamlbuild.0.16.1
-> installed process.0.2.1
-> installed zarith.1.14
-> installed topkg.1.0.8
-> installed mtime.2.1.0
-> installed dune.3.19.1
-> installed camlp-streams.5.0.1
-> installed menhirCST.20240715
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> installed pprint.20230830
-> installed menhirSdk.20240715
-> installed gen.1.1
-> installed memtrace.0.2.3
-> installed menhirLib.20240715
-> installed sexplib0.v0.17.0
-> installed stdint.0.7.2
-> installed cppo.1.8.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed yojson.3.0.0
-> installed batteries.3.9.0
-> installed menhir.20240715
-> installed ppxlib.0.36.0
-> installed ppx_deriving.6.1.0
-> installed sedlex.3.6
-> installed ppx_deriving_yojson.3.10.0
-> installed fstar.2025.06.13
Done.

<><> memtrace.0.2.3 installed successfully ><><><><><><><><><><><><><><><><><><>
=> Tracing the current process is not supported on multicore ocaml, so uses of Gc.Memprof will fail. The library is still useful for reading and writing trace files even when Gc.Memprof is not working.

<><> fstar.2025.06.13 installed successfully ><><><><><><><><><><><><><><><><><>
=> F* requires specific versions of Z3 to work correctly, and will refuse to run
   if the version string does not match. You should have z3-4.8.5 and z3-4.13.3
   in your $PATH. For details, see
   https://github.com/FStarLang/FStar/blob/master/INSTALL.md#runtime-dependency-particular-version-of-z3.
# To update the current shell environment, run: eval $(opam env)
2025-06-13 20:45.12 ---> saved as "a3ef6684c7408213f9e15db39d34a1526156a655bac5fcbf986fd7bda4e4662d"
Job succeeded
2025-06-13 20:45.21: Job succeeded