(for PR #27768)

2025-04-16 21:23.01: New job: build bitwuzla-cxx.0.7.0, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/27768/head (55a47416d532dc829d9111297970934a21a1b1c4)
                              on ubuntu-22.04-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/27768/head" && git reset --hard 55a47416
git fetch origin master
git merge --no-edit d1cbf81c2da41aacd8925bea031fdc109945f711
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c
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 bitwuzla-cxx.0.7.0 0.7.0
RUN opam reinstall bitwuzla-cxx.0.7.0; \
    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-22.04\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'bitwuzla-cxx.0.7.0' && 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-04-16 21:23.01: Using cache hint "ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c-bitwuzla-cxx.0.7.0-55a47416d532dc829d9111297970934a21a1b1c4"
2025-04-16 21:23.01: Using OBuilder spec:
((from ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c)
 (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 bitwuzla-cxx.0.7.0 0.7.0"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall bitwuzla-cxx.0.7.0;\
             \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-22.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\" != 'bitwuzla-cxx.0.7.0' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-04-16 21:23.01: Waiting for resource in pool OCluster
2025-04-16 21:23.01: Waiting for worker…
2025-04-16 21:23.01: Got resource from pool OCluster
Building on x86-bm-c5.sw.ocaml.org
All commits already cached
Updating files:  95% (21938/22882)
Updating files:  96% (21967/22882)
Updating files:  97% (22196/22882)
Updating files:  98% (22425/22882)
Updating files:  99% (22654/22882)
Updating files: 100% (22882/22882)
Updating files: 100% (22882/22882), done.
HEAD is now at d1cbf81c2d Merge pull request #27767 from toots/opam-publish-ffmpeg.1.2.4
Updating d1cbf81c2d..55a47416d5
Fast-forward
 packages/bitwuzla-cxx/bitwuzla-cxx.0.7.0/opam | 50 +++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 packages/bitwuzla-cxx/bitwuzla-cxx.0.7.0/opam

(from ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c)
Unable to find image 'ocaml/opam:ubuntu-22.04-ocaml-5.3@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c' locally
docker.io/ocaml/opam@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c: Pulling from ocaml/opam
1413bb8f34fa: Pulling fs layer
1413bb8f34fa: Verifying Checksum
1413bb8f34fa: Download complete
1413bb8f34fa: Pull complete
Digest: sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c
Status: Downloaded newer image for ocaml/opam@sha256:84e62e30d8bfe2b4195658bf12072f297f432f76c859647f9997ac2531912e2c
2025-04-16 21:24.36 ---> saved as "d115832911d56b12d30402d150f8630a7ebf7ca48d6442ddc0aa8ae7e2497d0d"

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

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-04-16 21:24.36 ---> saved as "eb63af42d4505a626844353b073907b42645f2e720d486721023d1d329ff70fd"

/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 255 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=255 --global
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-04-16 21:25.17 ---> saved as "761d08eb67f3bd4b42062e40888556132befb7f90f9d5b19f08c54d6e1d5cabc"

/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=ubuntu os-version=22.04
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 31
# 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-04-16 21:25.19 ---> saved as "5c121ec7d68430e07f87f12928da2be6c2c3e04fba48e9ec1cb1bf71712f55fc"

/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-04-16 21:25.30 ---> saved as "54028d4dc417720c4f96aaf10c9d0cfa2a150da4d5d2a94542230f8b5a5190f2"

/home/opam: (copy (src .) (dst opam-repository/))
2025-04-16 21:25.36 ---> saved as "d9b2b4d558d53e39553343a92a25327a559d30746a18ac0ca5df76c7a490a098"

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-04-16 21:26.05 ---> saved as "3831ce054dae527b2e3af3e3345831393f8b25bd065a92e326ff33d6d1349990"

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
- Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
- Get:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
- Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
- Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3101 kB]
- Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1542 kB]
- Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [4161 kB]
- Get:8 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [35.2 kB]
- Get:9 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2788 kB]
- Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1243 kB]
- Fetched 13.3 MB in 1s (9757 kB/s)
- Reading package lists...
- 
2025-04-16 21:26.08 ---> saved as "c54deace510946c68f7eed23f0a29348519124db17c459575121092df9a4ca54"

/home/opam: (run (shell "opam pin add -k version -yn bitwuzla-cxx.0.7.0 0.7.0"))
bitwuzla-cxx is now pinned to version 0.7.0
2025-04-16 21:26.08 ---> saved as "1d7222179fba6326677e896148d055387d771b2e63d2175b2e090cbdb4afec53"

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall bitwuzla-cxx.0.7.0;\
                        \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-22.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\" != 'bitwuzla-cxx.0.7.0' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
