Coqide Error: Compiled library Basics.vo makes inconsistent assumptions over library

坚强是说给别人听的谎言 提交于 2019-12-10 03:14:48

问题


i'm using CoqIDE_8.4pl5 on mac os X. This error message pops up when CoqIDE forwards to this command: Require Import Basics.

Error: Compiled library Basics.vo makes inconsistent assumptions over library Coq.Init.Notations

I didn't get this problem on my old Macbook Air when i was using CoqIDE_8.4pl5, but when i got a new macbook pro, and i downloaded it again from the same website. But this time on this macbook pro, i used brew cask install coq to get it installed... but it seemed to not work, so i downloaded it from the website and set my coqide path to the same path it was in my old macbook air.. and when i try forwarding my assignments, i get this problem. Is there anyway to fix this? or do i have to remove coq and copied and reinstall it?


回答1:


This is usually a case of Coq telling you that the compiled version of Basics.v (Basics.vo) has been compiled with a different version of Coq than the one you are currently using.

For safety reasons, each version of Coq only wants to use files compiled with that same version.

The fix is usually to delete the incriminating Basics.vo file and reproduce the compilation step that created it.

If the error happens again, then it might be a case of your system having two versions of Coq installed, one of which is reached by your building script, while the other one is use by CoqIDE.



来源:https://stackoverflow.com/questions/29661373/coqide-error-compiled-library-basics-vo-makes-inconsistent-assumptions-over-lib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!