Skip to content

Instantly share code, notes, and snippets.

@shubhamkumar13
Last active July 27, 2021 04:50
Show Gist options
  • Save shubhamkumar13/bacadeb95829211ad84c17532e49e1b9 to your computer and use it in GitHub Desktop.
Save shubhamkumar13/bacadeb95829211ad84c17532e49e1b9 to your computer and use it in GitHub Desktop.
#=== ERROR while compiling uutf.1.0.2 =========================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/uutf.1.0.2
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --pinned false --with-cmdliner true
# exit-code 1
# env-file ~/sandmark/_opam/log/uutf-22013-249b10.env
# output-file ~/sandmark/_opam/log/uutf-22013-249b10.out
### output ###
# [...]
# Alert deprecated: Bytes.create
# Use Bytes.create/BytesLabels.create instead.
# File "src/uutf.ml", line 61, characters 42-45:
# 61 | `Malformed Bytes.(unsafe_to_string (cat bs0 bs1))
# ^^^
# string
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/uutf.a' 'src/uutf.cmxs' 'src/uutf.cmxa' 'src/uutf.cma'
# 'src/uutf.cmx' 'src/uutf.cmi' 'src/uutf.mli' 'test/utftrip.native']: exited with 10
#=== ERROR while compiling uuidm.0.9.7 ========================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/uuidm.0.9.7
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --pinned false --with-cmdliner true
# exit-code 1
# env-file ~/sandmark/_opam/log/uuidm-22013-ade284.env
# output-file ~/sandmark/_opam/log/uuidm-22013-ade284.out
### output ###
# [...]
# Use Bytes.set/BytesLabels.set instead.
# File "src/uuidm.ml", line 54, characters 30-31:
# 54 | for i = 0 to ((Bytes.length m) / 64) - 1 do (* For each block *)
# ^
# Error: This expression has type bytes but an expression was expected of type
# string
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/uuidm.a' 'src/uuidm.cmxs' 'src/uuidm.cmxa'
# 'src/uuidm.cma' 'src/uuidm.cmx' 'src/uuidm.cmi' 'src/uuidm.mli'
# 'test/uuidtrip.native']: exited with 10
#=== ERROR while compiling rresult.0.6.0 ======================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/rresult.0.6.0
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --pinned false
# exit-code 1
# env-file ~/sandmark/_opam/log/rresult-22013-ca32d6.env
# output-file ~/sandmark/_opam/log/rresult-22013-ca32d6.out
### output ###
# [...]
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/shubham/sandmark/_opam/4.14.0+trunk/lib/ocaml, /home/shubham/sandmark/_opam/4.14.0+trunk/lib/ocaml/compiler-libs
# File "src/rresult_top.ml", line 7, characters 17-33:
# 7 | let () = ignore (Toploop.use_file Format.err_formatter "rresult_top_init.ml")
# ^^^^^^^^^^^^^^^^
# Error: Unbound value Toploop.use_file
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/rresult.a' 'src/rresult.cmxs' 'src/rresult.cmxa'
# 'src/rresult.cma' 'src/rresult.cmx' 'src/rresult.cmi' 'src/rresult.mli'
# 'src/rresult_top.a' 'src/rresult_top.cmxs' 'src/rresult_top.cmxa'
# 'src/rresult_top.cma' 'src/rresult_top.cmx' 'src/rresult_top_init.ml']: exited with 10
#=== ERROR while compiling react.1.2.1 ========================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/react.1.2.1
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --dev-pkg false
# exit-code 1
# env-file ~/sandmark/_opam/log/react-22013-71723b.env
# output-file ~/sandmark/_opam/log/react-22013-71723b.out
### output ###
# [...]
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /home/shubham/sandmark/_opam/4.14.0+trunk/lib/ocaml, /home/shubham/sandmark/_opam/4.14.0+trunk/lib/ocaml/compiler-libs
# File "src/react_top.ml", line 7, characters 17-33:
# 7 | let () = ignore (Toploop.use_file Format.err_formatter "react_top_init.ml")
# ^^^^^^^^^^^^^^^^
# Error: Unbound value Toploop.use_file
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/react.a' 'src/react.cmxs' 'src/react.cmxa'
# 'src/react.cma' 'src/react.cmx' 'src/react.cmi' 'src/react.mli'
# 'src/react_top.a' 'src/react_top.cmxs' 'src/react_top.cmxa'
# 'src/react_top.cma' 'src/react_top.cmx' 'src/react_top_init.ml']: exited with 10
#=== ERROR while compiling ocplib-endian.1.1 ==================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/ocplib-endian.1.1
# command ~/sandmark/_opam/4.14.0+trunk/bin/dune build -p ocplib-endian -j 27 @install
# exit-code 1
# env-file ~/sandmark/_opam/log/ocplib-endian-22013-ea1f8e.env
# output-file ~/sandmark/_opam/log/ocplib-endian-22013-ea1f8e.out
### output ###
# [...]
# Use Bytes.set/BytesLabels.set instead.
# File "endianBytes.cppo.ml", line 84, characters 12-13:
# Error: This expression has type Bytes.t = string
# but an expression was expected of type bytes
# ocamlopt src/.ocplib_endian.objs/native/endianString.{cmx,o} (exit 2)
# (cd _build/default && /home/shubham/sandmark/_opam/4.14.0+trunk/bin/ocamlopt.opt -w -40 -g -inline 1000 -I src/.ocplib_endian.objs/byte -I src/.ocplib_endian.objs/native -I /home/shubham/sandmark/_opam/4.14.0+trunk/lib/bytes -intf-suffix .ml -no-alias-deps -o src/.ocplib_endian.objs/native/endianString.cmx -c -impl src/endianString.ml)
# File "endianString.cppo.ml", line 80, characters 2-11:
# Alert deprecated: Bytes.set
# Use Bytes.set/BytesLabels.set instead.
# File "endianString.cppo.ml", line 80, characters 12-13:
# Error: This expression has type Bytes.t = string
# but an expression was expected of type bytes
#=== ERROR while compiling ocaml-migrate-parsetree.2.1.0+stock ================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/ocaml-migrate-parsetree.2.1.0+stock
# command ~/sandmark/_opam/4.14.0+trunk/bin/dune build -p ocaml-migrate-parsetree -j 27
# exit-code 1
# env-file ~/sandmark/_opam/log/ocaml-migrate-parsetree-22013-27a698.env
# output-file ~/sandmark/_opam/log/ocaml-migrate-parsetree-22013-27a698.out
### output ###
# ocaml src/ast-version (exit 1)
# (cd _build/default/src && /home/shubham/sandmark/_opam/4.14.0+trunk/bin/ocaml config/gen.ml 4.14.0+dev0-2021-06-03)
# Unknown O
#=== ERROR while compiling mtime.1.2.0 ========================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/mtime.1.2.0
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --pinned false --with-js_of_ocaml false
# exit-code 1
# env-file ~/sandmark/_opam/log/mtime-22013-7b76e4.env
# output-file ~/sandmark/_opam/log/mtime-22013-7b76e4.out
### output ###
# [...]
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/mtime.a' 'src/mtime.cmxs' 'src/mtime.cmxa'
# 'src/mtime.cma' 'src/mtime.cmx' 'src/mtime.cmi' 'src/mtime.mli'
# 'src/mtime_top.a' 'src/mtime_top.cmxs' 'src/mtime_top.cmxa'
# 'src/mtime_top.cma' 'src/mtime_top.cmx' 'src/mtime_top_init.ml'
# 'doc/index.mld' 'src-os/mtime_clock.a' 'src-os/mtime_clock.cmxs'
# 'src-os/mtime_clock.cmxa' 'src-os/mtime_clock.cma'
# 'src-os/mtime_clock.cmx' 'src-os/mtime_clock.cmi'
# 'src-os/mtime_clock.mli' 'src-os/dllmtime_clock_stubs.so'
# 'src-os/libmtime_clock_stubs.a' 'test-os/min_os.ml']: exited with 10
#=== ERROR while compiling fmt.0.8.9 ==========================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/fmt.0.8.9
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --dev-pkg false --with-base-unix true --with-cmdliner true
# exit-code 1
# env-file ~/sandmark/_opam/log/fmt-22013-474fed.env
# output-file ~/sandmark/_opam/log/fmt-22013-474fed.out
### output ###
# [...]
# Error: Unbound value Toploop.use_file
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/fmt.a' 'src/fmt.cmxs' 'src/fmt.cmxa' 'src/fmt.cma'
# 'src/fmt.cmx' 'src/fmt.cmi' 'src/fmt.mli' 'src/fmt_tty.a'
# 'src/fmt_tty.cmxs' 'src/fmt_tty.cmxa' 'src/fmt_tty.cma'
# 'src/fmt_tty.cmx' 'src/fmt_tty.cmi' 'src/fmt_tty.mli' 'src/fmt_cli.a'
# 'src/fmt_cli.cmxs' 'src/fmt_cli.cmxa' 'src/fmt_cli.cma'
# 'src/fmt_cli.cmx' 'src/fmt_cli.cmi' 'src/fmt_cli.mli' 'src/fmt_top.a'
# 'src/fmt_top.cmxs' 'src/fmt_top.cmxa' 'src/fmt_top.cma'
# 'src/fmt_top.cmx' 'src/fmt_tty_top_init.ml']: exited with 10
#=== ERROR while compiling base64.3.4.0 =======================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/base64.3.4.0
# command ~/sandmark/_opam/4.14.0+trunk/bin/dune build -p base64 -j 27
# exit-code 1
# env-file ~/sandmark/_opam/log/base64-22013-d2be80.env
# output-file ~/sandmark/_opam/log/base64-22013-d2be80.out
### output ###
# Error: This expression has type bytes but an expression was expected of type
# [...]
# ocamlopt src/.base64_rfc2045.objs/native/base64_rfc2045.{cmx,o} (exit 2)
# (cd _build/default && /home/shubham/sandmark/_opam/4.14.0+trunk/bin/ocamlopt.opt -w -40 -g -I src/.base64_rfc2045.objs/byte -I src/.base64_rfc2045.objs/native -I /home/shubham/sandmark/_opam/4.14.0+trunk/lib/bytes -intf-suffix .ml -no-alias-deps -o src/.base64_rfc2045.objs/native/base64_rfc2045.cmx -c -impl src/base64_rfc2045.ml)
# File "src/base64_rfc2045.ml", line 33, characters 36-52:
# 33 | let unsafe_set_chr source off chr = Bytes.unsafe_set source off chr
# ^^^^^^^^^^^^^^^^
# Alert deprecated: Bytes.unsafe_set
# File "src/base64_rfc2045.ml", line 52, characters 21-33:
# 52 | unsafe_set_chr state.buffer 0 (unsafe_chr ((quantum lsr 10) land 255)) ;
# ^^^^^^^^^^^^
# Error: This expression has type Bytes.t = string
# but an expression was expected of type bytes
#=== ERROR while compiling astring.0.8.5 ======================================#
# context 2.0.6 | linux/x86_64 | ocaml-base-compiler.4.14.0+trunk | file:///home/shubham/sandmark/dependencies
# path ~/sandmark/_opam/4.14.0+trunk/.opam-switch/build/astring.0.8.5
# command ~/sandmark/_opam/4.14.0+trunk/bin/ocaml pkg/pkg.ml build --pinned false
# exit-code 1
# env-file ~/sandmark/_opam/log/astring-22013-3e375b.env
# output-file ~/sandmark/_opam/log/astring-22013-3e375b.out
### output ###
# 6 | let () = ignore (Toploop.use_file Format.err_formatter "astring_top_init.ml")
# [...]
# Error: Unbound value Toploop.use_file
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
# 'README.md' 'src/astring.a' 'src/astring.cmxs' 'src/astring.cmxa'
# 'src/astring.cma' 'src/astring.cmx' 'src/astring.cmi' 'src/astring.mli'
# 'src/astring_string.cmx' 'src/astring_sub.cmx' 'src/astring_char.cmx'
# 'src/astring_escape.cmx' 'src/astring_base.cmx' 'src/astring_unsafe.cmx'
# 'src/astring_top.a' 'src/astring_top.cmxs' 'src/astring_top.cmxa'
# 'src/astring_top.cma' 'src/astring_top.cmx' 'src/astring_top_init.ml'
# 'test/examples.ml']: exited with 10
@shubhamkumar13
Copy link
Author

