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

ocamlopt generates zero-length .annot file; ocamlc generates full file #6855

Closed
vicuna opened this issue May 2, 2015 · 1 comment
Closed
Assignees

Comments

@vicuna
Copy link

vicuna commented May 2, 2015

Original bug ID: 6855
Reporter: Martin Keegan
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2016-12-07T10:49:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Fixed in version: 4.03.0+dev / +beta1
Category: documentation

Bug description

A zero-length .annot file is generated under certain circumstances.

Steps to reproduce

Clone the repo provided under additional information, and build.

Check that the royalty.annot file is zero length; note that building with ocamlc rather than ocamlopt generates a royalty.annot file with proper contents.

I notice that failing to add the main.ml file to the list of files to be compiled also affects whether the bug manifests.

Additional information

See smallish project at: https://github.com/mk270/example-annot

@vicuna
Copy link
Author

vicuna commented May 2, 2015

Comment author: @gasche

Thanks for the work to provide a repro case. This allowed me to verify that this bug is already fixed in trunk, I believe by Damien Doligez in
94dfb61

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