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

Non reproducible build with elpi 2 #302

Closed
proux01 opened this issue Dec 13, 2024 · 3 comments
Closed

Non reproducible build with elpi 2 #302

proux01 opened this issue Dec 13, 2024 · 3 comments

Comments

@proux01
Copy link
Contributor

proux01 commented Dec 13, 2024

With following file a.v

From elpi Require Import elpi.

Module M.
End M.

Elpi Command foo.
#[synterp] Elpi Accumulate "                                                                                                                                   
main _ :-                                                                                                                                                      
  coq.env.import-module { coq.locate-module ""M"" }.                                                                                                           
".
Elpi Accumulate "                                                                                                                                              
main _ :-                                                                                                                                                      
  coq.env.import-module { coq.locate-module ""M"" }.                                                                                                           
".
Elpi foo.

The command

coqc a.v && mv -f a.vo a.vo.bak && coqc a.v && diff a.vo a.vo.bak

answers

Binary files a.vo and a.vo.bak differ

(minimized with @CohenCyril )

FTR the pure Coq Module M. End M. Export M. is stable.

@proux01
Copy link
Contributor Author

proux01 commented Dec 13, 2024

Only appeared with elpi >= 2.0, was not there with elpi 1.20

@proux01
Copy link
Contributor Author

proux01 commented Dec 13, 2024

More precisely, my git bisect pointed to LPCIC/coq-elpi#719
First bad commit I was able to find being 87235d79fee8666391874d2a24560441f516c32b "Elpi File immediately scopes the program" (I wasn't able to compile older commits with a released version of elpi)

@gares
Copy link
Contributor

gares commented Dec 13, 2024

Fixed by #303

@gares gares closed this as completed Dec 13, 2024
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

2 participants