| GCC version | 6.3.1 20170510 for GNAT GPL 2017 | SPARK version | GPL 2017
and ran export PATH to the installed locations of GNAT and SPARK.
When I changed to the Muen source directory, and issued the make command, build failed with the following Make error:
nj@nj-linux:~/muen$ make
make -C contrib
make[1]: Entering directory '/home/nj/muen/contrib'
make -C ada-bfd || exit 1; make -C alog || exit 1; make -C gnatcoll || exit 1; make -C libhwbase || exit 1; make -C lsc || exit 1; make -C xia || exit 1;
make[2]: Entering directory '/home/nj/muen/contrib/ada-bfd'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/nj/muen/contrib/ada-bfd'
make[2]: Entering directory '/home/nj/muen/contrib/alog'
make[3]: Entering directory '/home/nj/muen/contrib/alog/tmp/alog'
No valid configuration found
Generation of configuration files failed
GNAT-TEMP-000001.TMP:1:01: "project" expected
gprbuild: processing of configuration project "/tmp/GNAT-TEMP-000001.TMP" failed
Makefile:62: recipe for target 'build_lib' failed
make[3]: *** [build_lib] Error 4
make[3]: Leaving directory '/home/nj/muen/contrib/alog/tmp/alog'
../contrib.mk:42: recipe for target '/home/nj/muen/contrib/alog/tmp/.alog-build' failed
make[2]: *** [/home/nj/muen/contrib/alog/tmp/.alog-build] Error 2
make[2]: Leaving directory '/home/nj/muen/contrib/alog'
Makefile:16: recipe for target 'build_recipes' failed
make[1]: *** [build_recipes] Error 1
make[1]: Leaving directory '/home/nj/muen/contrib'
Makefile:13: recipe for target 'contrib' failed
make: *** [contrib] Error 2
Could anyone help me on how to proceed? Could not find help in the documentation or online regarding this. I'm on Ubuntu 16.04.4 (x86_64 system).
Am I missing anything here?
$ git branch | grep \*
$ echo $PATH
$ gprbuild --version
$ gnat --version
$ gnatprove --version
Not definitely sure yet, but if you followed the README this should be
ok. GNAT/SPARK versions look fine at least.
Space is also not the problem it seems.
Can you please add -vh to the gprbuild switches of the build_lib target
in muen/contrib/alog/tmp/alog and then try again?
+GMAKE_OPTS = -vh -p ${GNATFLAGS} -margs
This is ok, the gprconfig tool is just looking for all available compilers.
What does the following command show:
$ gprconfig
It should list all available compilers, but I guess your list is empty.
Did you by any chance install both GNAT GPL 2016 and GNAT GPL 2017 into
the same /home/nj/gnat directory?
I would suggest the following:
$ rm -rf /home/nj/gnat/bin
$ rm -rf /home/nj/spark/bin
$ tar xfvz gnat-gpl-2017-x86_64-linux-bin.tar.gz -C /home/nj/
$ tar xfvz spark-discovery-gpl-2017-x86_64-linux-bin.tar.gz -C /home/nj/
$ export
PATH=/home/nj/spark-discovery-gpl-2017-x86_64-linux-bin/bin:/home/nj/gnat-gpl-2017-x86_64-linux-bin/bin:$PATH
And then retry.
Use the top-level 'make distclean' command to properly clean the Muen
working directory. If you remove directories manually, you must be sure
to remove the build directories of all dependencies as well.