package torch

  1. Overview
  2. Docs
On This Page
  1. Error log

torch 0.3

Error log

The package failed to build. The error log from opam follows.

[NOTE] Package dune is already installed (current version is 3.17.2).
[NOTE] Package ocamlfind is already installed (current version is 1.9.8).
The following actions will be performed:
=== install 45 packages
  - install base                v0.16.3
  - install bigarray-compat     1.1.0
  - install camlzip             1.13
  - install cmdliner            1.3.0
  - install conf-bash           1
  - install conf-libffi         2.0.0
  - install conf-pkg-config     4
  - install conf-zlib           1
  - install csexp               1.5.2
  - install ctypes              0.23.0
  - install ctypes-foreign      0.23.0
  - install dune-configurator   3.17.2
  - install integers            0.7.0
  - install jane-street-headers v0.16.0
  - install jst-config          v0.16.0
  - install libtorch            1.0.1
  - install npy                 0.0.9
  - install num                 1.5-1
  - install ocaml-compiler-libs v0.12.4
  - 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.1
  - 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.12.0
  - install result              1.5
  - install seq                 base
  - 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
  - install torch               0.3

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"
- debconf: delaying package configuration, since apt-utils is not installed
- 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 ... 18745 files and directories currently installed.)
- Preparing to unpack .../0-libffi-dev_3.4.4-1_amd64.deb ...
- Unpacking libffi-dev:amd64 (3.4.4-1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../1-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../2-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../3-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../4-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Selecting previously unselected package zlib1g-dev:amd64.
- Preparing to unpack .../5-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Setting up libffi-dev:amd64 (3.4.4-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved camlzip.1.13  (cached)
-> retrieved base.v0.16.3  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-bash.1
-> installed conf-pkg-config.4
-> retrieved ctypes.0.23.0, ctypes-foreign.0.23.0  (cached)
-> installed bigarray-compat.1.1.0
-> retrieved integers.0.7.0  (cached)
-> installed conf-libffi.2.0.0
-> installed conf-zlib.1
-> retrieved jane-street-headers.v0.16.0  (cached)
-> retrieved libtorch.1.0.1  (cached)
-> retrieved dune-configurator.3.17.2  (cached)
-> retrieved jst-config.v0.16.0  (cached)
-> retrieved npy.0.0.9  (cached)
-> retrieved num.1.5-1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (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_globalize.v0.16.0  (cached)
-> retrieved ppx_expect.v0.16.1  (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 result.1.5  (cached)
-> retrieved seq.base  (cached)
-> retrieved re.1.12.0  (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 ppxlib.0.35.0  (cached)
-> installed libtorch.1.0.1
-> installed camlzip.1.13
-> retrieved torch.0.3  (https://github.com/LaurentMazare/ocaml-torch/archive/0.3.tar.gz)
-> installed cmdliner.1.3.0
-> installed csexp.1.5.2
-> installed jane-street-headers.v0.16.0
-> installed ocaml-compiler-libs.v0.12.4
-> installed ppx_derivers.1.2.1
-> installed result.1.5
-> installed seq.base
-> installed sexplib0.v0.16.0
-> installed stdlib-shims.0.3.0
-> installed num.1.5-1
-> installed npy.0.0.9
-> installed integers.0.7.0
-> installed re.1.12.0
-> installed parsexp.v0.16.0
-> installed dune-configurator.3.17.2
-> installed sexplib.v0.16.0
-> installed stb_image.0.5
-> installed ctypes.0.23.0
-> installed base.v0.16.3
-> installed stdio.v0.16.0
-> installed ctypes-foreign.0.23.0
-> installed ppxlib.0.35.0
-> installed ppx_globalize.v0.16.0
-> installed ppx_optcomp.v0.16.0
-> installed ppx_cold.v0.16.0
-> installed ppx_enumerate.v0.16.0
-> installed ppx_here.v0.16.0
-> installed ppx_compare.v0.16.0
-> installed ppx_sexp_conv.v0.16.0
-> installed ppx_hash.v0.16.0
-> installed ppx_assert.v0.16.0
-> installed ppx_custom_printf.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.1
[ERROR] The compilation of torch.0.3 failed at "dune build -p torch -j 71".

#=== ERROR while compiling torch.0.3 ==========================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///src
# path                 ~/.opam/4.14/.opam-switch/build/torch.0.3
# command              ~/.opam/4.14/bin/dune build -p torch -j 71
# exit-code            1
# env-file             ~/.opam/log/torch-113-94e394.env
# output-file          ~/.opam/log/torch-113-94e394.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 10, characters 11-31:
# 10 | let (/^) = Caml.Filename.concat
#                 ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 11, characters 18-38:
# 11 | 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 41, characters 35-56:
# 41 |           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 33, characters 4-20:
# 33 |     Caml.Sys.readdir conda_prefix
#          ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 49, characters 8-27:
# 49 |   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 52, characters 10-29:
# 52 |     match Caml.Sys.getenv_opt "CONDA_PREFIX" with
#                ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 55, characters 12-31:
# 55 |       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 65, characters 28-49:
# 65 |   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 97, characters 26-45:
# 97 |         Option.value_map (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
#                                ^^^^^^^^^^^^^^^^^^^
# 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 10, characters 11-31:
# 10 | let (/^) = Caml.Filename.concat
#                 ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 11, characters 18-38:
# 11 | 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 41, characters 35-56:
# 41 |           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 33, characters 4-20:
# 33 |     Caml.Sys.readdir conda_prefix
#          ^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 49, characters 8-27:
# 49 |   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 52, characters 10-29:
# 52 |     match Caml.Sys.getenv_opt "CONDA_PREFIX" with
#                ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/config/discover.ml", line 55, characters 12-31:
# 55 |       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 65, characters 28-49:
# 65 |   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 97, characters 26-45:
# 97 |         Option.value_map (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
#                                ^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# (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/bigarray-compat -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__29_at_save':
# torch_stubs.c:225:18: warning: passing argument 2 of 'at_save' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   225 |    at_save(x221, x222);
#       |                  ^~~~
# 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__30_at_load':
# torch_stubs.c:231:25: warning: passing argument 1 of 'at_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   231 |    void* x226 = at_load(x225);
#       |                         ^~~~
# 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__31_at_save_multi':
# torch_stubs.c:240:36: warning: passing argument 4 of 'at_save_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   240 |    at_save_multi(x231, x232, x233, x236);
#       |                                    ^~~~
# 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__32_at_load_multi':
# torch_stubs.c:249:36: warning: passing argument 4 of 'at_load_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   249 |    at_load_multi(x242, x243, x244, x247);
#       |                                    ^~~~
# 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__33_at_load_multi_':
# torch_stubs.c:258:37: warning: passing argument 4 of 'at_load_multi_' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   258 |    at_load_multi_(x253, x254, x255, x258);
#       |                                     ^~~~
# 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__34_at_load_callback':
# torch_stubs.c:265:21: warning: passing argument 1 of 'at_load_callback' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   265 |    at_load_callback(x262, x263);
#       |                     ^~~~
# 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:265:27: warning: passing argument 2 of 'at_load_callback' from incompatible pointer type [-Wincompatible-pointer-types]
#   265 |    at_load_callback(x262, x263);
#       |                           ^~~~
#       |                           |
#       |                           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__61_atm_load':
# torch_stubs.c:457:26: warning: passing argument 1 of 'atm_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   457 |    void* x433 = atm_load(x432);
#       |                          ^~~~
# torch_api.h:109:17: note: expected 'char *' but argument is of type 'const char *'
#   109 | module atm_load(char *);
#       |                 ^~~~~~
# File "src/wrapper/dune", lines 1-8, characters 0-311:
# 1 | (library
# 2 |   (name torch_core)
# 3 |   (public_name torch.core)
# 4 |   (c_names torch_stubs)
# 5 |   (cxx_names torch_api)
# 6 |   (cxx_flags -std=c++11 (:include cxx_flags.sexp) -D_GLIBCXX_USE_CXX11_ABI=0)
# 7 |   (c_library_flags :standard -lstdc++ (:include c_library_flags.sexp))
# 8 |   (libraries bigarray ctypes.foreign ctypes.stubs ctypes))
# (cd _build/default && /home/opam/.opam/4.14/bin/ocamlmklib.opt -g -o src/wrapper/torch_core_stubs src/wrapper/torch_stubs.o src/wrapper/torch_api.o -ldopt -lstdc++ -ldopt -Wl,-rpath,/home/opam/.opam/4.14/lib/libtorch/lib -ldopt -L/home/opam/.opam/4.14/lib/libtorch/lib -ldopt -lc10 -ldopt -lcaffe2 -ldopt -ltorch)
# /usr/bin/ld: src/wrapper/torch_api.o: warning: relocation against `_ZTVN5torch5optim3SGDE' in read-only section `.text._ZN5torch5optim3SGDC2ISt6vectorIN2at6TensorESaIS5_EEEEOT_RKNS0_10SGDOptionsE[_ZN5torch5optim3SGDC5ISt6vectorIN2at6TensorESaIS5_EEEEOT_RKNS0_10SGDOptionsE]'
# /usr/bin/ld: src/wrapper/torch_api.o: relocation R_X86_64_PC32 against symbol `_ZN3c105ErrorD1Ev' can not be used when making a shared object; recompile with -fPIC
# /usr/bin/ld: final link failed: bad value
# collect2: error: ld returned 1 exit status
# (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/bigarray-compat -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/bigarray-compat -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 65, characters 21-41:
# 65 |     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/bigarray-compat -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 49, characters 4-22:
# 49 |     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/bigarray-compat -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 15, characters 24-47:
# 15 |   |> List.sort ~compare:Caml.Pervasives.compare
#                              ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 15, characters 24-47:
# 15 |   |> 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 13, characters 38-58:
# 13 |           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/bigarray-compat -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 180, characters 4-22:
# 180 |     Caml.Gc.full_major ()
#           ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 187, characters 6-24:
# 187 |       Caml.Gc.full_major ();
#             ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 194, characters 6-24:
# 194 |       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/bigarray-compat -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 200, characters 4-32:
# 200 |     Caml.Format.pp_print_newline formatter ();
#           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 201, characters 4-31:
# 201 |     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 202, characters 4-32:
# 202 |     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 7-34:
# 207 |     |> 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/bigarray-compat -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 70, characters 10-31:
# 70 |   if not (Caml.Sys.is_directory dir)
#                ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 72, characters 14-30:
# 72 |   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 77, characters 24-44:
# 77 |       match load_image (Caml.Filename.concat dir filename) ?resize with
#                              ^^^^^^^^^^^^^^^^^^^^
# 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/bigarray-compat -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 200, characters 4-32:
# 200 |     Caml.Format.pp_print_newline formatter ();
#           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/tensor.ml", line 201, characters 4-31:
# 201 |     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 202, characters 4-32:
# 202 |     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 7-34:
# 207 |     |> 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/bigarray-compat -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 49, characters 4-22:
# 49 |     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/bigarray-compat -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 180, characters 4-22:
# 180 |     Caml.Gc.full_major ()
#           ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 187, characters 6-24:
# 187 |       Caml.Gc.full_major ();
#             ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/dataset_helper.ml", line 194, characters 6-24:
# 194 |       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/bigarray-compat -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 65, characters 21-41:
# 65 |     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/bigarray-compat -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/bigarray-compat -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 15, characters 24-47:
# 15 |   |> List.sort ~compare:Caml.Pervasives.compare
#                              ^^^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/torch/checkpointing.ml", line 15, characters 24-47:
# 15 |   |> 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 13, characters 38-58:
# 13 |           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/bigarray-compat -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 70, characters 10-31:
# 70 |   if not (Caml.Sys.is_directory dir)
#                ^^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml
# File "src/vision/image.ml", line 72, characters 14-30:
# 72 |   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 77, characters 24-44:
# 77 |       match load_image (Caml.Filename.concat dir filename) ?resize with
#                              ^^^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Caml
# [since v0.16] use Stdlib instead of Caml



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build torch 0.3
+- 
+- The following changes have been performed
| - install base                v0.16.3
| - install bigarray-compat     1.1.0
| - install camlzip             1.13
| - install cmdliner            1.3.0
| - install conf-bash           1
| - install conf-libffi         2.0.0
| - install conf-pkg-config     4
| - install conf-zlib           1
| - install csexp               1.5.2
| - install ctypes              0.23.0
| - install ctypes-foreign      0.23.0
| - install dune-configurator   3.17.2
| - install integers            0.7.0
| - install jane-street-headers v0.16.0
| - install jst-config          v0.16.0
| - install libtorch            1.0.1
| - install npy                 0.0.9
| - install num                 1.5-1
| - install ocaml-compiler-libs v0.12.4
| - 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.1
| - 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.12.0
| - install result              1.5
| - install seq                 base
| - 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-20250206024430.export"
OCaml

Innovation. Community. Security.