(for PR #27798)
2025-04-19 22:51.43: New job: build conf-magick-core6.1, using opam 2.3 from https://github.com/ocaml/opam-repository.git#refs/pull/27798/head (7ffd814792efba70850b6829a4897bc274b099a1) on ubuntu-20.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/27798/head" && git reset --hard 7ffd8147 git fetch origin master git merge --no-edit 999bff3ed88d26f76ff7eaddbfa7af49ed4737dc cat > ../Dockerfile <<'END-OF-DOCKERFILE' FROM ocaml/opam:ubuntu-20.04-ocaml-5.3@sha256:bc1bddb03f636c71cba84dda43332f38693b7c164d5660d3341900b2568e8255 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 conf-magick-core6.1 1 RUN opam reinstall conf-magick-core6.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-20.04\""; then \ echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \ fi; \ test "$pkg" != 'conf-magick-core6.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-04-19 22:51.44: Using cache hint "ocaml/opam:ubuntu-20.04-ocaml-5.3@sha256:bc1bddb03f636c71cba84dda43332f38693b7c164d5660d3341900b2568e8255-conf-magick-core6.1-7ffd814792efba70850b6829a4897bc274b099a1" 2025-04-19 22:51.44: Using OBuilder spec: ((from ocaml/opam:ubuntu-20.04-ocaml-5.3@sha256:bc1bddb03f636c71cba84dda43332f38693b7c164d5660d3341900b2568e8255) (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 conf-magick-core6.1 1")) (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam reinstall conf-magick-core6.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-20.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\" != 'conf-magick-core6.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-04-19 22:51.44: Waiting for resource in pool OCluster 2025-04-19 22:51.45: Waiting for worker… 2025-04-19 22:51.45: Got resource from pool OCluster Building on x86-bm-c3.sw.ocaml.org All commits already cached Updating files: 98% (22588/22931) Updating files: 99% (22702/22931) Updating files: 100% (22931/22931) Updating files: 100% (22931/22931), done. HEAD is now at 999bff3ed8 Merge pull request #27746 from hirrolot/opam-publish-checked_oint.0.6.0 Updating 999bff3ed8..7ffd814792 Fast-forward packages/conf-magick-core6/conf-magick-core6.1/opam | 20 ++++++++++++++++++++ packages/conf-magick-core7/conf-magick-core7.1/opam | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 packages/conf-magick-core6/conf-magick-core6.1/opam create mode 100644 packages/conf-magick-core7/conf-magick-core7.1/opam (from ocaml/opam:ubuntu-20.04-ocaml-5.3@sha256:bc1bddb03f636c71cba84dda43332f38693b7c164d5660d3341900b2568e8255) 2025-04-19 22:52.51 ---> saved as "1fefa1d63f885f8854c209ceac2b2349852b1363ce3284bf702e05266fb95b6d" /: (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-19 22:52.51 ---> saved as "dd567410563f7f1c5f7a12ca3315f9cd764bdadf1e27fdab699e7a9a837d5652" /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. Continue? [y/n] y 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. [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] Initialised 2025-04-19 22:53.23 ---> saved as "9675a5f0052df9e2df6472a6d677cb4db5d4bd5e09d80cb77e955eda463b1354" /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=20.04 # solver builtin-0install # install-criteria -changed,-count[avoid-version,solution] # upgrade-criteria -count[avoid-version,solution] # jobs 39 # 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-19 22:53.24 ---> saved as "b4fb9bed83fe5af26429c22d3375a890c9d0b9cde8df8379190b74ce8919db28" /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-19 22:53.33 ---> saved as "10ca99776ac71dc81b852cb8cc9064d925218aa18dfcac1865eee3afae4c64bb" /home/opam: (copy (src .) (dst opam-repository/)) 2025-04-19 22:53.43 ---> saved as "d759e2d7263125634b8ddd429a1711322c7a3917a849ee923762432b2c88b449" /home/opam: (run (shell "opam repository set-url --strict default opam-repository/")) [default] Initialised 2025-04-19 22:54.04 ---> saved as "4f5afc952e9b57946a5c226e4243ae0be99570422dbaf0a62680d1425b0f377b" /home/opam: (run (network host) (shell "opam update --depexts || true")) + /usr/bin/sudo "apt-get" "update" - Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease - Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB] - Hit:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease - Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB] - Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [4829 kB] - Get:6 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1605 kB] - Get:7 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [4780 kB] - Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1306 kB] - Get:9 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [4320 kB] - Fetched 17.1 MB in 2s (10.1 MB/s) - Reading package lists... - 2025-04-19 22:54.07 ---> saved as "8748d60c2fafde0e704d564de07f905388c6de94a5064a37cc841c89bf117742" /home/opam: (run (shell "opam pin add -k version -yn conf-magick-core6.1 1")) conf-magick-core6 is now pinned to version 1 2025-04-19 22:54.08 ---> saved as "656d15250c0605191e48bab5ed1a031b10667a780267c19aa4e557e7dd5e108c" /home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache))) (network host) (shell "opam reinstall conf-magick-core6.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-20.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\" != 'conf-magick-core6.1' && partial_fails=\"$partial_fails $pkg\";\ \n done;\ \n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\ \n exit 1")) conf-magick-core6.1 is not installed. Install it? [y/n] y The following actions will be performed: === install 2 packages - install conf-magick-core6 1 (pinned) - install conf-pkg-config 4 [required by conf-magick-core6] The following system packages will first need to be installed: 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" "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 ... 14727 files and directories currently installed.) - Preparing to unpack .../0-libglib2.0-0_2.64.6-1~ubuntu20.04.8_amd64.deb ... - Unpacking libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.8) ... - Selecting previously unselected package libglib2.0-data. - Preparing to unpack .../1-libglib2.0-data_2.64.6-1~ubuntu20.04.8_all.deb ... - Unpacking libglib2.0-data (2.64.6-1~ubuntu20.04.8) ... - Selecting previously unselected package tzdata. - Preparing to unpack .../2-tzdata_2025b-0ubuntu0.20.04_all.deb ... - Unpacking tzdata (2025b-0ubuntu0.20.04) ... - Selecting previously unselected package libicu66:amd64. - Preparing to unpack .../3-libicu66_66.1-2ubuntu2.1_amd64.deb ... - Unpacking libicu66:amd64 (66.1-2ubuntu2.1) ... - Selecting previously unselected package libxml2:amd64. - Preparing to unpack .../4-libxml2_2.9.10+dfsg-5ubuntu0.20.04.9_amd64.deb ... - Unpacking libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.9) ... - Selecting previously unselected package shared-mime-info. - Preparing to unpack .../5-shared-mime-info_1.15-1_amd64.deb ... - Unpacking shared-mime-info (1.15-1) ... - Selecting previously unselected package xdg-user-dirs. - Preparing to unpack .../6-xdg-user-dirs_0.17-2ubuntu1_amd64.deb ... - Unpacking xdg-user-dirs (0.17-2ubuntu1) ... - Selecting previously unselected package pkg-config. - Preparing to unpack .../7-pkg-config_0.29.1-0ubuntu4_amd64.deb ... - Unpacking pkg-config (0.29.1-0ubuntu4) ... - Setting up xdg-user-dirs (0.17-2ubuntu1) ... - Setting up libglib2.0-0:amd64 (2.64.6-1~ubuntu20.04.8) ... - No schema files found: doing nothing. - Setting up tzdata (2025b-0ubuntu0.20.04) ... - - Current default time zone: 'Europe/London' - Local time is now: Sat Apr 19 23:54:17 BST 2025. - Universal Time is now: Sat Apr 19 22:54:17 UTC 2025. - Run 'dpkg-reconfigure tzdata' if you wish to change it. - - Setting up libglib2.0-data (2.64.6-1~ubuntu20.04.8) ... - Setting up pkg-config (0.29.1-0ubuntu4) ... - Setting up libicu66:amd64 (66.1-2ubuntu2.1) ... - Setting up libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.9) ... - Setting up shared-mime-info (1.15-1) ... - Processing triggers for libc-bin (2.31-0ubuntu9.17) ... <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> -> installed conf-pkg-config.4 [ERROR] The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'". #=== ERROR while compiling conf-magick-core6.1 ================================# # context 2.3.0 | linux/x86_64 | ocaml-base-compiler.5.3.0 | pinned # path ~/.opam/5.3/.opam-switch/build/conf-magick-core6.1 # command ~/.opam/opam-init/hooks/sandbox.sh build sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }' # exit-code 1 # env-file ~/.opam/log/conf-magick-core6-7-f27d18.env # output-file ~/.opam/log/conf-magick-core6-7-f27d18.out <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> +- The following actions failed | - build conf-magick-core6 1 +- +- The following changes have been performed | - install conf-pkg-config 4 +- # 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.3/.opam-switch/backup/state-20250419225408.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. "/usr/bin/env" "bash" "-c" "opam reinstall conf-magick-core6.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-20.04\""; then echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; fi; test "$pkg" != 'conf-magick-core6.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 1 2025-04-19 22:54.27: Job failed: Failed: Build failed 2025-04-19 22:54.27: Log analysis: 2025-04-19 22:54.27: >>> [ERROR] The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'". (score = 20) 2025-04-19 22:54.27: The compilation of conf-magick-core6.1 failed at "sh -c pkg-config --exists MagickCore && pkg-config --modversion MagickCore | awk -F. '{ if ($1 == 6) exit 0; else exit 1; }'".