(for PR #28015)

2025-06-11 19:35.00: New job: build z3.4.15.1, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28015/head (eb1839f6536e00144ff383f35c0878f9cb0c30a2)
                              on ubuntu-24.04-ocaml-5.3/riscv64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28015/head" && git reset --hard eb1839f6
git fetch origin master
git merge --no-edit 5d06e882dd4254efed3ed68bbc9e77273e592c83
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07
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 z3.4.15.1 4.15.1
RUN opam reinstall z3.4.15.1; \
    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 "\"ubuntu-24.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'z3.4.15.1' && 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-11 19:35.00: Using cache hint "ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07-z3.4.15.1-eb1839f6536e00144ff383f35c0878f9cb0c30a2"
2025-06-11 19:35.00: Using OBuilder spec:
((from ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07)
 (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 z3.4.15.1 4.15.1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall z3.4.15.1;\
             \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 \"\\\"ubuntu-24.04\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'z3.4.15.1' && 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-11 19:35.00: Waiting for resource in pool OCluster
2025-06-11 19:35.01: Waiting for worker…
2025-06-11 19:35.01: Got resource from pool OCluster
Building on riscv-bm-04.sw.ci.dev
Updating files:  11% (2747/23240)
Updating files:  12% (2789/23240)
Updating files:  13% (3022/23240)
Updating files:  14% (3254/23240)
Updating files:  15% (3486/23240)
Updating files:  16% (3719/23240)
Updating files:  17% (3951/23240)
Updating files:  18% (4184/23240)
Updating files:  19% (4416/23240)
Updating files:  20% (4648/23240)
Updating files:  21% (4881/23240)
Updating files:  22% (5113/23240)
Updating files:  23% (5346/23240)
Updating files:  23% (5355/23240)
Updating files:  24% (5578/23240)
Updating files:  25% (5810/23240)
Updating files:  26% (6043/23240)
Updating files:  27% (6275/23240)
Updating files:  28% (6508/23240)
Updating files:  29% (6740/23240)
Updating files:  30% (6972/23240)
Updating files:  31% (7205/23240)
Updating files:  32% (7437/23240)
Updating files:  33% (7670/23240)
Updating files:  34% (7902/23240)
Updating files:  34% (7947/23240)
Updating files:  35% (8134/23240)
Updating files:  36% (8367/23240)
Updating files:  37% (8599/23240)
Updating files:  38% (8832/23240)
Updating files:  39% (9064/23240)
Updating files:  40% (9296/23240)
Updating files:  41% (9529/23240)
Updating files:  42% (9761/23240)
Updating files:  43% (9994/23240)
Updating files:  44% (10226/23240)
Updating files:  44% (10367/23240)
Updating files:  45% (10458/23240)
Updating files:  46% (10691/23240)
Updating files:  47% (10923/23240)
Updating files:  48% (11156/23240)
Updating files:  49% (11388/23240)
Updating files:  50% (11620/23240)
Updating files:  51% (11853/23240)
Updating files:  52% (12085/23240)
Updating files:  53% (12318/23240)
Updating files:  54% (12550/23240)
Updating files:  54% (12761/23240)
Updating files:  55% (12782/23240)
Updating files:  56% (13015/23240)
Updating files:  57% (13247/23240)
Updating files:  58% (13480/23240)
Updating files:  59% (13712/23240)
Updating files:  60% (13944/23240)
Updating files:  61% (14177/23240)
Updating files:  62% (14409/23240)
Updating files:  63% (14642/23240)
Updating files:  64% (14874/23240)
Updating files:  65% (15106/23240)
Updating files:  65% (15234/23240)
Updating files:  66% (15339/23240)
Updating files:  67% (15571/23240)
Updating files:  68% (15804/23240)
Updating files:  69% (16036/23240)
Updating files:  70% (16268/23240)
Updating files:  71% (16501/23240)
Updating files:  72% (16733/23240)
Updating files:  73% (16966/23240)
Updating files:  74% (17198/23240)
Updating files:  75% (17430/23240)
Updating files:  75% (17652/23240)
Updating files:  76% (17663/23240)
Updating files:  77% (17895/23240)
Updating files:  78% (18128/23240)
Updating files:  79% (18360/23240)
Updating files:  80% (18592/23240)
Updating files:  81% (18825/23240)
Updating files:  82% (19057/23240)
Updating files:  83% (19290/23240)
Updating files:  84% (19522/23240)
Updating files:  85% (19754/23240)
Updating files:  86% (19987/23240)
Updating files:  86% (20060/23240)
Updating files:  87% (20219/23240)
Updating files:  88% (20452/23240)
Updating files:  89% (20684/23240)
Updating files:  90% (20916/23240)
Updating files:  91% (21149/23240)
Updating files:  92% (21381/23240)
Updating files:  93% (21614/23240)
Updating files:  94% (21846/23240)
Updating files:  95% (22078/23240)
Updating files:  96% (22311/23240)
Updating files:  96% (22417/23240)
Updating files:  97% (22543/23240)
Updating files:  98% (22776/23240)
Updating files:  99% (23008/23240)
Updating files: 100% (23240/23240)
Updating files: 100% (23240/23240), done.
HEAD is now at f6052df5d4 Merge commit 'b737d2aeebfc28053e52f60b2d643fab23b21a33'
HEAD is now at 5d06e882dd Merge pull request #27999 from mbarbin/conf-hg
Merge made by the 'ort' strategy.
 packages/z3/z3.4.15.1/opam | 68 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 packages/z3/z3.4.15.1/opam

(from ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07)
Unable to find image 'ocaml/opam:ubuntu-24.04-ocaml-5.3@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07' locally
docker.io/ocaml/opam@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07: Pulling from ocaml/opam
4ac2db62b9f8: Already exists
b9ee46ae4ae0: Already exists
fbdb72b776c8: Already exists
28ef53269cc3: Already exists
ff9c89d8a812: Already exists
e9737cd0d6eb: Already exists
621f7e944f70: Already exists
f59bfe8cdaa8: Already exists
cc47d5eae396: Already exists
43363c902afe: Already exists
067372ae5826: Already exists
23c0977dbbe0: Already exists
cbff9217640d: Already exists
9b5c001f59bd: Already exists
dff66bb092aa: Already exists
dff66bb092aa: Already exists
ef3b04dff481: Already exists
ff0a101f83c5: Already exists
926b8f9e6e42: Already exists
9c2c4ca9f40d: Already exists
4f4fb700ef54: Already exists
5aa5e9627347: Already exists
0c6959e4e176: Already exists
0e3a4a9603e1: Already exists
3d6126860658: Already exists
bc35ac5eb1fe: Already exists
7e42788d21ac: Already exists
7d1a3933f4c6: Already exists
bd652b10152f: Already exists
727992588493: Already exists
b188ac72dcca: Already exists
bed6ec1794e7: Already exists
5fae3fd9e7e5: Already exists
72c3b5da2f3a: Already exists
e77f657f92b8: Already exists
2b32b209c4e2: Already exists
ae4e954f3d82: Already exists
26652bad2bc7: Already exists
e09a77078a76: Already exists
7ad44d6e659b: Pulling fs layer
dd893b576426: Pulling fs layer
c78b773f4f5f: Pulling fs layer
90ff65a45687: Pulling fs layer
b9d1baff6406: Pulling fs layer
3c0f78a14197: Pulling fs layer
40ff287d15e6: Pulling fs layer
90ff65a45687: Waiting
b9d1baff6406: Waiting
3c0f78a14197: Waiting
40ff287d15e6: Waiting
dd893b576426: Verifying Checksum
dd893b576426: Download complete
7ad44d6e659b: Download complete
7ad44d6e659b: Pull complete
dd893b576426: Pull complete
c78b773f4f5f: Verifying Checksum
c78b773f4f5f: Download complete
b9d1baff6406: Download complete
c78b773f4f5f: Pull complete
40ff287d15e6: Verifying Checksum
40ff287d15e6: Download complete
3c0f78a14197: Verifying Checksum
3c0f78a14197: Download complete
90ff65a45687: Verifying Checksum
90ff65a45687: Download complete
90ff65a45687: Pull complete
b9d1baff6406: Pull complete
3c0f78a14197: Pull complete
40ff287d15e6: Pull complete
Digest: sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07
Status: Downloaded newer image for ocaml/opam@sha256:d9789eb9ef5db4d504b2acb38a381610d6f5098381edfccc5520fc100a9a4c07
2025-06-11 19:35.23 ---> using "74834d15fa3624c49ba6bf511342992f186b46881fdeeb66e725523dda8ae613" 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-11 19:35.23 ---> using "cf933a4b4fe5801182e9fda2cd1ba98ed9b225f136503b32e130377b7af83083" 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
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-06-11 19:35.23 ---> using "e90adb15bd529e872b5dfa268dfa05b3b6b350fa7894a4f5b0f91442a6032297" 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=riscv64 os=linux os-distribution=ubuntu os-version=24.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 3
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       5.3
# invariant            ["ocaml-base-compiler" {= "5.3.0"}]
# compiler-packages    ocaml-base-compiler.5.3.0, ocaml-compiler.5.3.0, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/5.3/lib/ocaml/stublibs:/home/opam/.opam/5.3/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       5.3.0
2025-06-11 19:35.23 ---> using "bc79f4958dc4fae8fdf12d124da229c9763418914b0fec21f166d7f49a9e99cb" 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-11 19:35.23 ---> using "ad2745fb00440d287c6e7138e853c760156fd104f612f7f71ff3aa7e61dc814d" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-06-11 19:35.54 ---> saved as "26927908374bf15c0b8acb65e8e87f5a20b501c1f35e56bdd22b7f6d4b532664"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-06-11 19:37.50 ---> saved as "4a8c15a5d260c0ed761c31fb752839a8758a5e52d040dd1949614f075570ceb7"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
- Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]
- Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]
- Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]
- Get:5 http://ports.ubuntu.com/ubuntu-ports noble-updates/restricted riscv64 Packages [6220 B]
- Get:6 http://ports.ubuntu.com/ubuntu-ports noble-updates/universe riscv64 Packages [1120 kB]
- Get:7 http://ports.ubuntu.com/ubuntu-ports noble-updates/main riscv64 Packages [750 kB]
- Get:8 http://ports.ubuntu.com/ubuntu-ports noble-security/universe riscv64 Packages [844 kB]
- Get:9 http://ports.ubuntu.com/ubuntu-ports noble-security/main riscv64 Packages [452 kB]
- Fetched 3552 kB in 2s (1974 kB/s)
- Reading package lists...
- 
2025-06-11 19:37.58 ---> saved as "c644d8cc408ff21236edc0226e82cb802d778c19c685477995ef40fd14cc709b"

/home/opam: (run (shell "opam pin add -k version -yn z3.4.15.1 4.15.1"))
z3 is now pinned to version 4.15.1
2025-06-11 19:38.01 ---> saved as "31a3f153a349810ad37abb51f86d10e82481125d8bcea3be330094acb9b37cc5"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall z3.4.15.1;\
                        \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 \"\\\"ubuntu-24.04\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'z3.4.15.1' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
[ERROR] Package z3.4.15.1 depends on the unavailable system package 'python3-distutils'. You can use `--no-depexts' to attempt installation anyway.
"/usr/bin/env" "bash" "-c" "opam reinstall z3.4.15.1;
        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 "\"ubuntu-24.04\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'z3.4.15.1' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 5
2025-06-11 19:38.52: Job failed: Failed: Build failed
2025-06-11 19:38.52: Log analysis:
2025-06-11 19:38.52: >>> 
[ERROR] Package z3.4.15.1 depends on the unavailable system package 'python3-distutils'. You can use `--no-depexts' to attempt installation anyway.
 (score = 100)
2025-06-11 19:38.52: [SKIP] Package not available