shubhamkumar13 commented Jul 26, 2021

things that I was able to install locally

base64
ocplib-endian
uuidm
uutf

@shubhamkumar13
Copy link
Author

shubhamkumar13 commented Jul 27, 2021

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build astring                 0.8.5
│ λ build base64                  3.4.0
│ λ build fmt                     0.8.9
│ λ build mtime                   1.2.0
│ λ build ocaml-migrate-parsetree 2.1.0+stock
│ λ build ocplib-endian           1.1
│ λ build react                   1.2.1
│ λ build rresult                 0.6.0
│ λ build uuidm                   0.9.7
│ λ build uutf                    1.0.2
└─

packages that fail locally

@shubhamkumar13
Copy link
Author

benchmarks that fail

File "benchmarks/chameneos/dune", line 5, characters 12-20:
5 |  (libraries lwt.unix))
                ^^^^^^^^
Error: Library "lwt.unix" not found.
Hint: try:
  dune external-lib-deps --missing --profile release --workspace ocaml-versions/.workspace.4.14.0+trunk @buildbench
File "benchmarks/irmin/dune", line 4, characters 32-40:
4 |     (libraries irmin irmin.mem lwt lwt.unix))
                                    ^^^^^^^^
Error: Library "lwt.unix" not found.
Hint: try:
  dune external-lib-deps --missing --profile release --workspace ocaml-versions/.workspace.4.14.0+trunk @buildbench
