aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2022-07-07 10:09:17 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2022-07-07 10:09:17 +0200
commit0eefd517c797f2f17ef9228e5a4d07c5dc8ecada (patch)
tree9361af28c4507e711f8ffd17a26144be8f7898d7
parent38cf239c1bc11b535deadd34b023303aecd631d3 (diff)
downloadcompcert-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--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2c849f42..b3b7a124 100644
--- a/Makefile
+++ b/Makefile
@@ -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