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

Installation error on opam install usbmux #18

Open
JohnCoates opened this issue Jan 17, 2018 · 4 comments
Open

Installation error on opam install usbmux #18

JohnCoates opened this issue Jan 17, 2018 · 4 comments

Comments

@JohnCoates
Copy link

This is on High Sierra

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
[ERROR] The compilation of usbmux failed at "ocaml setup.ml -build".
Processing  1/1: [usbmux: ocaml]
#=== ERROR while installing usbmux.1.3.2 ======================================#
# opam-version 1.2.2
# os           darwin
# command      ocaml setup.ml -build
# path         /Users/macbook/.opam/system/build/usbmux.1.3.2
# compiler     system (4.06.0)
# exit-code    1
# env-file     /Users/macbook/.opam/system/build/usbmux.1.3.2/usbmux-52213-c61e7b.env
# stdout-file  /Users/macbook/.opam/system/build/usbmux.1.3.2/usbmux-52213-c61e7b.out
# stderr-file  /Users/macbook/.opam/system/build/usbmux.1.3.2/usbmux-52213-c61e7b.err
### stdout ###
# [...]
# ocamlfind ocamlopt unix.cmxa -I /Users/macbook/.opam/system/lib/ocamlbuild /Users/macbook/.opam/system/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /Users/macbook/.opam/system/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# /Users/macbook/.opam/system/bin/ocamlfind ocamldep -package yojson -package threads -package ppx_deriving_yojson -package ppx_deriving -package plist -package lwt.unix -package lwt.preemptive -package lwt.ppx -package cohttp.lwt -package cohttp -modules src/lib/usbmux.mli > src/lib/usbmux.mli.depends
# /Users/macbook/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -g -w +a-4-40..42-44-45-48 -thread -package yojson -package threads -package ppx_deriving_yojson -package ppx_deriving -package plist -package lwt.unix -package lwt.preemptive -package lwt.ppx -package cohttp.lwt -package cohttp -I src/lib -o src/lib/usbmux.cmi src/lib/usbmux.mli
# /Users/macbook/.opam/system/bin/ocamlfind ocamldep -package yojson -package threads -package ppx_deriving_yojson -package ppx_deriving -package plist -package lwt.unix -package lwt.preemptive -package lwt.ppx -package cohttp.lwt -package cohttp -modules src/lib/usbmux.ml > src/lib/usbmux.ml.depends
# /Users/macbook/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -g -w +a-4-40..42-44-45-48 -thread -package yojson -package threads -package ppx_deriving_yojson -package ppx_deriving -package plist -package lwt.unix -package lwt.preemptive -package lwt.ppx -package cohttp.lwt -package cohttp -I src/lib -o src/lib/usbmux.cmo src/lib/usbmux.ml
# + /Users/macbook/.opam/system/bin/ocamlfind ocamlc -c -g -annot -bin-annot -g -w +a-4-40..42-44-45-48 -thread -package yojson -package threads -package ppx_deriving_yojson -package ppx_deriving -package plist -package lwt.unix -package lwt.preemptive -package lwt.ppx -package cohttp.lwt -package cohttp -I src/lib -o src/lib/usbmux.cmo src/lib/usbmux.ml
# File "src/lib/usbmux.ml", line 158, characters 35-41:
# Error: This expression has type bytes but an expression was expected of type
#          string
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/Users/macbook/.opam/system/bin/ocamlbuild' src/lib/usbmux.cma src/lib/usbmux.cmxa src/lib/usbmux.a src/lib/usbmux.cmxs src/app/main.native -use-ocamlfind -tag debug' terminated with error code 10")
@fxfactorial
Copy link
Contributor

fxfactorial commented Jan 17, 2018 via email

@JohnCoates
Copy link
Author

Thanks, I'm new to ocaml. Is there a certain version I should try, or a recommended command to switch compiler versions?

@fxfactorial
Copy link
Contributor

Maybe try like:

opam switch ios -A  4.04.0

And be sure to do the ```eval `opam config env```` it suggests to do, then install should work.

@2600box
Copy link

2600box commented Mar 2, 2018

I had this same problem with compiler version # compiler system (4.06.1)

using opam switch ios -A 4.04.0 to downgrade worked a charm

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

No branches or pull requests

3 participants