aantron / luv

Cross-platform asynchronous I/O and system calls
https://aantron.github.io/luv
MIT License
276 stars 26 forks source link

Error: Library "ctypes" in /usr/local/lib/ocaml/site-lib/ctypes is hidden #125

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

I have ocaml-ctypes-0.19.1 installed but ocaml-luv-0.5.10 breaks:

File "_build/.dune/default/src/c/dune", line 9, characters 12-18:
9 |  (libraries ctypes luv_c_function_descriptions threads)
                ^^^^^^
Error: Library "ctypes" in /usr/local/lib/ocaml/site-lib/ctypes is hidden
(unsatisfied 'exist_if').
Hint: try:
  dune external-lib-deps --missing --no-config --root . --ignore-promoted-rules --default-target @install --always-show-command-line --promote-install-files --release --only-packages luv -p 
aantron commented 3 years ago

I was unable to reproduce this with opam. I did:

opam update
opam install ctypes.0.19.1
opam install luv.0.5.10

...and all worked well. opam list confirms that the right versions got installed.

From the package names, it looks like you are not working with opam, but with a system package manager. From the error message, this looks most likely like an issue with Ctypes packaging rather than with Luv. I see that you have already opened https://github.com/ocamllabs/ocaml-ctypes/issues/687 at Ctypes about this. I suggest commenting in that issue on what commands can be executed to reproduce the error message, otherwise it will likely be difficult for an opam user to observe and debug it (as it is for me, since it works for me with opam).

I am closing the issue in this repo in favor of https://github.com/ocamllabs/ocaml-ctypes/issues/687, but we can continue here if debugging in https://github.com/ocamllabs/ocaml-ctypes/issues/687 suggests that this is actually a Luv issue.