vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
161 stars 44 forks source link

Install fails with 4.04.0 compiler #88

Closed burnoutberni closed 7 years ago

burnoutberni commented 7 years ago

Hi, Disclaimer not an ocaml person here, just wanted to compile a package that depends on websocket.2.9 and ran into problems.

Tried to install websocket.2.9 on armhf (Raspberry Pi) with 4.04.0 first which failed, then tried installing it on amd64 with 4.02.0 which worked, but as panama requires 4.04.0 I updated to that and now I get the same error message as on the Raspberry Pi when compiling websocket.

I deduct that that means there's a problem with websocket.2.9 but maybe I'm also missing a native dependency or something, any help would be greatly appreciated.

[ERROR] The compilation of websocket failed at "ocaml pkg/build.ml native=true
        native-dynlink=true lwt=true async=false async_ssl=false nocrypto=false
        cryptokit=false test=false".

#=== ERROR while installing websocket.2.9 =====================================#
# opam-version 1.2.2
# os           linux
# command      ocaml pkg/build.ml native=true native-dynlink=true lwt=true async=false async_ssl=false nocrypto=false cryptokit=false test=false
# path         /home/nini/.opam/4.04.0/build/websocket.2.9
# compiler     4.04.0
# exit-code    10
# env-file     /home/nini/.opam/4.04.0/build/websocket.2.9/websocket-31102-88c6ff.env
# stdout-file  /home/nini/.opam/4.04.0/build/websocket.2.9/websocket-31102-88c6ff.out
# stderr-file  /home/nini/.opam/4.04.0/build/websocket.2.9/websocket-31102-88c6ff.err
### stdout ###
# Error: This function has type
# [...]
#          (Conduit_lwt_unix.flow ->
#           Conduit_lwt_unix.ic ->
#           Conduit_lwt_unix.oc -> unit Conduit_lwt_unix.io) ->
#          unit Conduit_lwt_unix.io
#        It is applied to too many arguments; maybe you forgot a `;'.
# Command exited with code 2.
# + ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package cppo_ocamlbuild myocamlbuild.ml /home/nini/.opam/4.04.0/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# File "_none_", line 1:
# Warning 58: no cmx file was found in path for module Ocamlbuild_cppo, and its interface was not compiled with -opaque
vbmithr commented 7 years ago

I can't reproduce. Which version of conduit are you on? Could you try pinning conduit to version 0.15.0 (the latest)?

burnoutberni commented 7 years ago

This solved the problem for me. Thank you very much.