Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to jbuilder + mustache #15

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

rgrinberg
Copy link

No description provided.

@rgrinberg
Copy link
Author

The error seems to be caused by an upstream packaging problem:

# Skipping generation of .mli
# [...]
#       ocamlc iocamlserver.{cmi,cmo,cmt}
#     ocamlopt filesys.{cmx,o}
#     ocamlopt files.{cmx,o}
#     ocamlopt iocamlserver.{cmx,o}
#     ocamlopt iocamlserver.exe (exit 2)
# (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -o iocamlserver.exe -I /home/travis/.opam/system/lib/astring -I /home/travis/.opam/system/lib/atd -I /home/travis/.opam/system/lib/atdgen -I /home/travis/.opam/system/lib/base64 -I /home/travis/.opam/system/lib/biniou -I /home/travis/.opam/system/lib/bytes -I /home/travis/.opam/system/lib/cohttp -I /home/travis/.opam/system/lib/conduit -I /home/travis/.opam/system/lib/cstruct -I /home/travis/.opam/system/lib/ctypes -I /home/travis/.opam/system/lib/easy-format -I /home/travis/.opam/system/lib/fieldslib -I /home/travis/.opam/system/lib/findlib -I /home/travis/.opam/system/lib/fmt -I /home/travis/.opam/system/lib/integers -I /home/travis/.opam/system/lib/iocaml-kernel -I /home/travis/.opam/system/lib/ipaddr -I /home/travis/.opam/system/lib/logs -I /home/travis/.opam/system/lib/lwt -I /home/travis/.opam/system/lib/magic-mime -I /home/travis/.opam/system/lib/menhirLib -I /home/travis/.opam/system/lib/mustache -I /home/travis/.opam/system/lib/ocplib-endian -I /home/travis/.opam/system/lib/re -I /home/travis/.opam/system/lib/result -I /home/travis/.opam/system/lib/sexplib -I /home/travis/.opam/system/lib/stringext -I /home/travis/.opam/system/lib/uchar -I /home/travis/.opam/system/lib/uri -I /home/travis/.opam/system/lib/uuidm -I /home/travis/.opam/system/lib/websocket -I /home/travis/.opam/system/lib/yojson -I /usr/lib/ocaml -I /usr/lib/ocaml/threads findlib.cmxa menhirLib.cmx result.cmxa lwt.cmxa unix.cmxa lwt-log.cmxa bigarray.cmxa re.cmxa re_posix.cmxa stringext.cmxa sexplib.cmxa re_emacs.cmxa uri.cmxa fieldslib.cmxa base64.cmxa cohttp.cmxa ocplib_endian.cmxa astring.cmxa bigstring.cmxa ipaddr.cmxa cstruct.cmxa logs.cmxa conduit.cmxa conduit-lwt.cmxa ipaddr_unix.cmxa lwt-unix.cmxa services.cmxa uchar.cmxa fmt.cmxa cohttp_lwt.cmxa conduit-lwt-unix.cmxa magic-mime.cmxa logs_fmt.cmxa logs_lwt.cmxa websocket.cmxa cohttp_lwt_unix.cmxa easy_format.cmx biniou.cmxa str.cmxa atd.cmxa yojson.cmx threads.cmxa integers.cmxa ctypes.cmxa ctypes-foreign-base.cmxa ctypes-foreign-threaded.cmxa atdgen.cmxa mustache.cmxa websocket_lwt.cmxa uuidm.cmxa kernel.cmx uri_paths.cmx bridge.cmx config.cmx filesys.cmx pages.cmx tutorial.cmx files.cmx iocamlserver.cmx)
# File "_none_", line 1:
# Error: No implementations provided for the following modules:
#          Iocaml_zmq referenced from kernel.cmx, bridge.cmx, iocamlserver.cmx

In particular, iocaml

@rgrinberg
Copy link
Author

@andrewray ping :)

@pveber
Copy link

pveber commented Oct 4, 2017

