- github
- ocaml
- opam-repository
- 0f3f6b
- distributions,opensuse-15.6-ocaml-4.14,conf-libelf.1.0.0
(not at the head of any monitored branch or PR)
2025-05-30 20:08.26: New job: build conf-libelf.1.0.0, using opam 2.3
from https://github.com/ocaml/opam-repository.git#refs/pull/27922/head (0f3f6b7730b4831be6a61e8e675ff85eb5e66b71)
on opensuse-15.6-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/27922/head" && git reset --hard 0f3f6b77
git fetch origin master
git merge --no-edit 6ef11c3f3418da8dac044b83bba15d8b424f95d4
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:37787bde1b168894b9647b48eef48645d8cd5e020b2c224f10fb8405ef1ebe25
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-libelf.1.0.0 1.0.0
RUN opam reinstall conf-libelf.1.0.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 "\"opensuse-15.6\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'conf-libelf.1.0.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-05-30 20:08.26: Using cache hint "ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:37787bde1b168894b9647b48eef48645d8cd5e020b2c224f10fb8405ef1ebe25-conf-libelf.1.0.0-0f3f6b7730b4831be6a61e8e675ff85eb5e66b71"
2025-05-30 20:08.26: Using OBuilder spec:
((from ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:37787bde1b168894b9647b48eef48645d8cd5e020b2c224f10fb8405ef1ebe25)
(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-libelf.1.0.0 1.0.0"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall conf-libelf.1.0.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 \"\\\"opensuse-15.6\\\"\"; 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-libelf.1.0.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-05-30 20:08.26: Waiting for resource in pool OCluster
2025-05-30 20:08.26: Waiting for worker…
2025-05-30 20:08.27: Got resource from pool OCluster
Building on toxis.caelum.ci.dev
All commits already cached
HEAD is now at 6ef11c3f34 Merge pull request #27966 from Leonidas-from-XIV/lsp-csexp
Merge made by the 'ort' strategy.
packages/conf-libelf/conf-libelf.1.0.0/opam | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 packages/conf-libelf/conf-libelf.1.0.0/opam
(from ocaml/opam:opensuse-15.6-ocaml-4.14@sha256:37787bde1b168894b9647b48eef48645d8cd5e020b2c224f10fb8405ef1ebe25)
2025-05-30 20:09.04 ---> saved as "cd86f674551bac4aecb4ad2d4d158bf168806ca94d80bf5a906eb64c0a6ee91d"
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-05-30 20:09.04 ---> saved as "79530fd41316c2951a70aa4af55f12abf4c04c7e43b7f4329bd76d35b106f581"
/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-05-30 20:09.35 ---> saved as "c55713655a3690235878389bca68e28fac1172791f0b735f57f6031237e066bd"
/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-leap os-version=15.6
# solver builtin-0install
# install-criteria -changed,-count[avoid-version,solution]
# upgrade-criteria -count[avoid-version,solution]
# jobs 71
# 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-05-30 20:09.36 ---> saved as "633453efd422a268d063299a451a3d2a963b72333c386cd8a7afbf69138abc9d"
/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-05-30 20:09.43 ---> saved as "821c4dde404d5415c8a88b3515dca7d8110a2989e17aef6b5bc425f62dd78dda"
/home/opam: (copy (src .) (dst opam-repository/))
2025-05-30 20:09.51 ---> saved as "c41437b3bc163f0c55828226f74406da7b2c9ea039802807425cc58a02e5cfd3"
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-05-30 20:10.12 ---> saved as "738c9a2e58d3a2b46cf2283a439409c91b8dacc6dbd6544e949c9236592559ee"
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "zypper" "--non-interactive" "refresh"
- Retrieving repository 'Update repository of openSUSE Backports' metadata [....
- .........done]
- Building repository 'Update repository of openSUSE Backports' cache [..
- ..done]
- Retrieving repository 'Update repository with updates from SUSE Linux Enterprise 15' metadata [......
- .........
- ..........
- ..........
- ..........
- ..........
- .........
- .......
- done]
- Building repository 'Update repository with updates from SUSE Linux Enterprise 15' cache [..
- ..done]
- Retrieving repository 'Main Update Repository' metadata [....
- ......done]
- Building repository 'Main Update Repository' cache [....done]
- Repository 'Update Repository (Non-Oss)' is up to date.
- Repository 'Non-OSS Repository' is up to date.
- Repository 'Main Repository' is up to date.
- All repositories have been refreshed.
2025-05-30 20:10.40 ---> saved as "16223700d6b90a9b891e643ef4f96891b3683e6d155224477540d0bc67a469c5"
/home/opam: (run (shell "opam pin add -k version -yn conf-libelf.1.0.0 1.0.0"))
conf-libelf is now pinned to version 1.0.0
2025-05-30 20:10.41 ---> saved as "f3a3b86c1452aaca65fe0395f2f98693d75682ee90893175546c2d19f624772e"
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall conf-libelf.1.0.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 \"\\\"opensuse-15.6\\\"\"; 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-libelf.1.0.0' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
conf-libelf.1.0.0 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
- install conf-libelf 1.0.0 (pinned)
- install conf-pkg-config 4 [required by conf-libelf]
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed conf-pkg-config.4
[ERROR] The compilation of conf-libelf.1.0.0 failed at "pkg-config --exists libelf".
#=== ERROR while compiling conf-libelf.1.0.0 ==================================#
# context 2.3.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | pinned
# path ~/.opam/4.14/.opam-switch/build/conf-libelf.1.0.0
# command ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --exists libelf
# exit-code 1
# env-file ~/.opam/log/conf-libelf-7-60dd52.env
# output-file ~/.opam/log/conf-libelf-7-60dd52.out
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build conf-libelf 1.0.0
+-
+- 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/4.14/.opam-switch/backup/state-20250530201041.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-libelf.1.0.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 "\"opensuse-15.6\""; then
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
fi;
test "$pkg" != 'conf-libelf.1.0.0' && 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-05-30 20:10.54: Job failed: Failed: Build failed
2025-05-30 20:10.54: Log analysis:
2025-05-30 20:10.54: >>>
[ERROR] The compilation of conf-libelf.1.0.0 failed at "pkg-config --exists libelf".
(score = 20)
2025-05-30 20:10.54: The compilation of conf-libelf.1.0.0 failed at "pkg-config --exists libelf".