mirage / ocaml-vchan

Pure OCaml implementation of the "vchan" shared-memory communication protocol
ISC License
45 stars 26 forks source link

unable to build with jbuilder again #109

Closed cfcs closed 7 years ago

cfcs commented 7 years ago

FWIW: opam update && opam upgrade broke mirage builds again:

#=== ERROR while installing vchan-xen.0.1 =====================================#
# opam-version 1.2.2
# os           linux
# command      make
# path         /home/user/.opam/4.04.0/build/vchan-xen.0.1
# compiler     4.04.0
# exit-code    2
# env-file     /home/user/.opam/4.04.0/build/vchan-xen.0.1/vchan-xen-7891-e73fd7.env
# stdout-file  /home/user/.opam/4.04.0/build/vchan-xen.0.1/vchan-xen-7891-e73fd7.out
# stderr-file  /home/user/.opam/4.04.0/build/vchan-xen.0.1/vchan-xen-7891-e73fd7.err
### stdout ###
# jbuilder build @install
# Makefile:5: recipe for target 'build' failed
### stderr ###
# (rule (with-stdout-to s.ml
# [...]
#         (echo "[@@@warning \"-a\"]\nmodule rec HACK : sig\n")
#         (cat s.mli)
#         (echo "\nend = HACK\ninclude HACK\n"))))
# 
# Add it to your jbuild file to remove this warning.
# Error: External library "lwt" not found.
# -> required by "xen/jbuild (context default)"
# Hint: try: jbuilder external-lib-deps --missing @install
# make: *** [build] Error 1

Fixed by pinning to the last commit using the old build system, but left here in case someone cares about fixing the new stuff.

samoht commented 7 years ago
Error: External library "lwt" not found.

Silly question, but do you have lwt installed and are you building in the right switch?

samoht commented 7 years ago

Also it seems that the only available version of vchan-xen is 3.0.0, so I am not sure where the version you are building comes from.

cfcs commented 7 years ago

I have no idea either, I give up. :-(

samoht commented 7 years ago

@cfcs do you have some extra opam remote?

cfcs commented 7 years ago
$ opam remote
  10 [git]     xmpp-dev     https://github.com/hannesm/xmpp-opam.git
   0 [http]     default     https://opam.ocaml.org
samoht commented 7 years ago

This is very weird....

$ opam info vchan-xen -f available-version
3.0.0

Did you have vchan-xen pinned to something maybe? opam install vchan-xen works very well on the various platform that I've tested (ubuntu and alpine) :-/

cfcs commented 7 years ago

Yes, I previously had (but not anymore). I reinstalled the opam switch and now vchan-xen builds just fine. Still find this weird, but now at least the issue is solved.