Build:
- 0
2026-07-10 05:53.19: New job: build torch.0.4 (ecf76c232de3) 2026-07-10 05:53.19: Waiting for resource in pool day11-builds 2026-07-10 06:25.30: Got resource from pool day11-builds 2026-07-10 06:25.30: [profile full] build torch.0.4 2026-07-10 06:25.30: build torch.0.4 (ecf76c232de3) === DEPENDENCIES (48 transitive) === base.v0.16.5 d58a2d1b22ea base-threads.base 44df48f3da5c base-unix.base 4103cdc1c2b0 camlzip.1.14 d506690635b5 cmdliner.2.1.1 7b4f4e04f8a0 conf-libffi.2.0.0 444f470392e9 conf-pkg-config.5 f20b8fd18442 conf-zlib.1 22029c4a9272 csexp.1.5.2 6dc9939129f7 ctypes.0.24.0 5de59d879f73 ctypes-foreign.0.24.0 59b4c0f1662e dune.3.24.0 8e20d419a0c3 dune-configurator.3.24.0 bfec721b5b39 integers.0.8.0 61e170b81f24 jane-street-headers.v0.16.0 b656a1404e23 jst-config.v0.16.0 6037b5d4a28c libtorch.1.1.0 70e6b971d94d npy.0.0.9 e8a78251ce4d num.1.6 f7d596310390 ocaml.4.14.4 102dc3e5fa82 ocaml-base-compiler.4.14.4 d672c72d61b6 ocaml-compiler-libs.v0.12.4 224f6a23d12a ocaml-config.2 3617b67e52d8 ocamlfind.1.9.8 d50114f584c6 parsexp.v0.16.0 31491c2e1365 ppx_assert.v0.16.0 d40f512270d1 ppx_base.v0.16.0 df1c578d5d84 ppx_cold.v0.16.0 9f7c501dcc9b ppx_compare.v0.16.0 9597f29b9ded ppx_custom_printf.v0.16.0 3f80d930c674 ppx_derivers.1.2.1 06d0481bb8cf ppx_enumerate.v0.16.0 b9c640ff9cc7 ppx_expect.v0.16.2 2c68d061f8ab ppx_globalize.v0.16.0 877893b3cd2c ppx_hash.v0.16.0 079cfbac611f ppx_here.v0.16.0 dce668ee3be7 ppx_inline_test.v0.16.1 e3e3655069e3 ppx_optcomp.v0.16.0 06f851aa92a3 ppx_sexp_conv.v0.16.0 238392fb138d ppxlib.0.35.0 1494a85bed73 re.1.14.0 cbcade18692f result.1.5 2f9e8a49d856 sexplib.v0.16.0 2e1f363ddca5 sexplib0.v0.16.0 8eb5dc58e612 stb_image.0.5 e6e02bef8f6f stdio.v0.16.0 2854902eca0f stdlib-shims.0.3.0 4e07e33a84d2 time_now.v0.16.0 36312cae7a04 === STDOUT === Processing: [default: loading data] [torch.0.4: dl] [torch.0.4: extract] -> retrieved torch.0.4 (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.4) - (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 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/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 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/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__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/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 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/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 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/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 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/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 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/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) - ^^^^^^^^^^^^^^^^^^^^ - 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/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 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/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 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/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 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/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 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/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) - ^^^^^^^^^^^^^^^^^^^^ - 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 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/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 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/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 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] The compilation of torch.0.4 failed at "dune build -p torch -j 39". build failed... === STDERR === 2026-07-10 06:29.03: FAILED: build torch.0.4 2026-07-10 06:29.03: Job failed: build failed: torch.0.4