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

OCaml-4: -bin-annot not working on Windows #5639

Closed
vicuna opened this issue Jun 8, 2012 · 1 comment
Closed

OCaml-4: -bin-annot not working on Windows #5639

vicuna opened this issue Jun 8, 2012 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Jun 8, 2012

Original bug ID: 5639
Reporter: esther
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:04:54Z)
Resolution: fixed
Priority: normal
Severity: minor
Category: typing

Bug description

Using -bin-annot option on Windows results in the following error :

Fatal error: exception Failure("output_value: not a binary channel")

The problem is that the out_channel used to write the cmt file is create using Pervasives.open_out. It should use Perviasives.open_out_bin which works under Windows.

File typing/cmt_format.ml, line 124.

@vicuna
Copy link
Author

vicuna commented Jun 8, 2012

Comment author: @alainfrisch

Fixed in trunk (r12589) and 4.00 (r12590).

@vicuna vicuna closed this as completed Dec 11, 2015
@vicuna vicuna added the typing label Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
dra27 pushed a commit to dra27/ocaml that referenced this issue Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants