package luv

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

luv 0.5.0

Error log

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

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> installed opam-depext.1.2.3
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy luv.0.5.0 stdlib-shims.0.3.0 result.1.5 integers.0.7.0 dune-configurator.3.16.0 dune.3.16.0 ctypes.0.23.0 csexp.1.5.2 conf-python-3.9.0.0 bigarray-compat.1.1.0" 

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# The following system packages are needed:
python3
[NOTE] Package dune is already installed (current version is 3.16.0).
The following actions will be performed:
  - install bigarray-compat   1.1.0
  - install conf-python-3     9.0.0
  - install result            1.5
  - install csexp             1.5.2
  - install stdlib-shims      0.3.0
  - install dune-configurator 3.16.0
  - install integers          0.7.0
  - install ctypes            0.23.0
  - install luv               0.5.0
===== 9 to install =====

The following system packages will first need to be installed:
    python3

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>
Let opam run your package manager to install the required system packages?
(answer 'n' for other options) [Y/n] y
+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "python3"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpython3.11-minimal: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 ... 18764 files and directories currently installed.)
- Preparing to unpack .../libpython3.11-minimal_3.11.2-6+deb12u3_amd64.deb ...
- Unpacking libpython3.11-minimal:amd64 (3.11.2-6+deb12u3) ...
- Selecting previously unselected package python3.11-minimal.
- Preparing to unpack .../python3.11-minimal_3.11.2-6+deb12u3_amd64.deb ...
- Unpacking python3.11-minimal (3.11.2-6+deb12u3) ...
- Setting up libpython3.11-minimal:amd64 (3.11.2-6+deb12u3) ...
- Setting up python3.11-minimal (3.11.2-6+deb12u3) ...
- Selecting previously unselected package python3-minimal.
- (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 ... 19071 files and directories currently installed.)
- Preparing to unpack .../python3-minimal_3.11.2-1+b1_amd64.deb ...
- Unpacking python3-minimal (3.11.2-1+b1) ...
- Selecting previously unselected package media-types.
- Preparing to unpack .../media-types_10.0.0_all.deb ...
- Unpacking media-types (10.0.0) ...
- Selecting previously unselected package libpython3.11-stdlib:amd64.
- Preparing to unpack .../libpython3.11-stdlib_3.11.2-6+deb12u3_amd64.deb ...
- Unpacking libpython3.11-stdlib:amd64 (3.11.2-6+deb12u3) ...
- Selecting previously unselected package python3.11.
- Preparing to unpack .../python3.11_3.11.2-6+deb12u3_amd64.deb ...
- Unpacking python3.11 (3.11.2-6+deb12u3) ...
- Selecting previously unselected package libpython3-stdlib:amd64.
- Preparing to unpack .../libpython3-stdlib_3.11.2-1+b1_amd64.deb ...
- Unpacking libpython3-stdlib:amd64 (3.11.2-1+b1) ...
- Setting up python3-minimal (3.11.2-1+b1) ...
- Selecting previously unselected package python3.
- (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 ... 19481 files and directories currently installed.)
- Preparing to unpack .../python3_3.11.2-1+b1_amd64.deb ...
- Unpacking python3 (3.11.2-1+b1) ...
- Setting up media-types (10.0.0) ...
- Setting up libpython3.11-stdlib:amd64 (3.11.2-6+deb12u3) ...
- Setting up libpython3-stdlib:amd64 (3.11.2-1+b1) ...
- Setting up python3.11 (3.11.2-6+deb12u3) ...
- Setting up python3 (3.11.2-1+b1) ...
- running python rtupdate hooks for python3.11...
- running python post-rtupdate hooks for python3.11...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/27:
-> retrieved conf-python-3.9.0.0  (cached)
Processing  2/27:
Processing  3/27:
Processing  4/27:
Processing  5/27: [conf-python-3: python3 test.py]
-> retrieved bigarray-compat.1.1.0  (cached)
Processing  6/27: [conf-python-3: python3 test.py]
Processing  7/27: [bigarray-compat: dune build] [conf-python-3: python3 test.py]
-> retrieved csexp.1.5.2  (cached)
Processing  8/27: [bigarray-compat: dune build] [conf-python-3: python3 test.py]
Processing  9/27: [bigarray-compat: dune build] [conf-python-3: python3 test.py] [csexp: dune build]
-> retrieved ctypes.0.23.0  (cached)
Processing 10/27: [bigarray-compat: dune build] [conf-python-3: python3 test.py] [csexp: dune build]
- python-3 OK
-> compiled  conf-python-3.9.0.0
Processing 10/27: [bigarray-compat: dune build] [csexp: dune build]
-> installed conf-python-3.9.0.0
Processing 11/27: [bigarray-compat: dune build] [csexp: dune build]
-> retrieved integers.0.7.0  (cached)
Processing 12/27: [bigarray-compat: dune build] [csexp: dune build]
-> retrieved luv.0.5.0  (cached)
Processing 13/27: [bigarray-compat: dune build] [csexp: dune build]
-> retrieved result.1.5  (cached)
Processing 14/27: [bigarray-compat: dune build] [csexp: dune build] [result: dune build]
-> retrieved stdlib-shims.0.3.0  (cached)
Processing 15/27: [bigarray-compat: dune build] [csexp: dune build] [result: dune build] [stdlib-shims: dune build]
-> compiled  bigarray-compat.1.1.0
Processing 15/27: [csexp: dune build] [result: dune build] [stdlib-shims: dune build]
-> installed bigarray-compat.1.1.0
Processing 16/27: [csexp: dune build] [result: dune build] [stdlib-shims: dune build]
-> compiled  csexp.1.5.2
Processing 16/27: [result: dune build] [stdlib-shims: dune build]
-> installed csexp.1.5.2
Processing 17/27: [result: dune build] [stdlib-shims: dune build]
-> compiled  stdlib-shims.0.3.0
Processing 17/27: [result: dune build]
-> installed stdlib-shims.0.3.0
Processing 18/27: [result: dune build]
Processing 19/27: [integers: dune build] [result: dune build]
-> compiled  result.1.5
Processing 19/27: [integers: dune build]
-> installed result.1.5
Processing 20/27: [integers: dune build]
-> retrieved dune-configurator.3.16.0  (cached)
Processing 21/27: [dune-configurator: rm] [integers: dune build]
-> compiled  integers.0.7.0
Processing 21/27: [dune-configurator: rm]
-> installed integers.0.7.0
Processing 22/27: [dune-configurator: rm]
+ /usr/bin/rm "-rf" "vendor/csexp" (CWD=/home/opam/.opam/5.1/.opam-switch/build/dune-configurator.3.16.0)
+ /usr/bin/rm "-rf" "vendor/pp" (CWD=/home/opam/.opam/5.1/.opam-switch/build/dune-configurator.3.16.0)
Processing 22/27: [dune-configurator: dune build]
+ /home/opam/.opam/5.1/bin/dune "build" "-p" "dune-configurator" "-j" "39" "@install" (CWD=/home/opam/.opam/5.1/.opam-switch/build/dune-configurator.3.16.0)
-> compiled  dune-configurator.3.16.0
-> installed dune-configurator.3.16.0
Processing 24/27: [ctypes: dune build]
+ /home/opam/.opam/5.1/bin/dune "build" "-p" "ctypes" "-j" "39" "--promote-install-files=false" "@install" (CWD=/home/opam/.opam/5.1/.opam-switch/build/ctypes.0.23.0)
Processing 24/27: [ctypes: dune install]
+ /home/opam/.opam/5.1/bin/dune "install" "-p" "ctypes" "--create-install-files" "ctypes" (CWD=/home/opam/.opam/5.1/.opam-switch/build/ctypes.0.23.0)
-> compiled  ctypes.0.23.0
-> installed ctypes.0.23.0
Processing 26/27: [luv: dune build]
+ /home/opam/.opam/5.1/bin/dune "build" "-p" "luv" "-j" "39" (CWD=/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0)
- (cd _build/default/src/c && /home/opam/.opam/5.1/bin/ocaml link-gyp.ml)
- File "_none_", line 1:
- Alert ocaml_deprecated_auto_include: 
- OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
- automatically added to the search path, but you should add -I +unix to the
- command-line to silence this alert (e.g. by adding unix to the list of
- libraries in your dune file, or adding use_unix to your _tags file for
- ocamlbuild, or using -package unix for ocamlfind).
- File "src/c/dune", lines 17-33, characters 0-569:
- 17 | (rule
- 18 |  (targets libuv.a dlluv.so)
- 19 |  (deps (source_tree vendor) link-gyp.ml copy-so.ml)
- ....
- 31 |    (setenv BUILDTYPE Release
- 32 |     (run make -C vendor/libuv/out libuv)))
- 33 |   (run ocaml copy-so.ml))))
- (cd _build/default/src/c/vendor/libuv && /usr/bin/python3 gyp_uv.py -f make -Duv_library=static_library)
- /home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/input.py:1186: SyntaxWarning: "is" with a literal. Did you mean "=="?
-   if the_dict_key is 'variables' and variable_name in the_dict:
- Traceback (most recent call last):
-   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/gyp_uv.py", line 21, in <module>
-     import gyp
-   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in <module>
-     import gyp.input
-   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/input.py", line 8, in <module>
-     import gyp.common
-   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/common.py", line 497, in <module>
-     class OrderedSet(collections.MutableSet):
-                      ^^^^^^^^^^^^^^^^^^^^^^
- AttributeError: module 'collections' has no attribute 'MutableSet'
- (cd _build/default/src/c && /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/5.1/lib/ocaml -I /home/opam/.opam/5.1/lib/bigarray-compat -I /home/opam/.opam/5.1/lib/ctypes -I /home/opam/.opam/5.1/lib/integers -I /home/opam/.opam/5.1/lib/ocaml/threads -I /home/opam/.opam/5.1/lib/ocaml/unix -I /home/opam/.opam/5.1/lib/stdlib-shims -I . -I vendor/libuv/include -o c_generated_functions.o -c c_generated_functions.c)
- c_generated_functions.c: In function 'luv_stub_134_luv_spawn':
- c_generated_functions.c:962:38: warning: passing argument 5 of 'luv_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
-   962 |    luv_spawn(x734, x735, x736, x737, x738, x739, x742, x743, x746, x749,
-       |                                      ^~~~
-       |                                      |
-       |                                      const char **
- In file included from c_generated_functions.c:6:
- helpers.h:184:12: note: expected 'char **' but argument is of type 'const char **'
-   184 |     char **args,
-       |     ~~~~~~~^~~~
- c_generated_functions.c:962:50: warning: passing argument 7 of 'luv_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
-   962 |    luv_spawn(x734, x735, x736, x737, x738, x739, x742, x743, x746, x749,
-       |                                                  ^~~~
-       |                                                  |
-       |                                                  const char **
- helpers.h:186:12: note: expected 'char **' but argument is of type 'const char **'
-   186 |     char **env,
-       |     ~~~~~~~^~~
- c_generated_functions.c: In function 'luv_stub_149_luv_get_getnameinfo_trampoline':
- c_generated_functions.c:1107:4: warning: initialization of 'void (*)(uv_getnameinfo_t *, int,  const char *, const char *)' {aka 'void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)'} from incompatible pointer type 'luv_getnameinfo_cb' {aka 'void (*)(struct uv_getnameinfo_s *, int,  char *, char *)'} [-Wincompatible-pointer-types]
-  1107 |    luv_get_getnameinfo_trampoline();
-       |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- c_generated_functions.c: In function 'luv_stub_150_luv_getnameinfo':
- c_generated_functions.c:1119:43: warning: passing argument 3 of 'luv_getnameinfo' from incompatible pointer type [-Wincompatible-pointer-types]
-  1119 |    int x882 = luv_getnameinfo(x875, x876, x877, x878, x879);
-       |                                           ^~~~
-       |                                           |
-       |                                           void (*)(uv_getnameinfo_t *, int,  const char *, const char *) {aka void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)}
- helpers.h:157:64: note: expected 'luv_getnameinfo_cb' {aka 'void (*)(struct uv_getnameinfo_s *, int,  char *, char *)'} but argument is of type 'void (*)(uv_getnameinfo_t *, int,  const char *, const char *)' {aka 'void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)'}
-   157 |     uv_loop_t *loop, uv_getnameinfo_t *req, luv_getnameinfo_cb getnameinfo_cb,
-       |                                             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
[ERROR] The compilation of luv.0.5.0 failed at "dune build -p luv -j 39".

#=== ERROR while compiling luv.0.5.0 ==========================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.5.1.1 | file:///src
# path                 ~/.opam/5.1/.opam-switch/build/luv.0.5.0
# command              ~/.opam/5.1/bin/dune build -p luv -j 39
# exit-code            1
# env-file             ~/.opam/log/luv-115-2ddc4c.env
# output-file          ~/.opam/log/luv-115-2ddc4c.out
### output ###
# (cd _build/default/src/c && /home/opam/.opam/5.1/bin/ocaml link-gyp.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_auto_include: 
# OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
# automatically added to the search path, but you should add -I +unix to the
# command-line to silence this alert (e.g. by adding unix to the list of
# libraries in your dune file, or adding use_unix to your _tags file for
# ocamlbuild, or using -package unix for ocamlfind).
# File "src/c/dune", lines 17-33, characters 0-569:
# 17 | (rule
# 18 |  (targets libuv.a dlluv.so)
# 19 |  (deps (source_tree vendor) link-gyp.ml copy-so.ml)
# ....
# 31 |    (setenv BUILDTYPE Release
# 32 |     (run make -C vendor/libuv/out libuv)))
# 33 |   (run ocaml copy-so.ml))))
# (cd _build/default/src/c/vendor/libuv && /usr/bin/python3 gyp_uv.py -f make -Duv_library=static_library)
# /home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/input.py:1186: SyntaxWarning: "is" with a literal. Did you mean "=="?
#   if the_dict_key is 'variables' and variable_name in the_dict:
# Traceback (most recent call last):
#   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/gyp_uv.py", line 21, in <module>
#     import gyp
#   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in <module>
#     import gyp.input
#   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/input.py", line 8, in <module>
#     import gyp.common
#   File "/home/opam/.opam/5.1/.opam-switch/build/luv.0.5.0/_build/default/src/c/vendor/libuv/build/gyp/pylib/gyp/common.py", line 497, in <module>
#     class OrderedSet(collections.MutableSet):
#                      ^^^^^^^^^^^^^^^^^^^^^^
# AttributeError: module 'collections' has no attribute 'MutableSet'
# (cd _build/default/src/c && /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/5.1/lib/ocaml -I /home/opam/.opam/5.1/lib/bigarray-compat -I /home/opam/.opam/5.1/lib/ctypes -I /home/opam/.opam/5.1/lib/integers -I /home/opam/.opam/5.1/lib/ocaml/threads -I /home/opam/.opam/5.1/lib/ocaml/unix -I /home/opam/.opam/5.1/lib/stdlib-shims -I . -I vendor/libuv/include -o c_generated_functions.o -c c_generated_functions.c)
# c_generated_functions.c: In function 'luv_stub_134_luv_spawn':
# c_generated_functions.c:962:38: warning: passing argument 5 of 'luv_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
#   962 |    luv_spawn(x734, x735, x736, x737, x738, x739, x742, x743, x746, x749,
#       |                                      ^~~~
#       |                                      |
#       |                                      const char **
# In file included from c_generated_functions.c:6:
# helpers.h:184:12: note: expected 'char **' but argument is of type 'const char **'
#   184 |     char **args,
#       |     ~~~~~~~^~~~
# c_generated_functions.c:962:50: warning: passing argument 7 of 'luv_spawn' from incompatible pointer type [-Wincompatible-pointer-types]
#   962 |    luv_spawn(x734, x735, x736, x737, x738, x739, x742, x743, x746, x749,
#       |                                                  ^~~~
#       |                                                  |
#       |                                                  const char **
# helpers.h:186:12: note: expected 'char **' but argument is of type 'const char **'
#   186 |     char **env,
#       |     ~~~~~~~^~~
# c_generated_functions.c: In function 'luv_stub_149_luv_get_getnameinfo_trampoline':
# c_generated_functions.c:1107:4: warning: initialization of 'void (*)(uv_getnameinfo_t *, int,  const char *, const char *)' {aka 'void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)'} from incompatible pointer type 'luv_getnameinfo_cb' {aka 'void (*)(struct uv_getnameinfo_s *, int,  char *, char *)'} [-Wincompatible-pointer-types]
#  1107 |    luv_get_getnameinfo_trampoline();
#       |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# c_generated_functions.c: In function 'luv_stub_150_luv_getnameinfo':
# c_generated_functions.c:1119:43: warning: passing argument 3 of 'luv_getnameinfo' from incompatible pointer type [-Wincompatible-pointer-types]
#  1119 |    int x882 = luv_getnameinfo(x875, x876, x877, x878, x879);
#       |                                           ^~~~
#       |                                           |
#       |                                           void (*)(uv_getnameinfo_t *, int,  const char *, const char *) {aka void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)}
# helpers.h:157:64: note: expected 'luv_getnameinfo_cb' {aka 'void (*)(struct uv_getnameinfo_s *, int,  char *, char *)'} but argument is of type 'void (*)(uv_getnameinfo_t *, int,  const char *, const char *)' {aka 'void (*)(struct uv_getnameinfo_s *, int,  const char *, const char *)'}
#   157 |     uv_loop_t *loop, uv_getnameinfo_t *req, luv_getnameinfo_cb getnameinfo_cb,
#       |                                             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build luv 0.5.0
+- 
+- The following changes have been performed
| - install bigarray-compat   1.1.0
| - install conf-python-3     9.0.0
| - install csexp             1.5.2
| - install ctypes            0.23.0
| - install dune-configurator 3.16.0
| - install integers          0.7.0
| - install result            1.5
| - install stdlib-shims      0.3.0
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/5.1/.opam-switch/backup/state-20240912104547.export"
'opam --cli=2.1 install luv.0.5.0 stdlib-shims.0.3.0 result.1.5 integers.0.7.0 dune-configurator.3.16.0 dune.3.16.0 ctypes.0.23.0 csexp.1.5.2 conf-python-3.9.0.0 bigarray-compat.1.1.0 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.