- github
- ocaml
- opam-repository
- 89a6ae
- compilers,4.14,dune.3.23.0~alpha2,revdeps,torch.0.4
(not at the head of any monitored branch or PR)
2026-04-30 02:04.31: New job: test torch.0.4 with dune.3.23.0~alpha2, using opam dev
from https://github.com/ocaml/opam-repository.git#refs/pull/29824/head (89a6ae888498500bf7c0fc05361da936fc6acacf)
on debian-13-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/29824/head" && git reset --hard 89a6ae88
git fetch origin master
git merge --no-edit d1c56642b8ca7e1166c90bfe0c74f38007bbad58
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-13-ocaml-4.14@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-dev /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 dune.3.23.0~alpha2 3.23.0~alpha2
RUN opam reinstall dune.3.23.0~alpha2; \
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 "\"debian-13\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'dune.3.23.0~alpha2' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1
RUN opam reinstall torch.0.4; \
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 "\"debian-13\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'torch.0.4' && partial_fails="$partial_fails $pkg"; \
done; \
test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
exit 1
RUN (opam reinstall --with-test torch.0.4) || true
RUN opam reinstall --with-test --verbose torch.0.4; \
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 "\"debian-13\""; then \
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
fi; \
test "$pkg" != 'torch.0.4' && 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 .
2026-04-30 02:04.31: Using cache hint "ocaml/opam:debian-13-ocaml-4.14@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353-dune.3.23.0~alpha2-torch.0.4-89a6ae888498500bf7c0fc05361da936fc6acacf"
2026-04-30 02:04.31: Using OBuilder spec:
((from ocaml/opam:debian-13-ocaml-4.14@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353)
(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 "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 dune.3.23.0~alpha2 3.23.0~alpha2"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall dune.3.23.0~alpha2;\
\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 \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'dune.3.23.0~alpha2' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
(run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall torch.0.4;\
\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 \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'torch.0.4' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
(run (network host)
(shell "(opam reinstall --with-test torch.0.4) || true"))
(run (shell "opam reinstall --with-test --verbose torch.0.4;\
\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 \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'torch.0.4' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
)
2026-04-30 02:04.31: Waiting for resource in pool OCluster
2026-04-30 07:01.31: Waiting for worker…
2026-04-30 07:04.33: Got resource from pool OCluster
Building on eumache.caelum.ci.dev
All commits already cached
Updating files: 66% (12533/18887)
Updating files: 67% (12655/18887)
Updating files: 68% (12844/18887)
Updating files: 69% (13033/18887)
Updating files: 70% (13221/18887)
Updating files: 71% (13410/18887)
Updating files: 72% (13599/18887)
Updating files: 73% (13788/18887)
Updating files: 74% (13977/18887)
Updating files: 75% (14166/18887)
Updating files: 76% (14355/18887)
Updating files: 77% (14543/18887)
Updating files: 78% (14732/18887)
Updating files: 79% (14921/18887)
Updating files: 80% (15110/18887)
Updating files: 81% (15299/18887)
Updating files: 82% (15488/18887)
Updating files: 83% (15677/18887)
Updating files: 84% (15866/18887)
Updating files: 85% (16054/18887)
Updating files: 86% (16243/18887)
Updating files: 87% (16432/18887)
Updating files: 88% (16621/18887)
Updating files: 89% (16810/18887)
Updating files: 90% (16999/18887)
Updating files: 91% (17188/18887)
Updating files: 92% (17377/18887)
Updating files: 93% (17565/18887)
Updating files: 94% (17754/18887)
Updating files: 95% (17943/18887)
Updating files: 96% (18132/18887)
Updating files: 97% (18321/18887)
Updating files: 98% (18510/18887)
Updating files: 99% (18699/18887)
Updating files: 100% (18887/18887)
Updating files: 100% (18887/18887), done.
HEAD is now at d1c56642b8 Merge pull request #29820 from jmid/core-0.17.1-bound
Merge made by the 'ort' strategy.
.../chrome-trace/chrome-trace.3.23.0~alpha2/opam | 39 +++++++++++
.../dune-action-plugin.3.23.0~alpha2/opam | 52 ++++++++++++++
.../dune-action-trace.3.23.0~alpha2/opam | 39 +++++++++++
.../dune-build-info.3.23.0~alpha2/opam | 45 ++++++++++++
.../dune-configurator.3.23.0~alpha2/opam | 49 +++++++++++++
packages/dune-glob/dune-glob.3.23.0~alpha2/opam | 42 ++++++++++++
.../dune-private-libs.3.23.0~alpha2/opam | 50 ++++++++++++++
.../dune-rpc-lwt/dune-rpc-lwt.3.23.0~alpha2/opam | 41 +++++++++++
packages/dune-rpc/dune-rpc.3.23.0~alpha2/opam | 44 ++++++++++++
packages/dune-site/dune-site.3.23.0~alpha2/opam | 37 ++++++++++
packages/dune/dune.3.23.0~alpha2/opam | 80 ++++++++++++++++++++++
packages/dyn/dyn.3.23.0~alpha2/opam | 40 +++++++++++
packages/fs-io/fs-io.3.23.0~alpha2/opam | 39 +++++++++++
packages/ocamlc-loc/ocamlc-loc.3.23.0~alpha2/opam | 43 ++++++++++++
packages/ordering/ordering.3.23.0~alpha2/opam | 38 ++++++++++
packages/stdune/stdune.3.23.0~alpha2/opam | 46 +++++++++++++
.../top-closure/top-closure.3.23.0~alpha2/opam | 38 ++++++++++
packages/xdg/xdg.3.23.0~alpha2/opam | 39 +++++++++++
18 files changed, 801 insertions(+)
create mode 100644 packages/chrome-trace/chrome-trace.3.23.0~alpha2/opam
create mode 100644 packages/dune-action-plugin/dune-action-plugin.3.23.0~alpha2/opam
create mode 100644 packages/dune-action-trace/dune-action-trace.3.23.0~alpha2/opam
create mode 100644 packages/dune-build-info/dune-build-info.3.23.0~alpha2/opam
create mode 100644 packages/dune-configurator/dune-configurator.3.23.0~alpha2/opam
create mode 100644 packages/dune-glob/dune-glob.3.23.0~alpha2/opam
create mode 100644 packages/dune-private-libs/dune-private-libs.3.23.0~alpha2/opam
create mode 100644 packages/dune-rpc-lwt/dune-rpc-lwt.3.23.0~alpha2/opam
create mode 100644 packages/dune-rpc/dune-rpc.3.23.0~alpha2/opam
create mode 100644 packages/dune-site/dune-site.3.23.0~alpha2/opam
create mode 100644 packages/dune/dune.3.23.0~alpha2/opam
create mode 100644 packages/dyn/dyn.3.23.0~alpha2/opam
create mode 100644 packages/fs-io/fs-io.3.23.0~alpha2/opam
create mode 100644 packages/ocamlc-loc/ocamlc-loc.3.23.0~alpha2/opam
create mode 100644 packages/ordering/ordering.3.23.0~alpha2/opam
create mode 100644 packages/stdune/stdune.3.23.0~alpha2/opam
create mode 100644 packages/top-closure/top-closure.3.23.0~alpha2/opam
create mode 100644 packages/xdg/xdg.3.23.0~alpha2/opam
(from ocaml/opam:debian-13-ocaml-4.14@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353)
Unable to find image 'ocaml/opam:debian-13-ocaml-4.14@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353' locally
docker.io/ocaml/opam@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353: Pulling from ocaml/opam
3b32e3bb7338: Pulling fs layer
745aa02d649b: Pulling fs layer
bc737f5d3c43: Pulling fs layer
435aae15a5aa: Pulling fs layer
0c18c39f6bae: Pulling fs layer
eef74b82df23: Pulling fs layer
f7d9cf0406d8: Pulling fs layer
01a1dc37e798: Pulling fs layer
4960811e07ec: Pulling fs layer
be2894c36d5e: Pulling fs layer
b5a017ae191d: Pulling fs layer
3ba39ce4e9c9: Pulling fs layer
1db570dbe1c8: Pulling fs layer
753bb4b44994: Pulling fs layer
b5a1e811909d: Pulling fs layer
6f3d83ba47b6: Pulling fs layer
002305272cbf: Pulling fs layer
249535cd82cd: Pulling fs layer
87fe8c2a0989: Pulling fs layer
b6932f04a343: Pulling fs layer
17b274223ca8: Pulling fs layer
4f4fb700ef54: Pulling fs layer
924952a8fbf8: Pulling fs layer
0c18c39f6bae: Waiting
435aae15a5aa: Waiting
17671b650f63: Pulling fs layer
eef74b82df23: Waiting
9fe75d873195: Pulling fs layer
87fe8c2a0989: Waiting
24216535046d: Pulling fs layer
b6932f04a343: Waiting
f7d9cf0406d8: Waiting
b5a1e811909d: Waiting
ac2e1c9e90df: Pulling fs layer
01a1dc37e798: Waiting
c2126be13b26: Pulling fs layer
6f3d83ba47b6: Waiting
3ba39ce4e9c9: Waiting
01ff22a5eb70: Pulling fs layer
4960811e07ec: Waiting
be2894c36d5e: Waiting
50415235a68f: Pulling fs layer
b5a017ae191d: Waiting
1db570dbe1c8: Waiting
deb6182b549b: Pulling fs layer
753bb4b44994: Waiting
249535cd82cd: Waiting
002305272cbf: Waiting
ad728fb9a18c: Pulling fs layer
a36bcae85a3d: Pulling fs layer
17b274223ca8: Waiting
17671b650f63: Waiting
9fe75d873195: Waiting
1c746fdc6a3a: Pulling fs layer
4351b787b295: Pulling fs layer
24216535046d: Waiting
380abb093977: Pulling fs layer
ac2e1c9e90df: Waiting
0fc1b10f3fd9: Pulling fs layer
c2126be13b26: Waiting
01ff22a5eb70: Waiting
966bc35978c3: Pulling fs layer
ae53b61ccb9e: Pulling fs layer
50415235a68f: Waiting
d8ada9072f1a: Pulling fs layer
deb6182b549b: Waiting
ad728fb9a18c: Waiting
70f923473ca1: Pulling fs layer
a36bcae85a3d: Waiting
df81036acc4a: Pulling fs layer
1b9253ea29a0: Pulling fs layer
14d08e4f5c89: Pulling fs layer
4351b787b295: Waiting
380abb093977: Waiting
0fc1b10f3fd9: Waiting
966bc35978c3: Waiting
ae53b61ccb9e: Waiting
d8ada9072f1a: Waiting
70f923473ca1: Waiting
df81036acc4a: Waiting
1b9253ea29a0: Waiting
14d08e4f5c89: Waiting
924952a8fbf8: Waiting
4f4fb700ef54: Waiting
1c746fdc6a3a: Waiting
745aa02d649b: Verifying Checksum
745aa02d649b: Download complete
bc737f5d3c43: Verifying Checksum
bc737f5d3c43: Download complete
0c18c39f6bae: Verifying Checksum
0c18c39f6bae: Download complete
3b32e3bb7338: Verifying Checksum
3b32e3bb7338: Download complete
435aae15a5aa: Download complete
f7d9cf0406d8: Verifying Checksum
f7d9cf0406d8: Download complete
4960811e07ec: Verifying Checksum
4960811e07ec: Download complete
01a1dc37e798: Verifying Checksum
01a1dc37e798: Download complete
be2894c36d5e: Verifying Checksum
be2894c36d5e: Download complete
b5a017ae191d: Verifying Checksum
b5a017ae191d: Download complete
1db570dbe1c8: Verifying Checksum
1db570dbe1c8: Download complete
3ba39ce4e9c9: Verifying Checksum
3ba39ce4e9c9: Download complete
b5a1e811909d: Download complete
753bb4b44994: Verifying Checksum
753bb4b44994: Download complete
002305272cbf: Verifying Checksum
002305272cbf: Download complete
6f3d83ba47b6: Verifying Checksum
6f3d83ba47b6: Download complete
87fe8c2a0989: Download complete
249535cd82cd: Verifying Checksum
249535cd82cd: Download complete
b6932f04a343: Verifying Checksum
b6932f04a343: Download complete
3b32e3bb7338: Pull complete
745aa02d649b: Pull complete
bc737f5d3c43: Pull complete
4f4fb700ef54: Verifying Checksum
4f4fb700ef54: Download complete
17b274223ca8: Download complete
924952a8fbf8: Verifying Checksum
924952a8fbf8: Download complete
17671b650f63: Download complete
435aae15a5aa: Pull complete
0c18c39f6bae: Pull complete
9fe75d873195: Verifying Checksum
9fe75d873195: Download complete
24216535046d: Verifying Checksum
24216535046d: Download complete
eef74b82df23: Verifying Checksum
eef74b82df23: Download complete
ac2e1c9e90df: Verifying Checksum
ac2e1c9e90df: Download complete
01ff22a5eb70: Verifying Checksum
01ff22a5eb70: Download complete
c2126be13b26: Verifying Checksum
c2126be13b26: Download complete
50415235a68f: Verifying Checksum
50415235a68f: Download complete
a36bcae85a3d: Download complete
ad728fb9a18c: Verifying Checksum
ad728fb9a18c: Download complete
deb6182b549b: Verifying Checksum
deb6182b549b: Download complete
380abb093977: Verifying Checksum
380abb093977: Download complete
1c746fdc6a3a: Verifying Checksum
1c746fdc6a3a: Download complete
966bc35978c3: Download complete
ae53b61ccb9e: Download complete
0fc1b10f3fd9: Verifying Checksum
0fc1b10f3fd9: Download complete
d8ada9072f1a: Verifying Checksum
d8ada9072f1a: Download complete
df81036acc4a: Verifying Checksum
df81036acc4a: Download complete
1b9253ea29a0: Verifying Checksum
1b9253ea29a0: Download complete
4351b787b295: Verifying Checksum
4351b787b295: Download complete
14d08e4f5c89: Verifying Checksum
14d08e4f5c89: Download complete
70f923473ca1: Verifying Checksum
70f923473ca1: Download complete
eef74b82df23: Pull complete
f7d9cf0406d8: Pull complete
01a1dc37e798: Pull complete
4960811e07ec: Pull complete
be2894c36d5e: Pull complete
b5a017ae191d: Pull complete
3ba39ce4e9c9: Pull complete
1db570dbe1c8: Pull complete
753bb4b44994: Pull complete
b5a1e811909d: Pull complete
6f3d83ba47b6: Pull complete
002305272cbf: Pull complete
249535cd82cd: Pull complete
87fe8c2a0989: Pull complete
b6932f04a343: Pull complete
17b274223ca8: Pull complete
4f4fb700ef54: Pull complete
924952a8fbf8: Pull complete
17671b650f63: Pull complete
9fe75d873195: Pull complete
24216535046d: Pull complete
ac2e1c9e90df: Pull complete
c2126be13b26: Pull complete
01ff22a5eb70: Pull complete
50415235a68f: Pull complete
deb6182b549b: Pull complete
ad728fb9a18c: Pull complete
a36bcae85a3d: Pull complete
1c746fdc6a3a: Pull complete
4351b787b295: Pull complete
380abb093977: Pull complete
0fc1b10f3fd9: Pull complete
966bc35978c3: Pull complete
ae53b61ccb9e: Pull complete
d8ada9072f1a: Pull complete
70f923473ca1: Pull complete
df81036acc4a: Pull complete
1b9253ea29a0: Pull complete
14d08e4f5c89: Pull complete
Digest: sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353
Status: Downloaded newer image for ocaml/opam@sha256:9fe84ffeeaa92507d198c7af8adb382726e06ae36c031f5ef645a3241cac0353
2026-04-30 07:04.38 ---> using "59750879172620501422dd230c4db220684ca7fe3e97409754eb72dcd3390183" from cache
/: (user (uid 1000) (gid 1000))
/: (workdir /home/opam)
/home/opam: (run (shell "sudo ln -f /usr/bin/opam-dev /usr/bin/opam"))
2026-04-30 07:04.38 ---> using "b9ebb375f27da820f646269f579489455309b96c19083cd92f7f6ddd05a4b5f2" 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 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
2026-04-30 07:04.38 ---> using "a861010f9e8d58738e62217a8c0fc067b85ae67b915e1ef93e08d814bb3c914c" 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.5.1
# self-upgrade no
# system arch=x86_64 os=linux os-distribution=debian os-version=13
# 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.3"}]
# compiler-packages ocaml-base-compiler.4.14.3, 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.3
2026-04-30 07:04.38 ---> using "a880c606232c92d84d818c349c45696fe9be139917bfa5f7b1065b497e8df441" 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/"))
2026-04-30 07:04.38 ---> using "47c085e53aa5880966ff9fc1e1e12a4661255166181f7931a397db06034201cf" from cache
/home/opam: (copy (src .) (dst opam-repository/))
2026-04-30 07:04.39 ---> using "4f46738dfb91aa0cd6670022d574de26b7ba05050d8f85957ea4872d96399e01" from cache
/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2026-04-30 07:04.39 ---> using "f445e8c26fbca2dd0e343fb9cad949aab8e50ebe8f19361a10c799b6322ab39c" from cache
/home/opam: (run (network host)
(shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian trixie InRelease
- Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
- Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
- Get:4 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [129 kB]
- Fetched 219 kB in 0s (855 kB/s)
- Reading package lists...
-
2026-04-30 07:04.39 ---> using "b966a5b49a15ba3eb63ca44315c18e89b0e8b1ab5327a74622eb8f27705503f7" from cache
/home/opam: (run (shell "opam pin add -k version -yn dune.3.23.0~alpha2 3.23.0~alpha2"))
dune is now pinned to version 3.23.0~alpha2
2026-04-30 07:04.39 ---> using "25765793fc7cef20054e052a9de3d7d38466f3811e35fee48d28bad9710db3b2" from cache
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall dune.3.23.0~alpha2;\
\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 \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'dune.3.23.0~alpha2' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
dune.3.23.0~alpha2 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 1 package
- install dune 3.23.0~alpha2 (pinned)
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved dune.3.23.0~alpha2 (cached)
-> installed dune.3.23.0~alpha2
Done.
# To update the current shell environment, run: eval $(opam env)
2026-04-30 07:04.39 ---> using "8638839e5ae5cf3f1965d4f7cf42b88935780d5bcff7e41a79deffdd572bdcbf" from cache
/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
(network host)
(shell "opam reinstall torch.0.4;\
\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 \"\\\"debian-13\\\"\"; then\
\n echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
\n fi;\
\n test \"$pkg\" != 'torch.0.4' && partial_fails=\"$partial_fails $pkg\";\
\n done;\
\n test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
\n exit 1"))
torch.0.4 is not installed. Install it? [Y/n] y
The following actions will be performed:
=== install 43 packages
- install base v0.16.5 [required by torch]
- install camlzip 1.14 [required by npy]
- install cmdliner 2.1.1 [required by torch]
- install conf-libffi 2.0.0 [required by ctypes-foreign]
- install conf-pkg-config 4 [required by ctypes-foreign]
- install conf-zlib 1 [required by camlzip]
- install csexp 1.5.2 [required by dune-configurator]
- install ctypes 0.24.0 [required by torch]
- install ctypes-foreign 0.24.0 [required by torch]
- install dune-configurator 3.23.0~alpha2 [required by torch]
- install integers 0.7.0 [required by ctypes]
- install jane-street-headers v0.16.0 [required by time_now]
- install jst-config v0.16.0 [required by time_now]
- install libtorch 1.1.0 [required by torch]
- install npy 0.0.9 [required by torch]
- install num 1.6 [required by sexplib]
- install ocaml-compiler-libs v0.12.4 [required by torch]
- install ocamlfind 1.9.8 [required by stb_image]
- install parsexp v0.16.0 [required by sexplib]
- install ppx_assert v0.16.0 [required by jst-config]
- install ppx_base v0.16.0 [required by time_now]
- install ppx_cold v0.16.0 [required by ppx_base]
- install ppx_compare v0.16.0 [required by ppx_base]
- install ppx_custom_printf v0.16.0 [required by torch]
- install ppx_derivers 1.2.1 [required by ppxlib]
- install ppx_enumerate v0.16.0 [required by ppx_base]
- install ppx_expect v0.16.2 [required by torch]
- install ppx_globalize v0.16.0 [required by ppx_base]
- install ppx_hash v0.16.0 [required by ppx_base]
- install ppx_here v0.16.0 [required by ppx_expect]
- install ppx_inline_test v0.16.1 [required by ppx_expect]
- install ppx_optcomp v0.16.0 [required by time_now]
- install ppx_sexp_conv v0.16.0 [required by torch]
- install ppxlib 0.35.0 [required by ppx_custom_printf, ppx_expect]
- install re 1.14.0 [required by ppx_expect]
- install result 1.5 [required by stb_image]
- install sexplib v0.16.0 [required by torch]
- install sexplib0 v0.16.0 [required by base, sexplib]
- install stb_image 0.5 [required by torch]
- install stdio v0.16.0 [required by torch]
- install stdlib-shims 0.3.0 [required by integers]
- install time_now v0.16.0 [required by ppx_inline_test]
- install torch 0.4
The following system packages will first need to be installed:
libffi-dev pkg-config zlib1g-dev
<><> 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" "libffi-dev" "pkg-config" "zlib1g-dev"
- Selecting previously unselected package libffi-dev: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 ... 20623 files and directories currently installed.)
- Preparing to unpack .../0-libffi-dev_3.4.8-2_amd64.deb ...
- Unpacking libffi-dev:amd64 (3.4.8-2) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../1-libpkgconf3_1.8.1-4_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../2-pkgconf-bin_1.8.1-4_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-4) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../3-pkgconf_1.8.1-4_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-4) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../4-pkg-config_1.8.1-4_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-4) ...
- Selecting previously unselected package zlib1g-dev:amd64.
- Preparing to unpack .../5-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1+b1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up libffi-dev:amd64 (3.4.8-2) ...
- Setting up libpkgconf3:amd64 (1.8.1-4) ...
- Setting up pkgconf-bin (1.8.1-4) ...
- Setting up zlib1g-dev:amd64 (1:1.3.dfsg+really1.3.1-1+b1) ...
- Setting up pkgconf:amd64 (1.8.1-4) ...
- Setting up pkg-config:amd64 (1.8.1-4) ...
- Processing triggers for libc-bin (2.41-12+deb13u2) ...
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved base.v0.16.5 (cached)
-> retrieved camlzip.1.14 (cached)
-> retrieved cmdliner.2.1.1 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved ctypes.0.24.0, ctypes-foreign.0.24.0 (cached)
-> installed conf-pkg-config.4
-> installed conf-libffi.2.0.0
-> installed csexp.1.5.2
-> installed conf-zlib.1
-> retrieved dune-configurator.3.23.0~alpha2 (cached)
-> retrieved integers.0.7.0 (cached)
-> retrieved jane-street-headers.v0.16.0 (cached)
-> retrieved jst-config.v0.16.0 (cached)
-> installed jane-street-headers.v0.16.0
-> installed cmdliner.2.1.1
-> installed dune-configurator.3.23.0~alpha2
-> retrieved libtorch.1.1.0 (3 extra sources)
-> retrieved libtorch.1.1.0 (3 extra sources)
-> retrieved libtorch.1.1.0 (3 extra sources)
-> retrieved npy.0.0.9 (cached)
-> retrieved num.1.6 (cached)
-> retrieved ocaml-compiler-libs.v0.12.4 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved parsexp.v0.16.0 (cached)
-> retrieved ppx_assert.v0.16.0 (cached)
-> retrieved ppx_base.v0.16.0 (cached)
-> retrieved ppx_cold.v0.16.0 (cached)
-> retrieved ppx_compare.v0.16.0 (cached)
-> retrieved ppx_custom_printf.v0.16.0 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved ppx_enumerate.v0.16.0 (cached)
-> retrieved ppx_expect.v0.16.2 (cached)
-> retrieved ppx_globalize.v0.16.0 (cached)
-> retrieved ppx_hash.v0.16.0 (cached)
-> retrieved ppx_here.v0.16.0 (cached)
-> retrieved ppx_inline_test.v0.16.1 (cached)
-> retrieved ppx_optcomp.v0.16.0 (cached)
-> retrieved ppx_sexp_conv.v0.16.0 (cached)
-> retrieved ppxlib.0.35.0 (cached)
-> retrieved re.1.14.0 (cached)
-> retrieved result.1.5 (cached)
-> retrieved sexplib.v0.16.0 (cached)
-> retrieved sexplib0.v0.16.0 (cached)
-> retrieved stb_image.0.5 (cached)
-> retrieved stdio.v0.16.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved time_now.v0.16.0 (cached)
-> retrieved torch.0.4 (https://opam.ocaml.org/cache)
-> installed libtorch.1.1.0
-> installed num.1.6
-> installed ocaml-compiler-libs.v0.12.4
-> installed ppx_derivers.1.2.1
-> installed re.1.14.0
-> installed result.1.5
-> installed sexplib0.v0.16.0
-> installed stdlib-shims.0.3.0
-> installed ocamlfind.1.9.8
-> installed integers.0.7.0
-> installed camlzip.1.14
-> installed npy.0.0.9
-> installed parsexp.v0.16.0
-> installed sexplib.v0.16.0
-> installed ctypes.0.24.0
-> installed base.v0.16.5
-> installed stdio.v0.16.0
-> installed ctypes-foreign.0.24.0
-> installed stb_image.0.5
-> installed ppxlib.0.35.0
-> installed ppx_globalize.v0.16.0
-> installed ppx_optcomp.v0.16.0
-> installed ppx_here.v0.16.0
-> installed ppx_cold.v0.16.0
-> installed ppx_enumerate.v0.16.0
-> installed ppx_compare.v0.16.0
-> installed ppx_sexp_conv.v0.16.0
-> installed ppx_hash.v0.16.0
-> installed ppx_custom_printf.v0.16.0
-> installed ppx_assert.v0.16.0
-> installed ppx_base.v0.16.0
-> installed jst-config.v0.16.0
-> installed time_now.v0.16.0
-> installed ppx_inline_test.v0.16.1
-> installed ppx_expect.v0.16.2
[ERROR] The compilation of torch.0.4 failed at "dune build -p torch -j 71".
#=== ERROR while compiling torch.0.4 ==========================================#
# context 2.5.1 | linux/x86_64 | ocaml-base-compiler.4.14.3 | file:///home/opam/opam-repository
# path ~/.opam/4.14/.opam-switch/build/torch.0.4
# command ~/.opam/opam-init/hooks/sandbox.sh build dune build -p torch -j 71
# exit-code 1
# env-file ~/.opam/log/torch-7-1fc031.env
# output-file ~/.opam/log/torch-7-1fc031.out
### output ###
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/config/.discover.eobjs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/csexp -I /home/opam/.opam/4.14/lib/dune-configurator -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -no-alias-deps -o src/config/.discover.eobjs/byte/discover.cmo -c -impl src/config/discover.ml)
# File "src/config/discover.ml", line 9, characters 13-33:
# 9 | let ( /^ ) = Caml.Filename.concat
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 10, characters 18-38:
# 10 | let file_exists = Caml.Sys.file_exists
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 42, characters 38-59:
# 42 | if file_exists libdir && Caml.Sys.is_directory libdir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 34, characters 4-20:
# 34 | Caml.Sys.readdir conda_prefix
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 50, characters 8-27:
# 50 | match Caml.Sys.getenv_opt "LIBTORCH" with
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 54, characters 19-38:
# 54 | Option.bind (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 60, characters 13-32:
# 60 | (match Caml.Sys.getenv_opt "OPAM_SWITCH_PREFIX" with
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 70, characters 28-49:
# 70 | if file_exists cudadir && Caml.Sys.is_directory cudadir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 94, characters 11-30:
# 94 | (Caml.Sys.getenv_opt "CONDA_PREFIX")
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 100, characters 16-35:
# 100 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with Some v -> v | None -> "0"
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/config/.discover.eobjs/byte -I src/config/.discover.eobjs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/csexp -I /home/opam/.opam/4.14/lib/dune-configurator -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -intf-suffix .ml -no-alias-deps -o src/config/.discover.eobjs/native/discover.cmx -c -impl src/config/discover.ml)
# File "src/config/discover.ml", line 9, characters 13-33:
# 9 | let ( /^ ) = Caml.Filename.concat
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 10, characters 18-38:
# 10 | let file_exists = Caml.Sys.file_exists
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 42, characters 38-59:
# 42 | if file_exists libdir && Caml.Sys.is_directory libdir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 34, characters 4-20:
# 34 | Caml.Sys.readdir conda_prefix
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 50, characters 8-27:
# 50 | match Caml.Sys.getenv_opt "LIBTORCH" with
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 54, characters 19-38:
# 54 | Option.bind (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 60, characters 13-32:
# 60 | (match Caml.Sys.getenv_opt "OPAM_SWITCH_PREFIX" with
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 70, characters 28-49:
# 70 | if file_exists cudadir && Caml.Sys.is_directory cudadir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 94, characters 11-30:
# 94 | (Caml.Sys.getenv_opt "CONDA_PREFIX")
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 100, characters 16-35:
# 100 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with Some v -> v | None -> "0"
# ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/wrapper/dune", line 4, characters 11-22:
# 4 | (c_names torch_stubs)
# ^^^^^^^^^^^
# (cd _build/default/src/wrapper && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -I /home/opam/.opam/4.14/lib/ocaml -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/stdlib-shims -o torch_stubs.o -c torch_stubs.c)
# torch_stubs.c: In function 'caml__30_at_save':
# torch_stubs.c:231:18: warning: passing argument 2 of 'at_save' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 231 | at_save(x224, x225);
# | ^~~~
# In file included from torch_stubs.c:1:
# torch_api.h:55:28: note: expected 'char *' but argument is of type 'const char *'
# 55 | void at_save(tensor, char *filename);
# | ~~~~~~^~~~~~~~
# torch_stubs.c: In function 'caml__31_at_load':
# torch_stubs.c:237:25: warning: passing argument 1 of 'at_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 237 | void* x229 = at_load(x228);
# | ^~~~
# torch_api.h:56:22: note: expected 'char *' but argument is of type 'const char *'
# 56 | tensor at_load(char *filename);
# | ~~~~~~^~~~~~~~
# torch_stubs.c: In function 'caml__32_at_save_multi':
# torch_stubs.c:246:36: warning: passing argument 4 of 'at_save_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 246 | at_save_multi(x234, x235, x236, x239);
# | ^~~~
# torch_api.h:58:78: note: expected 'char *' but argument is of type 'const char *'
# 58 | void at_save_multi(tensor *tensors, char **tensor_names, int ntensors, char *filename);
# | ~~~~~~^~~~~~~~
# torch_stubs.c: In function 'caml__33_at_load_multi':
# torch_stubs.c:255:36: warning: passing argument 4 of 'at_load_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 255 | at_load_multi(x245, x246, x247, x250);
# | ^~~~
# torch_api.h:60:78: note: expected 'char *' but argument is of type 'const char *'
# 60 | void at_load_multi(tensor *tensors, char **tensor_names, int ntensors, char *filename);
# | ~~~~~~^~~~~~~~
# torch_stubs.c: In function 'caml__34_at_load_multi_':
# torch_stubs.c:264:37: warning: passing argument 4 of 'at_load_multi_' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 264 | at_load_multi_(x256, x257, x258, x261);
# | ^~~~
# torch_api.h:62:79: note: expected 'char *' but argument is of type 'const char *'
# 62 | void at_load_multi_(tensor *tensors, char **tensor_names, int ntensors, char *filename);
# | ~~~~~~^~~~~~~~
# torch_stubs.c: In function 'caml__35_at_load_callback':
# torch_stubs.c:271:21: warning: passing argument 1 of 'at_load_callback' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 271 | at_load_callback(x265, x266);
# | ^~~~
# torch_api.h:64:29: note: expected 'char *' but argument is of type 'const char *'
# 64 | void at_load_callback(char *filename, void (*f)(char *, tensor));
# | ~~~~~~^~~~~~~~
# torch_stubs.c:271:27: error: passing argument 2 of 'at_load_callback' from incompatible pointer type [-Wincompatible-pointer-types]
# 271 | at_load_callback(x265, x266);
# | ^~~~
# | |
# | void (*)(const char *, void *)
# torch_api.h:64:46: note: expected 'void (*)(char *, void *)' but argument is of type 'void (*)(const char *, void *)'
# 64 | void at_load_callback(char *filename, void (*f)(char *, tensor));
# | ~~~~~~~^~~~~~~~~~~~~~~~~~
# torch_stubs.c: In function 'caml__60_atm_load':
# torch_stubs.c:452:26: warning: passing argument 1 of 'atm_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
# 452 | void* x429 = atm_load(x428);
# | ^~~~
# torch_api.h:107:17: note: expected 'char *' but argument is of type 'const char *'
# 107 | module atm_load(char *);
# | ^~~~~~
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Mnist_helper.cmo -c -impl src/torch/mnist_helper.ml)
# File "src/torch/mnist_helper.ml", line 36, characters 17-37:
# 36 | let filename = Caml.Filename.concat prefix in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Cifar_helper.cmo -c -impl src/torch/cifar_helper.ml)
# File "src/torch/cifar_helper.ml", line 43, characters 26-46:
# 43 | let read_one filename = Caml.Filename.concat dirname filename |> read_file in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/cifar_helper.ml", line 62, characters 21-41:
# 62 | let cache_file = Caml.Filename.concat dirname "cifar-cache.ot" in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Text_helper.cmo -c -impl src/torch/text_helper.ml)
# File "src/torch/text_helper.ml", line 50, characters 4-22:
# 50 | Caml.Gc.full_major ()
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Dataset_helper.cmo -c -impl src/torch/dataset_helper.ml)
# File "src/torch/dataset_helper.ml", line 138, characters 4-22:
# 138 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 179, characters 4-22:
# 179 | Caml.Gc.full_major ()
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 186, characters 8-26:
# 186 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 193, characters 8-26:
# 193 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Checkpointing.cmo -c -impl src/torch/checkpointing.ml)
# File "src/torch/checkpointing.ml", line 4, characters 16-37:
# 4 | let dirname = Caml.Filename.dirname checkpoint_base in
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 5, characters 17-39:
# 5 | let basename = Caml.Filename.basename checkpoint_base in
# ^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 14, characters 24-47:
# 14 | |> List.sort ~compare:Caml.Pervasives.compare
# ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 14, characters 24-47:
# 14 | |> List.sort ~compare:Caml.Pervasives.compare
# ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml.Pervasives
# Use Stdlib instead.
#
# If you need to stay compatible with OCaml < 4.07, you can use the
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "src/torch/checkpointing.ml", line 12, characters 44-64:
# 12 | (try Some (Int.of_string suffix, Caml.Filename.concat dirname filename)
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 6, characters 2-18:
# 6 | Caml.Sys.readdir dirname
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/byte/torch__Tensor.cmo -c -impl src/torch/tensor.ml)
# File "src/torch/tensor.ml", line 206, characters 4-32:
# 206 | Caml.Format.pp_print_newline formatter ();
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 207, characters 4-31:
# 207 | Caml.Format.pp_print_string formatter (to_string t ~line_size:96);
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 208, characters 4-32:
# 208 | Caml.Format.pp_print_newline formatter () )
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 213, characters 7-34:
# 213 | |> Caml.Format.pp_print_string formatter
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlc.opt -w -40 -g -bin-annot -I src/vision/.torch_vision.objs/byte -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stb_image -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/torch/.torch.objs/byte -I src/wrapper/.torch_core.objs/byte -intf-suffix .ml -no-alias-deps -open Torch_vision -o src/vision/.torch_vision.objs/byte/torch_vision__Image.cmo -c -impl src/vision/image.ml)
# File "src/vision/image.ml", line 81, characters 10-31:
# 81 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 82, characters 14-30:
# 82 | let files = Caml.Sys.readdir dir |> Array.to_list in
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 87, characters 26-46:
# 87 | match load_image (Caml.Filename.concat dir filename) ?resize with
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 155, characters 12-33:
# 155 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 160, characters 28-48:
# 160 | let next_dir = Caml.Filename.concat dir file in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 161, characters 16-37:
# 161 | if Caml.Sys.is_directory next_dir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 158, characters 6-22:
# 158 | Caml.Sys.readdir dir
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 180, characters 41-61:
# 180 | load_image ?resize:t.resize (Caml.Filename.concat dir file)
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 191, characters 37-57:
# 191 | load_image ?resize:t.resize (Caml.Filename.concat dir file) |> Or_error.ok_exn )
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Tensor.cmx -c -impl src/torch/tensor.ml)
# File "src/torch/tensor.ml", line 206, characters 4-32:
# 206 | Caml.Format.pp_print_newline formatter ();
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 207, characters 4-31:
# 207 | Caml.Format.pp_print_string formatter (to_string t ~line_size:96);
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 208, characters 4-32:
# 208 | Caml.Format.pp_print_newline formatter () )
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 213, characters 7-34:
# 213 | |> Caml.Format.pp_print_string formatter
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Text_helper.cmx -c -impl src/torch/text_helper.ml)
# File "src/torch/text_helper.ml", line 50, characters 4-22:
# 50 | Caml.Gc.full_major ()
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Dataset_helper.cmx -c -impl src/torch/dataset_helper.ml)
# File "src/torch/dataset_helper.ml", line 138, characters 4-22:
# 138 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 179, characters 4-22:
# 179 | Caml.Gc.full_major ()
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 186, characters 8-26:
# 186 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 193, characters 8-26:
# 193 | Caml.Gc.full_major ();
# ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Mnist_helper.cmx -c -impl src/torch/mnist_helper.ml)
# File "src/torch/mnist_helper.ml", line 36, characters 17-37:
# 36 | let filename = Caml.Filename.concat prefix in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Cifar_helper.cmx -c -impl src/torch/cifar_helper.ml)
# File "src/torch/cifar_helper.ml", line 43, characters 26-46:
# 43 | let read_one filename = Caml.Filename.concat dirname filename |> read_file in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/cifar_helper.ml", line 62, characters 21-41:
# 62 | let cache_file = Caml.Filename.concat dirname "cifar-cache.ot" in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch -o src/torch/.torch.objs/native/torch__Checkpointing.cmx -c -impl src/torch/checkpointing.ml)
# File "src/torch/checkpointing.ml", line 4, characters 16-37:
# 4 | let dirname = Caml.Filename.dirname checkpoint_base in
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 5, characters 17-39:
# 5 | let basename = Caml.Filename.basename checkpoint_base in
# ^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 14, characters 24-47:
# 14 | |> List.sort ~compare:Caml.Pervasives.compare
# ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 14, characters 24-47:
# 14 | |> List.sort ~compare:Caml.Pervasives.compare
# ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml.Pervasives
# Use Stdlib instead.
#
# If you need to stay compatible with OCaml < 4.07, you can use the
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "src/torch/checkpointing.ml", line 12, characters 44-64:
# 12 | (try Some (Int.of_string suffix, Caml.Filename.concat dirname filename)
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 6, characters 2-18:
# 6 | Caml.Sys.readdir dirname
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlopt.opt -w -40 -g -I src/vision/.torch_vision.objs/byte -I src/vision/.torch_vision.objs/native -I /home/opam/.opam/4.14/lib/base -I /home/opam/.opam/4.14/lib/base/base_internalhash_types -I /home/opam/.opam/4.14/lib/base/caml -I /home/opam/.opam/4.14/lib/base/shadow_stdlib -I /home/opam/.opam/4.14/lib/ctypes -I /home/opam/.opam/4.14/lib/ctypes-foreign -I /home/opam/.opam/4.14/lib/ctypes/stubs -I /home/opam/.opam/4.14/lib/integers -I /home/opam/.opam/4.14/lib/ocaml/threads -I /home/opam/.opam/4.14/lib/result -I /home/opam/.opam/4.14/lib/sexplib0 -I /home/opam/.opam/4.14/lib/stb_image -I /home/opam/.opam/4.14/lib/stdio -I /home/opam/.opam/4.14/lib/stdlib-shims -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -intf-suffix .ml -no-alias-deps -open Torch_vision -o src/vision/.torch_vision.objs/native/torch_vision__Image.cmx -c -impl src/vision/image.ml)
# File "src/vision/image.ml", line 81, characters 10-31:
# 81 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 82, characters 14-30:
# 82 | let files = Caml.Sys.readdir dir |> Array.to_list in
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 87, characters 26-46:
# 87 | match load_image (Caml.Filename.concat dir filename) ?resize with
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 155, characters 12-33:
# 155 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 160, characters 28-48:
# 160 | let next_dir = Caml.Filename.concat dir file in
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 161, characters 16-37:
# 161 | if Caml.Sys.is_directory next_dir
# ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 158, characters 6-22:
# 158 | Caml.Sys.readdir dir
# ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 180, characters 41-61:
# 180 | load_image ?resize:t.resize (Caml.Filename.concat dir file)
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 191, characters 37-57:
# 191 | load_image ?resize:t.resize (Caml.Filename.concat dir file) |> Or_error.ok_exn )
# ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build torch 0.4
+-
+- The following changes have been performed
| - install base v0.16.5
| - install camlzip 1.14
| - install cmdliner 2.1.1
| - install conf-libffi 2.0.0
| - install conf-pkg-config 4
| - install conf-zlib 1
| - install csexp 1.5.2
| - install ctypes 0.24.0
| - install ctypes-foreign 0.24.0
| - install dune-configurator 3.23.0~alpha2
| - install integers 0.7.0
| - install jane-street-headers v0.16.0
| - install jst-config v0.16.0
| - install libtorch 1.1.0
| - install npy 0.0.9
| - install num 1.6
| - install ocaml-compiler-libs v0.12.4
| - install ocamlfind 1.9.8
| - install parsexp v0.16.0
| - install ppx_assert v0.16.0
| - install ppx_base v0.16.0
| - install ppx_cold v0.16.0
| - install ppx_compare v0.16.0
| - install ppx_custom_printf v0.16.0
| - install ppx_derivers 1.2.1
| - install ppx_enumerate v0.16.0
| - install ppx_expect v0.16.2
| - install ppx_globalize v0.16.0
| - install ppx_hash v0.16.0
| - install ppx_here v0.16.0
| - install ppx_inline_test v0.16.1
| - install ppx_optcomp v0.16.0
| - install ppx_sexp_conv v0.16.0
| - install ppxlib 0.35.0
| - install re 1.14.0
| - install result 1.5
| - install sexplib v0.16.0
| - install sexplib0 v0.16.0
| - install stb_image 0.5
| - install stdio v0.16.0
| - install stdlib-shims 0.3.0
| - install time_now v0.16.0
+-
# 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-20260430070440.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 torch.0.4;
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 "\"debian-13\""; then
echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
fi;
test "$pkg" != 'torch.0.4' && 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
2026-04-30 07:09.47: Job failed: Failed: Build failed
2026-04-30 07:09.47: Log analysis:
2026-04-30 07:09.47: >>>
[ERROR] The compilation of torch.0.4 failed at "dune build -p torch -j 71".
(score = 20)
2026-04-30 07:09.47: >>>
# torch_stubs.c:271:27: error: passing argument 2 of 'at_load_callback' from incompatible pointer type [-Wincompatible-pointer-types]
(score = 30)
2026-04-30 07:09.47: passing argument 2 of 'at_load_callback' from incompatible pointer type [-Wincompatible-pointer-types]