Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trying to fix 'warning: no compiler specified for language "Ada", ignoring all its sources'

2,865 views
Skip to first unread message

Ben Hocking

unread,
Jun 14, 2012, 11:25:19 AM6/14/12
to
I've gone through the gems 68 and 69 here:
http://www.adacore.com/adaanswers/gems/gem-68/
http://www.adacore.com/adaanswers/gems/gem-69/

I was able to reproduce the examiner/simply/POGS results, but if I actually try to compile the code from GPS, I get the message:
gprbuild -d -P/Users/Dependable/Tools/Spark1/search/default.gpr
default.gpr:1:09: warning: no compiler specified for language "Ada", ignoring all its sources
gprbuild: no sources to compile
Similarly, if I try to compile just search.adb, I get:
gprbuild -ws -c -u -P/Users/Dependable/Tools/Spark1/search/default.gpr search.adb
gprbuild: "search.adb" is not a source of any project

If I go to Project->Edit Project Properties, I see that Ada is checked as a language, and its compiler is set as gnatmake. The file default.gpr looks like:
====
project Default is

-- for Languages use ("Ada");

package Ide is
for Default_Switches ("examiner") use ("-index_file=search.idx", "-config=search.cfg", "-flow_analysis=data", "-vcg");
-- for Compiler_Command ("ada") use "gnatmake";
end Ide;

package Compiler is
for Default_Switches ("ada") use ("-g", "-O2");
end Compiler;

end Default;
====
With the lines commented out with "--" having no impact whether they are commented out or not (since these are the default values).

I'm using the native gnat toolchain, version GPL 2011 (20110419), and my GPS version is GPS 5.0.1 (20110113) hosted on x86_64-apple-darwin10.2.0. I'm on OS X 10.6.8. I was able to compile in GPS a couple days ago, so I feel like something's changed (although I haven't updated any software since then), but I have no idea what.

Any help would be appreciated.

Thanks,
-Ben

Stephen Leake

unread,
Jun 15, 2012, 7:49:29 AM6/15/12
to
Ben Hocking <benjami...@gmail.com> writes:

> gprbuild -d -P/Users/Dependable/Tools/Spark1/search/default.gpr
> default.gpr:1:09: warning: no compiler specified for language "Ada", ignoring all its sources

This is a tool install problem; gprbuild calls gprconfig, which can't
find a matching Ada compiler.

To debug, run gprbuild with -v to see the gprconfig line, then gprconfig
with -v to see what it's doing. Hopefully the problem will then be
obvious.

For example, you may need to specify a target on the gprbuild line, if
the target it is looking for does not exactly match what it is finding.

> I'm using the native gnat toolchain, version GPL 2011 (20110419), and
> my GPS version is GPS 5.0.1 (20110113) hosted on
> x86_64-apple-darwin10.2.0. I'm on OS X 10.6.8. I was able to compile
> in GPS a couple days ago, so I feel like something's changed (although
> I haven't updated any software since then), but I have no idea what.

Something has changed :(.

If gprconfig -v doesn't help, uninstall and reinstall GNAT GPL 2011

--
-- Stephe
0 new messages