(for PR #27939)

2025-06-10 01:03.56: New job: build frama-clang.0.0.18~beta, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27939/head (92fed4945b26c41e9de254fce5536369d0f4a935)
                              on opensuse-tumbleweed-ocaml-4.14/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 6db96b377f993aa0c7ffb5c06737929e583f3305
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0
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 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 "\"opensuse-tumbleweed\""; 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-10 01:03.56: Using cache hint "ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0-frama-clang.0.0.18~beta-92fed4945b26c41e9de254fce5536369d0f4a935"
2025-06-10 01:03.56: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0)
 (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 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 \"\\\"opensuse-tumbleweed\\\"\"; 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-10 01:03.56: Waiting for resource in pool OCluster
2025-06-10 01:03.56: Waiting for worker…
2025-06-10 01:03.56: Got resource from pool OCluster
Building on odawa.caelum.ci.dev
All commits already cached
HEAD is now at 6db96b377f Merge pull request #28003 from punchagan/opam-publish-opam-ci-check-lint.0.1
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:opensuse-tumbleweed-ocaml-4.14@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0)
Unable to find image 'ocaml/opam:opensuse-tumbleweed-ocaml-4.14@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0' locally
docker.io/ocaml/opam@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0: Pulling from ocaml/opam
780273ccb6b6: Already exists
242231402fb3: Pulling fs layer
dc4205940b3c: Pulling fs layer
dfa9d1a8c057: Pulling fs layer
6a7e7869a5ee: Pulling fs layer
6a7e7869a5ee: Waiting
dc4205940b3c: Verifying Checksum
dc4205940b3c: Download complete
dfa9d1a8c057: Verifying Checksum
dfa9d1a8c057: Download complete
6a7e7869a5ee: Download complete
242231402fb3: Verifying Checksum
242231402fb3: Download complete
242231402fb3: Pull complete
dc4205940b3c: Pull complete
dfa9d1a8c057: Pull complete
6a7e7869a5ee: Pull complete
Digest: sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0
Status: Downloaded newer image for ocaml/opam@sha256:4da9b642bfc67ef1af8f82503dea276ff61e55b651969e8917898ec80d066fa0
2025-06-10 01:04.30 ---> using "0ca84ec15a409461e6153b57c6f76e1571ecc7f689a7cac16b7f2ac0a6b42d6f" 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-06-10 01:04.30 ---> using "5c66a3020febe9dddabd9fff69632a394dae989e9eda2ef80f9f13236cec218e" 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
[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-10 01:04.30 ---> using "dd5d41affb256a24aff6028a60c55d273d2e21f69fb4072e30f79a7febdc303b" 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=opensuse-tumbleweed os-version=20250605
# 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       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-06-10 01:04.30 ---> using "f99fd27a3d5378cb79b3338d12399ed6337a1ea643bd964821d60629743dade0" 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-06-10 01:04.30 ---> using "646689344b50892da53c150da9762e0fdf17f0bb50cce1eff08fb2c40d62ade4" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-10 01:04.37 ---> saved as "7fb4975e34dd9a7bad344a610be786afbf01723c4c67d5db4fee3a650f27dd77"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-10 01:04.57 ---> saved as "9133a5100168e1835c4bc147fbd38f9387c8d67da85ff26a45140597930c4067"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Repository 'openSUSE-Tumbleweed-Update' is up to date.
- Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [.
- ..
- Looking for gpg keys in repository openSUSE-Tumbleweed-Non-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/non-oss/repodata/repomd.xml.key
- .........
- done]
- Building repository 'openSUSE-Tumbleweed-Non-Oss' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [....
- Looking for gpg keys in repository openSUSE-Tumbleweed-Oss.
-   gpgkey=http://download.opensuse.org/tumbleweed/repo/oss/repodata/repomd.xml.key
- .
- .......
- .......
- .........
- .........
- ..........
- ...........
- ..........
- .........
- .........
- ..........
- .........
- ..........
- ........
- .........
- .........
- ........
- ..done]
- Building repository 'openSUSE-Tumbleweed-Oss' cache [..
- ..done]
- All repositories have been refreshed.
2025-06-10 01:05.25 ---> saved as "20dd8dda30c7da90081b72825200b5c016f0ffb0ca5a7ed30d83333cd45dfb40"

/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-10 01:05.26 ---> saved as "413f3005e2223f3142ff2316d067a43f80b8cb64740a3626620bc1056487bc17"

/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 \"\\\"opensuse-tumbleweed\\\"\"; 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
  * Missing dependency:
    - frama-clang >= 0.0.18~beta -> conf-libclang >= 11.0.0
    depends on the unavailable system package 'llvm-clang-devel'. Use `--no-depexts' to attempt installation anyway, or it is possible that a depext package name in the opam file is incorrect.

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 "\"opensuse-tumbleweed\""; 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-10 01:05.38: Job failed: Failed: Build failed
2025-06-10 01:05.38: Log analysis:
2025-06-10 01:05.38: >>> 
No solution found, exiting
 (score = 100)
2025-06-10 01:05.38: [SKIP] Package not available