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

WIP: Attempt to fix Cmi_format error in voodoo-do, by checking in prep that the magic numbers are ok #115

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sabine
Copy link
Collaborator

@sabine sabine commented Jul 14, 2023

Is there a better way to check that we won't get a Cmi_format error? I really don't understand everything that's going on here and if this is a useful check.

The other possibility to fix the Cmi_format error that's caused by copying files generated by the wrong OCaml compiler version would be to catch the Cmi_format error in voodoo-do and discard it, if I understand it correctly.

@sabine sabine force-pushed the fix_cmi_format_error branch from c8f32c2 to 01db246 Compare July 14, 2023 09:15
@jonludlam
Copy link
Collaborator

The other way would be to catch it at source - ie, in prep.

@sabine
Copy link
Collaborator Author

sabine commented Jul 14, 2023

This patch is trying to catch it in prep. I think if there's a reliable way to catch it there, that would be preferable.

@sabine sabine changed the title WIP: Attempt to fix Cmi_format error in voodoo-do, by checking in prep that the magic numbers match WIP: Attempt to fix Cmi_format error in voodoo-do, by checking in prep that the magic numbers are ok Jul 14, 2023
src/voodoo-prep/prep.ml Outdated Show resolved Hide resolved
@sabine sabine marked this pull request as ready for review July 24, 2023 07:23
sabine added a commit that referenced this pull request Jul 24, 2023
@sabine sabine force-pushed the fix_cmi_format_error branch from 01db246 to 35fdec9 Compare July 24, 2023 09:56
sabine added a commit that referenced this pull request Jul 25, 2023
@sabine sabine force-pushed the fix_cmi_format_error branch from 58ec9ae to e6d146f Compare July 25, 2023 07:22
src/voodoo-prep/prep.ml Outdated Show resolved Hide resolved
sabine added a commit that referenced this pull request Jul 25, 2023
@sabine sabine force-pushed the fix_cmi_format_error branch from 9dda26c to 2f7b1f4 Compare September 6, 2023 12:11
gpetiot and others added 2 commits September 6, 2023 14:14
* Use read_cmt/cmi functions from compiler-libs

Co-authored-by: Guillaume Petiot <[email protected]>
sabine added a commit that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants