(for PR #27939)

2025-06-03 05:38.57: New job: build frama-c.31.0~beta, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27939/head (92fed4945b26c41e9de254fce5536369d0f4a935)
                              on debian-12-ocaml-4.13/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/27939/head" && git reset --hard 92fed494
git fetch origin master
git merge --no-edit c037675bed027195b802bf40b1840ece3feb3b2a
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.13@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 frama-c.31.0~beta 31.0~beta
RUN opam reinstall frama-c.31.0~beta; \
    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" != 'frama-c.31.0~beta' && 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-03 05:38.57: Using cache hint "ocaml/opam:debian-12-ocaml-4.13@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce-frama-c.31.0~beta-92fed4945b26c41e9de254fce5536369d0f4a935"
2025-06-03 05:38.57: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.13@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce)
 (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 "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 frama-c.31.0~beta 31.0~beta"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall frama-c.31.0~beta;\
             \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\" != 'frama-c.31.0~beta' && 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-03 05:38.57: Waiting for resource in pool OCluster
2025-06-03 05:38.57: Waiting for worker…
2025-06-03 05:38.57: Got resource from pool OCluster
Building on x86-bm-c3.sw.ocaml.org
All commits already cached
Updating files:  84% (19663/23183)
Updating files:  85% (19706/23183)
Updating files:  86% (19938/23183)
Updating files:  87% (20170/23183)
Updating files:  88% (20402/23183)
Updating files:  89% (20633/23183)
Updating files:  90% (20865/23183)
Updating files:  91% (21097/23183)
Updating files:  92% (21329/23183)
Updating files:  93% (21561/23183)
Updating files:  94% (21793/23183)
Updating files:  95% (22024/23183)
Updating files:  96% (22256/23183)
Updating files:  97% (22488/23183)
Updating files:  98% (22720/23183)
Updating files:  99% (22952/23183)
Updating files: 100% (23183/23183)
Updating files: 100% (23183/23183), done.
HEAD is now at c037675bed Merge pull request #27980 from jmid/conf-freeglut-typo
Merge made by the 'ort' strategy.
 .../frama-c-metacsl/frama-c-metacsl.0.9~beta/opam  |  59 ++++++
 packages/frama-c/frama-c.31.0~beta/opam            | 199 +++++++++++++++++++++
 packages/frama-clang/frama-clang.0.0.18~beta/opam  |  48 +++++
 3 files changed, 306 insertions(+)
 create mode 100644 packages/frama-c-metacsl/frama-c-metacsl.0.9~beta/opam
 create mode 100644 packages/frama-c/frama-c.31.0~beta/opam
 create mode 100644 packages/frama-clang/frama-clang.0.0.18~beta/opam

(from ocaml/opam:debian-12-ocaml-4.13@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.13@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce' locally
docker.io/ocaml/opam@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce: Pulling from ocaml/opam
477aa5d7ab94: Pulling fs layer
477aa5d7ab94: Verifying Checksum
477aa5d7ab94: Download complete
477aa5d7ab94: Pull complete
Digest: sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce
Status: Downloaded newer image for ocaml/opam@sha256:0908702a6abbc0e7ae1874c9ef4b4de98edd78a9c3a877a47ba2202fa90d96ce
2025-06-03 05:40.56 ---> saved as "5cc3a898f184164c82ec4617940a6e303fd9b0771cff3e552593ae4cfbd39ce3"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2025-06-03 05:40.56 ---> saved as "e445e3bd48e1b9b62bdf99b395759c7acc12d431a608dc4aa17edf9a6464ad1a"

/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 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-06-03 05:41.31 ---> saved as "a8726ebff19ceeb16eb9345388853318daefb428f52ca93105649847456ba4d8"

/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.4.0~alpha2
# 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                 39
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.13
# invariant            ["ocaml-base-compiler" {= "4.13.1"}]
# compiler-packages    ocaml-base-compiler.4.13.1, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.13/lib/ocaml/stublibs:/home/opam/.opam/4.13/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.13.1
2025-06-03 05:41.32 ---> saved as "30ecccded0e8bd49e97421a2045ea563386178a174886ee0070f65e28b86546a"

/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-03 05:41.43 ---> saved as "551347992825358799cc4ce86bf2d73dbb9b83a5db88307d692236fc0b7d5caa"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 05:41.57 ---> saved as "1f9782a6a86fef35351e9dca67afe4185e8ec5cd133cec219fed7537a582ded5"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-03 05:42.25 ---> saved as "dcf4918e266f9a6d84be7f7e77b664af9eaca3b7452ff193f4fef4f1e081bc4f"

/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 amd64 Packages [265 kB]
- Fetched 368 kB in 0s (1123 kB/s)
- Reading package lists...
- 
2025-06-03 05:42.27 ---> saved as "76fba1e473aa67d41713302b61b7182baa9df647b8e30ef35681ec7b2c2fc7eb"

/home/opam: (run (shell "opam pin add -k version -yn frama-c.31.0~beta 31.0~beta"))
frama-c is now pinned to version 31.0~beta
2025-06-03 05:42.27 ---> saved as "f5ec572048756611d34c64a2a2557cfdc2800a339ec675fda3a43db0e7db3608"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall frama-c.31.0~beta;\
                        \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\" != 'frama-c.31.0~beta' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
frama-c.31.0~beta is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.13.1
    - frama-c >= 31.0~beta -> ocaml >= 4.14.0 -> ocaml-variants >= 4.14.0~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - frama-c >= 31.0~beta -> ocaml >= 4.14.0 -> ocaml-variants >= 4.14.0~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall frama-c.31.0~beta;
        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" != 'frama-c.31.0~beta' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 20
2025-06-03 05:42.47: Job failed: Failed: Build failed
2025-06-03 05:42.47: Log analysis:
2025-06-03 05:42.47: >>> 
No solution found, exiting
 (score = 100)
2025-06-03 05:42.47: [SKIP] Package not available