(for PR #27939)

2025-06-03 05:38.54: New job: build frama-clang.0.0.18~beta, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27939/head (92fed4945b26c41e9de254fce5536369d0f4a935)
                              on debian-12-ocaml-4.08/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.08@sha256:caa944a8381a192bd2413b3f0423be27d3dfc5d7430e42e478edd0fff104c75d
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-clang.0.0.18~beta 0.0.18~beta
RUN opam reinstall frama-clang.0.0.18~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-clang.0.0.18~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.54: Using cache hint "ocaml/opam:debian-12-ocaml-4.08@sha256:caa944a8381a192bd2413b3f0423be27d3dfc5d7430e42e478edd0fff104c75d-frama-clang.0.0.18~beta-92fed4945b26c41e9de254fce5536369d0f4a935"
2025-06-03 05:38.54: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.08@sha256:caa944a8381a192bd2413b3f0423be27d3dfc5d7430e42e478edd0fff104c75d)
 (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-clang.0.0.18~beta 0.0.18~beta"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall frama-clang.0.0.18~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-clang.0.0.18~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.54: Waiting for resource in pool OCluster
2025-06-03 05:38.54: Waiting for worker…
2025-06-03 05:38.54: Got resource from pool OCluster
Building on x86-bm-c2.sw.ocaml.org
All commits already cached
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.08@sha256:caa944a8381a192bd2413b3f0423be27d3dfc5d7430e42e478edd0fff104c75d)
2025-06-03 05:39.47 ---> saved as "a5bd2a18866c939b596dfe3c84dec6f082eab800d2eafd47ffdc2db7fa3d4f6c"

/: (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:39.47 ---> saved as "968ae340cc796c4cb4f3ddc5c1e26fd29ea03704d48bb98864b6e3f3444283c8"

/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.

Continue? [Y/n] y
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.

Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-03 05:40.17 ---> saved as "d0d3ae462893a2a8a8b5ad45fcc2bc28928a4d0787356e6dffd216c4c42a9af3"

/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.08
# invariant            ["ocaml-base-compiler" {= "4.08.1"}]
# compiler-packages    ocaml-base-compiler.4.08.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.08/lib/ocaml/stublibs:/home/opam/.opam/4.08/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.08.1
2025-06-03 05:40.19 ---> saved as "9d2045908da81eb8c742b43e75fe2b04d962f7e894165b9bc8a08b164d612df1"

/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:40.26 ---> saved as "eada3f723a8a44cb75320055f69d2f5da393bbd608e77679b6c6362f7e6ebee7"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 05:40.37 ---> saved as "5006d8398836bdc71e46168f6b46084528f782375fe5fe54d0a602e8d0c2ace9"

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

/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 (1358 kB/s)
- Reading package lists...
2025-06-03 05:41.01 ---> saved as "c007e3ca841df79964120392d8ef6cd304a1ba6da69525da08395073efa36f48"

/home/opam: (run (shell "opam pin add -k version -yn frama-clang.0.0.18~beta 0.0.18~beta"))
frama-clang is now pinned to version 0.0.18~beta
2025-06-03 05:41.01 ---> saved as "fa1b194cb9ecdda3fff6e7791722d58f8533a6b4f89d8c216402afa6c07cc826"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall frama-clang.0.0.18~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-clang.0.0.18~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-clang.0.0.18~beta is not installed. Install it? [Y/n] y
  * Incompatible packages:
    - (invariant) -> ocaml-base-compiler = 4.08.1
    - frama-clang >= 0.0.18~beta -> frama-c >= 31.0~ -> ocaml >= 4.14.0 -> ocaml-variants < 5.5.1~
    You can temporarily relax the switch invariant with `--update-invariant'
  * Missing dependency:
    - frama-clang >= 0.0.18~beta -> frama-c >= 31.0~ -> ocaml >= 4.14.0 -> ocaml-variants < 4.14.1~ -> xenbigarray
    unknown package
  * Missing dependency:
    - frama-clang >= 0.0.18~beta -> frama-c >= 31.0~ -> ocaml >= 4.14.0 -> ocaml-variants < 4.14.1~ -> ocaml-beta
    unmet availability conditions: 'enable-ocaml-beta-repository'
  * Missing dependency:
    - frama-clang >= 0.0.18~beta -> frama-c >= 31.0~ -> ocaml >= 4.14.0 -> ocaml-variants < 5.2.1~ -> system-msvc
    unmet availability conditions: 'os = "win32"'

No solution found, exiting
"/usr/bin/env" "bash" "-c" "opam reinstall frama-clang.0.0.18~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-clang.0.0.18~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:41.35: Job failed: Failed: Build failed
2025-06-03 05:41.35: Log analysis:
2025-06-03 05:41.35: >>> 
No solution found, exiting
 (score = 100)
2025-06-03 05:41.35: [SKIP] Package not available