File "benchmarks/irmin/dune", line 9, characters 118-123:
9 |     (libraries ppx_deriving_yojson.runtime irmin-pack irmin-pack.layered irmin-layers index fmt logs lwt lwt.unix yojson irmin unix cmdliner))
                                                                                                                          ^^^^^
Error: Library "irmin" not found.
Hint: try:
  dune external-lib-deps --missing --profile release --workspace ocaml-versions/.workspace.4.14.0+trunk @buildbench
File "benchmarks/thread-lwt/dune", line 5, characters 16-24:
5 |  (libraries lwt lwt.unix))
                    ^^^^^^^^
Error: Library "lwt.unix" not found.
Hint: try:
  dune external-lib-deps --missing --profile release --workspace ocaml-versions/.workspace.4.14.0+trunk @buildbench
File "benchmarks/valet/dune", line 5, characters 47-55:
5 |  (libraries uuidm ocplib-endian unix react lwt lwt.unix))
                                                   ^^^^^^^^
Error: Library "lwt.unix" not found.
Hint: try:
  dune external-lib-deps --missing --profile release --workspace ocaml-versions/.workspace.4.14.0+trunk @buildbench
File "benchmarks/yojson/ydump.ml", line 49, characters 6-17:
49 |       Stream.iter (write_one oc) (Yojson.Safe.stream_from_channel ~fname ic)
           ^^^^^^^^^^^
Alert deprecated: module Stdlib.Stream
Use the camlp-streams library instead.
File "benchmarks/yojson/ydump.ml", line 49, characters 6-17:
49 |       Stream.iter (write_one oc) (Yojson.Safe.stream_from_channel ~fname ic)
           ^^^^^^^^^^^
Alert deprecated: module Stdlib.Stream
Use the camlp-streams library instead.
Makefile:112: recipe for target 'ocaml-versions/4.14.0+trunk.bench' failed
make: *** [ocaml-versions/4.14.0+trunk.bench] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment