FAQ: Compilation problems - MetaRocq/metarocq GitHub Wiki
Frequent make cleanplugin in the directory you are working in is necessary, probably after every change. Sometimes it might also be necessary to do touch theories/Extraction.v to trigger generation of ml files again.
-
Error: No rule to build <dir>/src/<file>.ml: The files<file>.mland<file>.mlineed to be added to the_PluginProjector_PluginProject.infile. The order of files in there is not relevant. Fortemplate-coq, the file is_PluginProject, for all other<dir>s it it_PluginProject.in. -
Dynlink error: no implementation available for <file>Findlib paths<file>(without.vending) needs to be added to themlpackfile./erasure/src/metacoq_erasure_plugin.mlpack,./safechecker/src/metacoq_safechecker_plugin.mlpack, or./template-coq/src/template_coq.mlpack -
Error: Symbol <file> not found:<file>(without.vending) needs to be added to themlpackfile./erasure/src/metacoq_erasure_plugin.mlpack,./safechecker/src/metacoq_safechecker_plugin.mlpack, or./template-coq/src/template_coq.mlpack -
Error: <file>.cmx does not exist":<file>.mland<file>.mlihave to be removed from the respective_PluginProjector_PluginProject.infile. -
Warning XX treated as error: AddXXto theCAMLFLAGSinMakefile.plugin.local -
Axiom not realised: Check theExtract Constantcommands related toguard_implinsafechecker/theories/Extraction.vLikely you need to add a similar command for the unrealised axiom.
-
<file> makes inconsistent assumptions: Either you need to runmakeagain to recompile<file>.v, or you have installed MetaCoq globally and the local installation is picking up both global and local files.