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

compilation issue #31

Open
campiador opened this issue May 16, 2018 · 0 comments
Open

compilation issue #31

campiador opened this issue May 16, 2018 · 0 comments

Comments

@campiador
Copy link

campiador commented May 16, 2018

On OSX, ocaml 4.06.01 and ruby 2.5.1p57, I face the following error trying to make redexer.

$ make

ocamlbuild -use-ocamlfind main.native

  • ocamlfind ocamlopt -c -package sha,str,unix,ppx_deriving.std,ppx_deriving_yojson,yojson -I src -I ocamlutil -I src/ext -o src/util.cmx src/util.ml
    File "src/util.ml", line 108, characters 15-23:
    Warning 3: deprecated: S.create
    Use Bytes.create instead.
    File "src/util.ml", line 111, characters 16-31:
    Warning 3: deprecated: String.set
    Use Bytes.set instead.
    File "src/util.ml", line 124, characters 8-51:
    Error: This expression has type bytes list
    but an expression was expected of type string list
    Type bytes is not compatible with type string
    Command exited with code 2.
    Compilation unsuccessful after building 27 targets (0 cached) in 00:00:02.
    make: *** [main.native] Error 10

This error probably has to do with strings being mutable by default before ocaml version 4.06. So for the time being a workaround is switching back to ocaml version 4.02.2:

opam init --comp 4.02.2
opam switch 4.02.2

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

1 participant