diff options
author | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2022-07-07 10:09:17 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2022-07-07 10:09:17 +0200 |
commit | 0eefd517c797f2f17ef9228e5a4d07c5dc8ecada (patch) | |
tree | 9361af28c4507e711f8ffd17a26144be8f7898d7 | |
parent | 38cf239c1bc11b535deadd34b023303aecd631d3 (diff) | |
download | compcert-0eefd517c797f2f17ef9228e5a4d07c5dc8ecada.tar.gz compcert-0eefd517c797f2f17ef9228e5a4d07c5dc8ecada.zip |
Check early that extraction did not run into unimplemented axioms
This has been known to happen, e.g. when using Flocq 4.0.
If we don't stop the build at this point, a `ccomp` executable is built
that fails every time it is run.
Closes: #438
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -205,6 +205,11 @@ extraction: extraction/STAMP extraction/STAMP: $(FILES:.v=.vo) extraction/extraction.v $(ARCH)/extractionMachdep.v rm -f extraction/*.ml extraction/*.mli $(COQEXEC) extraction/extraction.v + @if grep 'AXIOM TO BE REALIZED' extraction/*.ml; then \ + echo "An error occured during extraction to OCaml code."; \ + echo "Check the versions of Flocq and MenhirLib used."; \ + exit 2; \ + fi touch extraction/STAMP .depend.extr: extraction/STAMP tools/modorder driver/Version.ml |