Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shubhamkumar13/bf4bf835fb8f636573c2bfecde52e3a5 to your computer and use it in GitHub Desktop.

Select an option

Save shubhamkumar13/bf4bf835fb8f636573c2bfecde52e3a5 to your computer and use it in GitHub Desktop.
<><> 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
└─
@shubhamkumar13
Copy link
Author

benchmarks that don't build in dune.2.9.0

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

@shubhamkumar13
Copy link
Author

shubhamkumar13 commented Jul 27, 2021

chameneos -macro
irmin - macro
thread-lwt - macro
valet - macro
yojson -macro

@shubhamkumar13
Copy link
Author

#=== 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-14664-24e847.env
# output-file          ~/sandmark/_opam/log/uutf-14664-24e847.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))
#                                                ^^^
# 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/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-14664-3163bc.env
# output-file          ~/sandmark/_opam/log/uuidm-14664-3163bc.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-14664-686ca1.env
# output-file          ~/sandmark/_opam/log/rresult-14664-686ca1.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-14664-cd9e0e.env
# output-file          ~/sandmark/_opam/log/react-14664-cd9e0e.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-14664-493b72.env
# output-file          ~/sandmark/_opam/log/ocplib-endian-14664-493b72.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-14664-9055a8.env
# output-file          ~/sandmark/_opam/log/ocaml-migrate-parsetree-14664-9055a8.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 OCaml version 4.14.0+dev0-2021-06-03


#=== 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-14664-41cafa.env
# output-file          ~/sandmark/_opam/log/mtime-14664-41cafa.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-14664-744075.env
# output-file          ~/sandmark/_opam/log/fmt-14664-744075.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-14664-c35310.env
# output-file          ~/sandmark/_opam/log/base64-14664-c35310.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-14664-a19f76.env
# output-file          ~/sandmark/_opam/log/astring-14664-a19f76.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

astring - latest
base64 - upgrade to 3.5
fmt - latest
mtime - latest
omp - upgrade to 2.2.0
ocplib-endian - latest
react - latest
rresult - latest
uuidm - latest
uutf - latest

@shubhamkumar13
Copy link
Author

shubhamkumar13 commented Jul 28, 2021

astring - Toploop.use_file -> ocaml/ocaml#10461 (comment)
fmt - Toploop.use_file issue
mtime - doesn't work with nothing specific mentioned in the error message
omp - results in this

 $ opam install dune.2.9.0 ocaml-migrate-parsetree
[NOTE] Package dune is already installed (current version is 2.9.0).
Sorry, no solution found: there seems to be a problem with your request.

No solution found, exiting

react - same Toploop.use_file issue
rresult - same Toploop.use_file issue

@shubhamkumar13
Copy link
Author

shubhamkumar13 commented Jul 28, 2021

Successful installs

  1. base64
 $ opam install dune.2.9.0 base64
[NOTE] Package dune is already installed (current version is 2.9.0).
The following actions will be performed:
  ∗ install base64 3.5.0
Do you want to continue? [Y/n] y

<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[base64.3.5.0] found in cache

<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base64.3.5.0
Done.
  1. ocplib-endian
 $ opam install dune.2.9.0 ocplib-endian
[NOTE] Package dune is already installed (current version is 2.9.0).
The following actions will be performed:
  ∗ install base-bytes    base  [required by ocplib-endian]
  ∗ install cppo          1.6.7 [required by ocplib-endian]
  ∗ install ocplib-endian 1.1
===== ∗ 3 =====
Do you want to continue? [Y/n] y

<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[cppo.1.6.7] found in cache
[ocplib-endian.1.1] found in cache

<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bytes.base
∗ installed cppo.1.6.7
∗ installed ocplib-endian.1.1
Done.
  1. uuidm
 $ opam install dune.2.9.0 uuidm
[NOTE] Package dune is already installed (current version is 2.9.0).
The following actions will be performed:
  ∗ install uuidm 0.9.7
Do you want to continue? [Y/n] y

<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[uuidm.0.9.7] found in cache

<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed uuidm.0.9.7
Done.
  1. uutf
 $ opam install dune.2.9.0 uutf
[NOTE] Package dune is already installed (current version is 2.9.0).
The following actions will be performed:
  ∗ install uchar 0.0.2 [required by uutf]
  ∗ install uutf  1.0.2
===== ∗ 2 =====
Do you want to continue? [Y/n] y

<><> Gathering sources <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[uchar.0.0.2] found in cache
[uutf.1.0.2] found in cache

<><> Processing actions ><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed uchar.0.0.2
∗ installed uutf.1.0.2
Done.

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