bitwuzla-cxx.0.7.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 9 packages
  - install bitwuzla-cxx    0.7.0 (pinned)
  - install conf-g++        1.0            [required by bitwuzla-cxx]
  - install conf-gcc        1.0            [required by bitwuzla-cxx]
  - install conf-git        1.1            [required by bitwuzla-cxx]
  - install conf-gmp        5              [required by zarith]
  - install conf-pkg-config 4              [required by zarith]
  - install dune            3.18.0         [required by bitwuzla-cxx]
  - install ocamlfind       1.9.8          [required by zarith]
  - install zarith          1.14           [required by bitwuzla-cxx]

The following system packages will first need to be installed:
    libgmp-dev pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libgmp-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libglib2.0-0:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 15669 files and directories currently installed.)
- Preparing to unpack .../0-libglib2.0-0_2.72.4-0ubuntu2.4_amd64.deb ...
- Unpacking libglib2.0-0:amd64 (2.72.4-0ubuntu2.4) ...
- Selecting previously unselected package libglib2.0-data.
- Preparing to unpack .../1-libglib2.0-data_2.72.4-0ubuntu2.4_all.deb ...
- Unpacking libglib2.0-data (2.72.4-0ubuntu2.4) ...
- Selecting previously unselected package libicu70:amd64.
- Preparing to unpack .../2-libicu70_70.1-2_amd64.deb ...
- Unpacking libicu70:amd64 (70.1-2) ...
- Selecting previously unselected package libxml2:amd64.
- Preparing to unpack .../3-libxml2_2.9.13+dfsg-1ubuntu0.6_amd64.deb ...
- Unpacking libxml2:amd64 (2.9.13+dfsg-1ubuntu0.6) ...
- Selecting previously unselected package shared-mime-info.
- Preparing to unpack .../4-shared-mime-info_2.1-2_amd64.deb ...
- Unpacking shared-mime-info (2.1-2) ...
- Selecting previously unselected package xdg-user-dirs.
- Preparing to unpack .../5-xdg-user-dirs_0.17-2ubuntu4_amd64.deb ...
- Unpacking xdg-user-dirs (0.17-2ubuntu4) ...
- Selecting previously unselected package libgmpxx4ldbl:amd64.
- Preparing to unpack .../6-libgmpxx4ldbl_2%3a6.2.1+dfsg-3ubuntu1_amd64.deb ...
- Unpacking libgmpxx4ldbl:amd64 (2:6.2.1+dfsg-3ubuntu1) ...
- Selecting previously unselected package libgmp-dev:amd64.
- Preparing to unpack .../7-libgmp-dev_2%3a6.2.1+dfsg-3ubuntu1_amd64.deb ...
- Unpacking libgmp-dev:amd64 (2:6.2.1+dfsg-3ubuntu1) ...
- Selecting previously unselected package pkg-config.
- Preparing to unpack .../8-pkg-config_0.29.2-1ubuntu3_amd64.deb ...
- Unpacking pkg-config (0.29.2-1ubuntu3) ...
- Setting up xdg-user-dirs (0.17-2ubuntu4) ...
- Setting up libglib2.0-0:amd64 (2.72.4-0ubuntu2.4) ...
- No schema files found: doing nothing.
- Setting up libglib2.0-data (2.72.4-0ubuntu2.4) ...
- Setting up libgmpxx4ldbl:amd64 (2:6.2.1+dfsg-3ubuntu1) ...
- Setting up pkg-config (0.29.2-1ubuntu3) ...
- Setting up libicu70:amd64 (70.1-2) ...
- Setting up libgmp-dev:amd64 (2:6.2.1+dfsg-3ubuntu1) ...
- Setting up libxml2:amd64 (2.9.13+dfsg-1ubuntu0.6) ...
- Setting up shared-mime-info (2.1-2) ...
- Processing triggers for libc-bin (2.35-0ubuntu3.9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bitwuzla-cxx.0.7.0  (cached)
-> retrieved conf-gmp.5  (cached)
-> installed conf-gmp.5
-> installed conf-gcc.1.0
-> installed conf-git.1.1
-> installed conf-g++.1.0
-> installed conf-pkg-config.4
-> retrieved dune.3.18.0  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved zarith.1.14  (cached)
-> installed ocamlfind.1.9.8
-> installed zarith.1.14
-> installed dune.3.18.0
-> installed bitwuzla-cxx.0.7.0
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-16 21:28.34 ---> saved as "7bb6aee34ed0cb8bf11675e476631d811994a093de25eb357bdfcbee252fbd80"
Job succeeded
2025-04-16 21:28.41: Job succeeded