(for PR #27939)

2025-06-03 05:39.13: New job: build frama-clang.0.0.18~beta, using opam 2.0
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27939/head (92fed4945b26c41e9de254fce5536369d0f4a935)
                              on debian-12-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/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-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam
RUN opam init --reinit -ni
RUN 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 depext -u || true
RUN opam pin add -k version -yn frama-clang.0.0.18~beta 0.0.18~beta
RUN opam depext frama-clang.0.0.18~beta && 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:39.13: Using cache hint "ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885-frama-clang.0.0.18~beta-92fed4945b26c41e9de254fce5536369d0f4a935"
2025-06-03 05:39.13: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "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 depext -u || 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 depext frama-clang.0.0.18~beta && 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:39.13: Waiting for resource in pool OCluster
2025-06-03 05:39.13: Waiting for worker…
2025-06-03 05:43.18: Got resource from pool OCluster
Building on x86-bm-c4.sw.ocaml.org
All commits already cached
Updating files:  89% (20636/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-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885)
Unable to find image 'ocaml/opam:debian-12-ocaml-5.3@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885' locally
docker.io/ocaml/opam@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885: Pulling from ocaml/opam
dee0f40c6b91: Pulling fs layer
dee0f40c6b91: Verifying Checksum
dee0f40c6b91: Download complete
dee0f40c6b91: Pull complete
Digest: sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885
Status: Downloaded newer image for ocaml/opam@sha256:0cdf63dc41dff0c0494301e36537dc505c8709574e9f469e1007cdcda10d9885
2025-06-03 05:43.26 ---> using "0d6009597d4cd5c6e2fc2f171b02a7d6489a864d448f83a5732d0b3910a8b64d" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.0 /usr/bin/opam"))
2025-06-03 05:43.27 ---> saved as "58f46c1e95eed2de973a59ce00b98e9e2b252456887fc16762ef5fecc5d5a326"

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
[NOTE] Will configure 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.

[WARNING] Recommended dependencies -- most packages rely on these:
  - m4

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
default (at git+file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-06-03 05:44.46 ---> saved as "f7ffa6e9cc5201a1352216738210480d73c6343faef1d208689c8983b482d517"

/home/opam: (run (shell "opam config report"))
# opam config report
# opam-version      2.0.10 (adc1e1829a2bef5b240746df80341b508290fe3b) 
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=12
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              39
# repositories      1 (version-controlled)
# pinned            1 (version)
# current-switch    5.3
2025-06-03 05:44.48 ---> saved as "fffb0137d1e2161f79e4342a5e5618041faece92203b000d3d0fcba1aa2eb04f"

/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:44.59 ---> saved as "d1856f21e21a5c883fecbbcfd6bb8a15791794e8d7f2db2de742fbcac6bf9c5c"

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-03 05:45.15 ---> saved as "2e7b07f6897b58b41d4d5de29523bf3afa47a6cee9f23498f5cafd604455b57b"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
default (at file:///home/opam/opam-repository): 
    [INFO] opam 2.1 and 2.2 include many performance and security improvements over 2.0; please consider upgrading (https://opam.ocaml.org/doc/Install.html)

2025-06-03 05:45.39 ---> saved as "06327053b0e24435425bf6419eb84595f8ae018205af038a4b5fbc1a60474a59"

/home/opam: (run (network host)
                 (shell "opam depext -u || true"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
# All required OS packages found.
The following command needs to be run through "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 1s (625 kB/s)
Reading package lists...
# OS package update successful
2025-06-03 05:45.42 ---> saved as "3ed395f1cc8706acdad5625761c0f99c8f7c1361c921972f55d10ed676a8cd9e"

/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:45.43 ---> saved as "0fb1baf67be1017410cff86e4199ebb2c31cc55760cce11c1ea1232d60f7e61b"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam depext frama-clang.0.0.18~beta && 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"))
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
[ERROR] No solution for frama-clang.0.0.18~beta: The following dependencies couldn't be met:
          - frama-clang -> frama-c >= 31.0~
              unmet availability conditions: opam-version >= "2.1.0"


Command failed: opam list --readonly --external '--resolve=frama-clang.0.0.18~beta' --color=never returned 20
"/usr/bin/env" "bash" "-c" "opam depext frama-clang.0.0.18~beta && 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:46.13: Job failed: Failed: Build failed
2025-06-03 05:46.13: Log analysis:
2025-06-03 05:46.13: >>> 
[ERROR] No solution for frama-clang.0.0.18~beta: The following dependencies couldn't be met:
 (score = 100)
2025-06-03 05:46.13: [SKIP] Package not available