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

Windows - esy-build: Failure building @esy-ocaml/reason #295

Closed
bryphe opened this issue Jul 26, 2018 · 3 comments
Closed

Windows - esy-build: Failure building @esy-ocaml/reason #295

bryphe opened this issue Jul 26, 2018 · 3 comments
Labels

Comments

@bryphe
Copy link
Collaborator

bryphe commented Jul 26, 2018

After #242, this is the next issue blocking esy-reason-project from building on Windows - a build failure when building @esy-ocaml/reason:

917, characters 31-47:
         Warning 3: deprecated: String.lowercase
         Use String.lowercase_ascii instead.
               menhir src/reason-parser/reason_parser.{cmly,ml,mli} (exit 2)
         (cd _build/default/src/reason-parser &&
     C:\Users\bryph\.esy\3_\i\opam__slash__menhir-20171013.0.0-09217330\bin\menhir.exe
     --strict --unused-tokens --fixed-exception --table --cmly
     reason_parser.mly)
         Warning: you are using the standard library and/or the %inline
     keyword. We
         recommend switching on --infer in order to avoid obscure type error
     messages.
         Fatal error: exception Failure("output_value: not a binary
     channel")
               ocamlc
     src/reason-parser/.reason.objs/reason_oprint.{cmi,cmo,cmt}
         File "src/reason-parser/reason_oprint.ml", line 201, characters

Log here:
esy_ocaml__slash__reason-3.3.0-cfd98b7f.log

Minimal repro:
https://github.com/bryphe/esy-295-reason-repro

@bryphe bryphe added the windows label Jul 26, 2018
@bryphe bryphe changed the title Windows - Build: failure building @esy-ocaml/reason Windows - esy-build: Failure building @esy-ocaml/reason Jul 26, 2018
@bryphe
Copy link
Collaborator Author

bryphe commented Jul 27, 2018

Saw some issue with the same error here:
https://caml.inria.fr/mantis/view.php?id=5639

@bryphe
Copy link
Collaborator Author

bryphe commented Jul 27, 2018

It looks like this patch from the forked repo isn't being applied:
https://github.com/fdopen/opam-repository-mingw/blob/master/packages/menhir/menhir.20180703/files/menhir-20180703.patch

I believe that the error is caused by the open_out as opposed to open_out_bin in src/cmly_write.ml, like the above issue mentions. I confirmed that the patch is NOT applied to the menhir bits in my b folder.

@bryphe bryphe closed this as completed Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant