Closed Earnestly closed 6 years ago
My mistake. I was using the latest gcc code for the gnat2why/gnat_src
symlink. I corrected this and switched to using the same gcc commit (bce1ab0478f96724828df51ccfd43197d917c572) my machine is using.
However next error:
[...]
[Ada] atree.adb
[Ada] back_end.adb
[Ada] checks.adb
[Ada] comperr.adb
[Ada] csets.adb
[Ada] debug.adb
[Ada] elists.adb
[Ada] errout.adb
spark_util.ads:489:16: "Within_Protected_Type" is undefined (more references follow)
compilation of back_end.adb failed
gprbuild: *** compilation phase failed
make[1]: *** [Makefile;66: build] Error 4
make[1]: Leaving directory '/.../spark2014/gnat2why'
make: *** [Makefile;142: gnat2why] Error 2
It appears my version of gcc is ever so slightly too old for this codebase.
Indeed, we do not have a suitable mechanism for synching the latest versions of GNAT and SPARK, due to the fact that the GNAT repo at AdaCore is not public, only the repo at the FSF is public and it is lagging a few days behind the GNAT repo. What we recommend if you want to rebuild SPARK is to rebuild the latest GPL release, following these instructions: https://github.com/AdaCore/spark2014#6-building-spark-with-a-gnat-gpl-compiler
Thank you, but I won't be using the "community" edition.
Using https://github.com/AdaCore/spark2014/tree/gpl-2017