Build:
- 0
2026-11-08 00:19.15: New job: build torch.0.5 (6246c0a9aaf0) 2026-11-08 00:19.15: Waiting for resource in pool day11-builds 2026-11-08 00:20.09: Got resource from pool day11-builds 2026-11-08 00:20.09: [profile full] build torch.0.5 2026-11-08 00:20.09: build torch.0.5 (6246c0a9aaf0) === DEPENDENCIES (48 transitive) === base.v0.16.5 18fba7dfaf76 base-threads.base e5afefc1e615 base-unix.base 52b3a79a2336 camlzip.1.14 1cc53e459f69 cmdliner.2.1.1 7db4a77f364b conf-libffi.2.0.0 d417548d8ca8 conf-pkg-config.5 918c1ea9acfc conf-zlib.1 5f1d2d2856e8 csexp.1.5.2 5f294e18b52f ctypes.0.24.0 5a7bf704a832 ctypes-foreign.0.24.0 738b73e54be4 dune.3.24.2 e62732e166f0 dune-configurator.3.24.2 b28617b87c8d integers.0.8.0 a9f1cd19ef30 jane-street-headers.v0.16.0 1bc0fdce317f jst-config.v0.16.0 d590a75201e2 libtorch.1.1.0 d12ce9d1571d npy.0.0.9 54752b8b2c92 num.1.6 f10943c026fa ocaml.4.14.5 59c49aa9a147 ocaml-base-compiler.4.14.5 06eff73c29ec ocaml-compiler-libs.v0.12.4 b22391fd0f58 ocaml-config.2 69d9a96fd308 ocamlfind.1.9.8 d07e0f862372 parsexp.v0.16.0 d615b7b42240 ppx_assert.v0.16.0 2a14d911fb1b ppx_base.v0.16.0 97e451123e68 ppx_cold.v0.16.0 afc51858d43c ppx_compare.v0.16.0 d6b6bbc5b6ac ppx_custom_printf.v0.16.0 6e13c3141bfc ppx_derivers.1.2.1 4970fe42051b ppx_enumerate.v0.16.0 7c59e3e7b9f1 ppx_expect.v0.16.2 64954538dad3 ppx_globalize.v0.16.0 cb5ab6429431 ppx_hash.v0.16.0 ab7ce8813661 ppx_here.v0.16.0 67f62a58ebcc ppx_inline_test.v0.16.1 422e37fa550c ppx_optcomp.v0.16.0 3889ba6a4919 ppx_sexp_conv.v0.16.0 9a1159840f4a ppxlib.0.35.0 2d82ff535131 re.1.14.0 749daa810a14 result.1.5 e616b41c3aa9 sexplib.v0.16.0 2785c0c40098 sexplib0.v0.16.0 351470b31b54 stb_image.0.5 41962e985885 stdio.v0.16.0 d6bcb8af324e stdlib-shims.0.3.0 e553fc2bf1ba time_now.v0.16.0 18db889ab686 === STDOUT === Processing: [default: loading data] [torch.0.5: dl] [torch.0.5: extract] -> retrieved torch.0.5 (https://opam.ocaml.org/cache) [torch: dune build] + /home/opam/.opam/default/bin/dune "build" "-p" "torch" "-j" "39" (CWD=/home/opam/.opam/default/.opam-switch/build/torch.0.5) - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/wrapper/.torch_core.objs/byte -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -open Torch_core -o src/wrapper/.torch_core.objs/byte/torch_core__Kind.cmo -c -impl src/wrapper/kind.ml) - File "src/wrapper/kind.ml", line 42, characters 12-28: - 42 | let ( = ) = Pervasives.( = ) - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Stdlib.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/wrapper/kind.ml", line 43, characters 13-30: - 43 | let ( <> ) = Pervasives.( <> ) - ^^^^^^^^^^^^^^^^^ - Alert deprecated: module Stdlib.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 - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/stdlib-shims -intf-suffix .ml -no-alias-deps -open Torch_core -o src/wrapper/.torch_core.objs/native/torch_core__Kind.cmx -c -impl src/wrapper/kind.ml) - File "src/wrapper/kind.ml", line 42, characters 12-28: - 42 | let ( = ) = Pervasives.( = ) - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Stdlib.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/wrapper/kind.ml", line 43, characters 13-30: - 43 | let ( <> ) = Pervasives.( <> ) - ^^^^^^^^^^^^^^^^^ - Alert deprecated: module Stdlib.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 - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/config/.discover.eobjs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/csexp -I /home/opam/.opam/default/lib/dune-configurator -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/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 11, characters 13-33: - 11 | let ( /^ ) = Caml.Filename.concat - ^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 12, characters 18-38: - 12 | 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 46, characters 38-59: - 46 | 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 38, characters 4-20: - 38 | Caml.Sys.readdir conda_prefix - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 54, characters 8-27: - 54 | 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 58, characters 19-38: - 58 | 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 64, characters 13-32: - 64 | (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 74, characters 28-49: - 74 | 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 103, characters 11-30: - 103 | (Caml.Sys.getenv_opt "CONDA_PREFIX") - ^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 109, characters 16-35: - 109 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with - ^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/config/.discover.eobjs/byte -I src/config/.discover.eobjs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/csexp -I /home/opam/.opam/default/lib/dune-configurator -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/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 11, characters 13-33: - 11 | let ( /^ ) = Caml.Filename.concat - ^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 12, characters 18-38: - 12 | 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 46, characters 38-59: - 46 | 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 38, characters 4-20: - 38 | Caml.Sys.readdir conda_prefix - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 54, characters 8-27: - 54 | 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 58, characters 19-38: - 58 | 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 64, characters 13-32: - 64 | (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 74, characters 28-49: - 74 | 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 103, characters 11-30: - 103 | (Caml.Sys.getenv_opt "CONDA_PREFIX") - ^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/config/discover.ml", line 109, characters 16-35: - 109 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with - ^^^^^^^^^^^^^^^^^^^ - 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/default/lib/ocaml -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/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/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 46, characters 26-46: - 46 | 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 67, characters 21-41: - 67 | 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/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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) with - ^^^^^^^^^^^^^^^^^^^^ - 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/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 35, characters 17-37: - 35 | 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/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 148, characters 4-22: - 148 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 190, characters 4-22: - 190 | Caml.Gc.full_major () - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 197, characters 8-26: - 197 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 204, characters 8-26: - 204 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 51, characters 4-22: - 51 | Caml.Gc.full_major () - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 210, characters 4-32: - 210 | Caml.Format.pp_print_newline formatter (); - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 211, characters 4-31: - 211 | 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 212, characters 4-32: - 212 | Caml.Format.pp_print_newline formatter ()) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 217, characters 7-34: - 217 | |> Caml.Format.pp_print_string formatter - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 363, characters 10-21: - 363 | else if Caml.( <> ) (shape t1) (shape t2) - ^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I src/vision/.torch_vision.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/result -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stb_image -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 160, characters 12-33: - 160 | 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 165, characters 28-48: - 165 | 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 166, characters 16-37: - 166 | 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 163, characters 6-22: - 163 | Caml.Sys.readdir dir - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/vision/image.ml", line 185, characters 41-61: - 185 | 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 196, characters 37-57: - 196 | 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/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 210, characters 4-32: - 210 | Caml.Format.pp_print_newline formatter (); - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 211, characters 4-31: - 211 | 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 212, characters 4-32: - 212 | Caml.Format.pp_print_newline formatter ()) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 217, characters 7-34: - 217 | |> Caml.Format.pp_print_string formatter - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/tensor.ml", line 363, characters 10-21: - 363 | else if Caml.( <> ) (shape t1) (shape t2) - ^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 51, characters 4-22: - 51 | Caml.Gc.full_major () - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 148, characters 4-22: - 148 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 190, characters 4-22: - 190 | Caml.Gc.full_major () - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 197, characters 8-26: - 197 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/torch/dataset_helper.ml", line 204, characters 8-26: - 204 | Caml.Gc.full_major (); - ^^^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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) with - ^^^^^^^^^^^^^^^^^^^^ - 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/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 46, characters 26-46: - 46 | 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 67, characters 21-41: - 67 | 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/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 35, characters 17-37: - 35 | 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/default/bin/ocamlopt.opt -w -40 -g -I src/vision/.torch_vision.objs/byte -I src/vision/.torch_vision.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/result -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stb_image -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/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 160, characters 12-33: - 160 | 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 165, characters 28-48: - 165 | 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 166, characters 16-37: - 166 | 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 163, characters 6-22: - 163 | Caml.Sys.readdir dir - ^^^^^^^^^^^^^^^^ - Alert deprecated: module Caml - [since v0.16] use Stdlib instead of Caml - File "src/vision/image.ml", line 185, characters 41-61: - 185 | 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 196, characters 37-57: - 196 | 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] The compilation of torch.0.5 failed at "dune build -p torch -j 39". build failed... === STDERR === 2026-11-08 00:23.07: FAILED: build torch.0.5 2026-11-08 00:23.07: Job failed: build failed: torch.0.5