(for PR #26907)

2024-11-18 13:43.59: New job: build apron.v0.9.14, using opam dev
                              from https://github.com/ocaml/opam-repository.git#refs/pull/26907/head (b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe)
                              on opensuse-tumbleweed-ocaml-5.2/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/26907/head" && git reset --hard b6229f0d
git fetch origin master
git merge --no-edit a6cd5e92975350b992cb58b4351df6fceefc8144
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMSOLVERTIMEOUT="1000"
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 apron.v0.9.14 v0.9.14
RUN opam reinstall apron.v0.9.14; \
    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" != 'apron.v0.9.14' && 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 .

2024-11-18 13:43.59: Using cache hint "ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43-apron.v0.9.14-b6229f0d14497cac47fc1ccd0ef31dd6c590ddfe"
2024-11-18 13:43.59: Using OBuilder spec:
((from ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43)
 (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 "uname -rs && opam exec -- ocaml -version && opam --version"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMSOLVERTIMEOUT 1000)
 (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 apron.v0.9.14 v0.9.14"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall apron.v0.9.14;\
             \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\" != 'apron.v0.9.14' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2024-11-18 13:43.59: Waiting for resource in pool OCluster
2024-11-18 13:44.01: Waiting for worker…
2024-11-18 13:49.45: Got resource from pool OCluster
Building on x86-bm-c3.sw.ocaml.org
All commits already cached
Updating files:  60% (19610/32679)
Updating files:  61% (19935/32679)
Updating files:  62% (20261/32679)
Updating files:  63% (20588/32679)
Updating files:  64% (20915/32679)
Updating files:  65% (21242/32679)
Updating files:  66% (21569/32679)
Updating files:  67% (21895/32679)
Updating files:  68% (22222/32679)
Updating files:  69% (22549/32679)
Updating files:  70% (22876/32679)
Updating files:  71% (23203/32679)
Updating files:  72% (23529/32679)
Updating files:  73% (23856/32679)
Updating files:  74% (24183/32679)
Updating files:  75% (24510/32679)
Updating files:  76% (24837/32679)
Updating files:  77% (25163/32679)
Updating files:  78% (25490/32679)
Updating files:  79% (25817/32679)
Updating files:  80% (26144/32679)
Updating files:  81% (26470/32679)
Updating files:  82% (26797/32679)
Updating files:  83% (27124/32679)
Updating files:  84% (27451/32679)
Updating files:  85% (27778/32679)
Updating files:  86% (28104/32679)
Updating files:  87% (28431/32679)
Updating files:  88% (28758/32679)
Updating files:  89% (29085/32679)
Updating files:  90% (29412/32679)
Updating files:  91% (29738/32679)
Updating files:  92% (30065/32679)
Updating files:  93% (30392/32679)
Updating files:  94% (30719/32679)
Updating files:  95% (31046/32679)
Updating files:  96% (31372/32679)
Updating files:  97% (31699/32679)
Updating files:  98% (32026/32679)
Updating files:  99% (32353/32679)
Updating files: 100% (32679/32679)
Updating files: 100% (32679/32679), done.
HEAD is now at a6cd5e9297 Merge pull request #26892 from recoules/release-bitwuzla-cxx-0.6.1
Merge made by the 'ort' strategy.
 packages/apron/apron.0.9.14/opam  | 5 ++++-
 packages/apron/apron.v0.9.12/opam | 5 ++++-
 packages/apron/apron.v0.9.14/opam | 8 +++++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

(from ocaml/opam:opensuse-tumbleweed-ocaml-5.2@sha256:f6334d99765d97d53bc6dc8f62eccfb35232ba1e89a468a6aad53007171aec43)
2024-11-18 13:50.26 ---> using "b9dd1fdbc62d4eab1265407a673aa2b8261f8d9615e80676c10b1c7ec4c3f7b4" from cache

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2024-11-18 13:50.26 ---> using "e8accfc0d0170c2f0ecd981fbddd5a72a4e0a71e671854c88bb03537b75bf41a" 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 31 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=31 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from file:///home/opam/opam-repository
2024-11-18 13:50.26 ---> using "5c49d52d52563215b9ab1ce46ef45b40585259e997de37c36f222346ee1cef23" from cache

/home/opam: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Linux 5.15.0-125-generic
The OCaml toplevel, version 5.2.0
2.4.0~alpha1~dev
2024-11-18 13:50.26 ---> using "ea80e45ff05b680a8abd03dc34862b099d9947cc69c2e937c1f6bcd1d74b8426" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMSOLVERTIMEOUT 1000)

/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/"))
2024-11-18 13:50.26 ---> using "bcf49991e38db35b02f28ca862474c6260e0684a8d8ea20e184fab28c42cbf2e" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2024-11-18 13:50.28 ---> using "5493c1406a3219ecf9c16220af6536e00f671429d79753dcc94e1a6f03b96743" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2024-11-18 13:51.24 ---> saved as "3ade904cbdb9b73f08e1babbfe1daf80c4044212d7671e58f74c24bfc7c2dcf5"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'openSUSE-Tumbleweed-Non-Oss' metadata [.........done]
- Building repository 'openSUSE-Tumbleweed-Non-Oss' cache [....done]
- Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [.
- ...........
- ..........
- ...done]
- Building repository 'openSUSE-Tumbleweed-Oss' cache [..
- ..done]
- Repository 'openSUSE-Tumbleweed-Update' is up to date.
- All repositories have been refreshed.
2024-11-18 13:51.35 ---> saved as "3cfbfd7341d9d014d8321cf5b0bc3189a9d4a06fd3ac16231245103bc28cf11c"

/home/opam: (run (shell "opam pin add -k version -yn apron.v0.9.14 v0.9.14"))
apron is now pinned to version v0.9.14
2024-11-18 13:51.36 ---> saved as "dfbec4a9d693322dc2529f4c2b124749a69a049ce19838e8ab98e81060365f5a"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall apron.v0.9.14;\
                        \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\" != 'apron.v0.9.14' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
apron.v0.9.14 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 12 packages
  - install apron           v0.9.14 (pinned)
  - install bigarray-compat 1.1.0            [required by mlgmpidl]
  - install camlidl         1.12             [required by apron]
  - install conf-findutils  1                [required by ez-conf-lib]
  - install conf-gmp-paths  1                [required by mlgmpidl]
  - install conf-mpfr-paths 1                [required by mlgmpidl]
  - install conf-perl       2                [required by apron]
  - install dune            3.16.1           [required by bigarray-compat]
  - install ez-conf-lib     2                [required by conf-gmp-paths, conf-mpfr-paths]
  - install mlgmpidl        1.3.0            [required by apron]
  - install ocamlbuild      0.15.0           [required by apron]
  - install ocamlfind       1.9.6            [required by apron]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved apron.v0.9.14  (cached)
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved camlidl.1.12  (cached)
-> retrieved conf-gmp-paths.1  (cached)
-> retrieved conf-mpfr-paths.1  (cached)
-> installed conf-findutils.1
-> installed conf-perl.2
-> retrieved dune.3.16.1  (cached)
-> installed camlidl.1.12
-> retrieved ez-conf-lib.2  (cached)
-> retrieved mlgmpidl.1.3.0  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> installed ez-conf-lib.2
-> retrieved ocamlfind.1.9.6  (cached)
[ERROR] The compilation of conf-gmp-paths.1 failed at "sh /home/opam/.opam/5.2/lib/ez-conf-lib/ez-conf-lib gmp gmp.h test-gmp.c --package-name conf-gmp-paths -- /usr/local".
-> installed ocamlfind.1.9.6
-> installed ocamlbuild.0.15.0
-> installed dune.3.16.1
-> installed bigarray-compat.1.1.0

#=== ERROR while compiling conf-gmp-paths.1 ===================================#
# context              2.4.0~alpha1~dev | linux/x86_64 | ocaml-base-compiler.5.2.0 | file:///home/opam/opam-repository
# path                 ~/.opam/5.2/.opam-switch/build/conf-gmp-paths.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build sh /home/opam/.opam/5.2/lib/ez-conf-lib/ez-conf-lib gmp gmp.h test-gmp.c --package-name conf-gmp-paths -- /usr/local
# exit-code            1
# env-file             ~/.opam/log/conf-gmp-paths-8-eb5d16.env
# output-file          ~/.opam/log/conf-gmp-paths-8-eb5d16.out
### output ###
# checking compilation with gcc  -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -pthread  -D_FILE_OFFSET_BITS=64 : working
# looking for gmp without prefix
# include gmp.h: not found
# looking for gmp in prefix /usr/local
# looking for gmp in prefix /usr
# looking for gmp in prefix /usr/local
# library gmp not found
# gmp not found; pass further possible prefixes     	 after '--' on the command line



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-gmp-paths 1
+- 
+- The following changes have been performed (the rest was aborted)
| - install bigarray-compat 1.1.0
| - install camlidl         1.12
| - install conf-findutils  1
| - install conf-perl       2
| - install dune            3.16.1
| - install ez-conf-lib     2
| - install ocamlbuild      0.15.0
| - install ocamlfind       1.9.6
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.2/.opam-switch/backup/state-20241118135137.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
opam-repo-ci detected dependencies failing:  conf-gmp-paths.1
"/usr/bin/env" "bash" "-c" "opam reinstall apron.v0.9.14;
        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" != 'apron.v0.9.14' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 1
2024-11-18 13:52.39: Job failed: Failed: Build failed
2024-11-18 13:52.39: Log analysis:
2024-11-18 13:52.39: >>> 
[ERROR] The compilation of conf-gmp-paths.1 failed at "sh /home/opam/.opam/5.2/lib/ez-conf-lib/ez-conf-lib gmp gmp.h test-gmp.c --package-name conf-gmp-paths -- /usr/local".
 (score = 20)
2024-11-18 13:52.39: >>> 
opam-repo-ci detected dependencies failing:  conf-gmp-paths.1
 (score = 75)
2024-11-18 13:52.39:  conf-gmp-paths.1 failed to build