I have also seen this problem, but after installing (like in jbuilder install) iocaml-kernel (from @rgrinberg's jbuilder branch), the compilation goes further. The next problem I see is:

    ocamlopt iocamlserver.exe (exit 2)
(cd _build/default && /home/pveber/.opam/4.05.0/bin/ocamlopt.opt -w -40 -g -o iocamlserver.exe -I /home/pveber/.opam/4.05.0/lib/astring -I /home/pveber/.opam/4.05.0/lib/atd -I /home/pveber/.opam/4.05.0/lib/atdgen -I /home/pveber/.opam/4.05.0/lib/base -I /home/pveber/.opam/4.05.0/lib/base/caml -I /home/pveber/.opam/4.05.0/lib/base/shadow_stdlib -I /home/pveber/.opam/4.05.0/lib/base64 -I /home/pveber/.opam/4.05.0/lib/biniou -I /home/pveber/.opam/4.05.0/lib/bytes -I /home/pveber/.opam/4.05.0/lib/cohttp -I /home/pveber/.opam/4.05.0/lib/cohttp-lwt -I /home/pveber/.opam/4.05.0/lib/cohttp-lwt-unix -I /home/pveber/.opam/4.05.0/lib/conduit -I /home/pveber/.opam/4.05.0/lib/conduit-lwt -I /home/pveber/.opam/4.05.0/lib/conduit-lwt-unix -I /home/pveber/.opam/4.05.0/lib/ctypes -I /home/pveber/.opam/4.05.0/lib/easy-format -I /home/pveber/.opam/4.05.0/lib/fieldslib -I /home/pveber/.opam/4.05.0/lib/findlib -I /home/pveber/.opam/4.05.0/lib/fmt -I /home/pveber/.opam/4.05.0/lib/integers -I /home/pveber/.opam/4.05.0/lib/iocaml-kernel -I /home/pveber/.opam/4.05.0/lib/ipaddr -I /home/pveber/.opam/4.05.0/lib/ipaddr/unix -I /home/pveber/.opam/4.05.0/lib/logs -I /home/pveber/.opam/4.05.0/lib/lwt -I /home/pveber/.opam/4.05.0/lib/lwt_ssl -I /home/pveber/.opam/4.05.0/lib/magic-mime -I /home/pveber/.opam/4.05.0/lib/menhirLib -I /home/pveber/.opam/4.05.0/lib/mustache -I /home/pveber/.opam/4.05.0/lib/ocaml -I /home/pveber/.opam/4.05.0/lib/ocaml/compiler-libs -I /home/pveber/.opam/4.05.0/lib/ocaml/threads -I /home/pveber/.opam/4.05.0/lib/ocp-indent/lexer -I /home/pveber/.opam/4.05.0/lib/ocp-indent/utils -I /home/pveber/.opam/4.05.0/lib/ocp-index/lib -I /home/pveber/.opam/4.05.0/lib/ocplib-endian -I /home/pveber/.opam/4.05.0/lib/ppx_deriving -I /home/pveber/.opam/4.05.0/lib/re -I /home/pveber/.opam/4.05.0/lib/result -I /home/pveber/.opam/4.05.0/lib/sexplib -I /home/pveber/.opam/4.05.0/lib/sexplib/0 -I /home/pveber/.opam/4.05.0/lib/ssl -I /home/pveber/.opam/4.05.0/lib/stringext -I /home/pveber/.opam/4.05.0/lib/uchar -I /home/pveber/.opam/4.05.0/lib/uri -I /home/pveber/.opam/4.05.0/lib/uri/services -I /home/pveber/.opam/4.05.0/lib/uuidm -I /home/pveber/.opam/4.05.0/lib/websocket -I /home/pveber/.opam/4.05.0/lib/websocket-lwt -I /home/pveber/.opam/4.05.0/lib/yojson /home/pveber/.opam/4.05.0/lib/findlib/findlib.cmxa /home/pveber/.opam/4.05.0/lib/menhirLib/menhirLib.cmx /home/pveber/.opam/4.05.0/lib/ocaml/unix.cmxa /home/pveber/.opam/4.05.0/lib/result/result.cmxa /home/pveber/.opam/4.05.0/lib/lwt/lwt.cmxa /home/pveber/.opam/4.05.0/lib/ocaml/bigarray.cmxa /home/pveber/.opam/4.05.0/lib/lwt/lwt_log.cmxa /home/pveber/.opam/4.05.0/lib/base/caml/caml.cmxa /home/pveber/.opam/4.05.0/lib/base/shadow_stdlib/shadow_stdlib.cmxa /home/pveber/.opam/4.05.0/lib/sexplib/0/sexplib0.cmxa /home/pveber/.opam/4.05.0/lib/base/base.cmxa /home/pveber/.opam/4.05.0/lib/re/re.cmxa /home/pveber/.opam/4.05.0/lib/re/re_posix.cmxa /home/pveber/.opam/4.05.0/lib/sexplib/sexplib.cmxa /home/pveber/.opam/4.05.0/lib/stringext/stringext.cmxa /home/pveber/.opam/4.05.0/lib/base64/base64.cmxa /home/pveber/.opam/4.05.0/lib/fieldslib/fieldslib.cmxa /home/pveber/.opam/4.05.0/lib/ppx_deriving/ppx_deriving_runtime.cmxa /home/pveber/.opam/4.05.0/lib/re/re_emacs.cmxa /home/pveber/.opam/4.05.0/lib/uri/uri.cmxa /home/pveber/.opam/4.05.0/lib/cohttp/cohttp.cmxa /home/pveber/.opam/4.05.0/lib/astring/astring.cmxa /home/pveber/.opam/4.05.0/lib/ipaddr/ipaddr.cmxa /home/pveber/.opam/4.05.0/lib/conduit/conduit.cmxa /home/pveber/.opam/4.05.0/lib/conduit-lwt/conduit_lwt.cmxa /home/pveber/.opam/4.05.0/lib/ipaddr/unix/ipaddr_unix.cmxa /home/pveber/.opam/4.05.0/lib/logs/logs.cmxa /home/pveber/.opam/4.05.0/lib/lwt/lwt_unix.cmxa /home/pveber/.opam/4.05.0/lib/uri/services/uri_services.cmxa /home/pveber/.opam/4.05.0/lib/cohttp-lwt/cohttp_lwt.cmxa /home/pveber/.opam/4.05.0/lib/conduit-lwt-unix/conduit_lwt_unix.cmxa /home/pveber/.opam/4.05.0/lib/fmt/fmt.cmxa /home/pveber/.opam/4.05.0/lib/logs/logs_lwt.cmxa /home/pveber/.opam/4.05.0/lib/magic-mime/magic_mime_library.cmxa /home/pveber/.opam/4.05.0/lib/ssl/ssl_threads.cmxa /home/pveber/.opam/4.05.0/lib/ocplib-endian/ocplib_endian.cmxa /home/pveber/.opam/4.05.0/lib/cohttp-lwt-unix/cohttp_lwt_unix.cmxa /home/pveber/.opam/4.05.0/lib/lwt_ssl/lwt_ssl.cmxa /home/pveber/.opam/4.05.0/lib/websocket/websocket.cmxa /home/pveber/.opam/4.05.0/lib/websocket-lwt/websocket_lwt.cmxa /home/pveber/.opam/4.05.0/lib/easy-format/easy_format.cmxa /home/pveber/.opam/4.05.0/lib/ocaml/str.cmxa /home/pveber/.opam/4.05.0/lib/biniou/biniou.cmxa /home/pveber/.opam/4.05.0/lib/atd/atd.cmxa /home/pveber/.opam/4.05.0/lib/yojson/yojson.cmxa /home/pveber/.opam/4.05.0/lib/integers/integers.cmxa /home/pveber/.opam/4.05.0/lib/ocaml/threads/threads.cmxa /home/pveber/.opam/4.05.0/lib/ctypes/ctypes.cmxa /home/pveber/.opam/4.05.0/lib/ctypes/ctypes-foreign-base.cmxa /home/pveber/.opam/4.05.0/lib/ctypes/ctypes-foreign-threaded.cmxa /home/pveber/.opam/4.05.0/lib/ocp-indent/lexer/ocp-indent.lexer.cmxa /home/pveber/.opam/4.05.0/lib/ocaml/compiler-libs/ocamlcommon.cmxa /home/pveber/.opam/4.05.0/lib/ocp-indent/utils/ocp-indent.utils.cmxa /home/pveber/.opam/4.05.0/lib/atdgen/atdgen.cmxa /home/pveber/.opam/4.05.0/lib/ocp-index/lib/ocp-index-lib.cmxa /home/pveber/.opam/4.05.0/lib/uuidm/uuidm.cmxa /home/pveber/.opam/4.05.0/lib/mustache/mustache.cmxa /home/pveber/.opam/4.05.0/lib/iocaml-kernel/iocaml_kernel.cmxa kernel.cmx uri_paths.cmx bridge.cmx config.cmx filesys.cmx pages.cmx tutorial.cmx files.cmx iocamlserver.cmx)
File "_none_", line 1:
Error: Files config.cmx
       and /home/pveber/.opam/4.05.0/lib/ocaml/compiler-libs/ocamlcommon.cmxa
       both define a module named Config

@rgrinberg do you see that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants