From: Simon Wright <simon@pushface.org>
Subject: Re: How to enable Ada with GCC in linux
Date: Wed, 25 Jul 2012 11:32:41 +0100
Date: 2012-07-25T11:32:41+01:00 [thread overview]
Message-ID: <m2zk6op1va.fsf@nidhoggr.home> (raw)
In-Reply-To: 7d9fc771-b046-4fe2-a2ec-459664b90c8e@googlegroups.com
Ada novice <shai.lesh@gmx.com> writes:
> I'm new to Linux and I have been able to run Ada programs under
> linux. On my machine, I found:
>
> gcc -v
[...]
> gcc version 4.6.3 (Debian 4.6.3-1)
>
> As we can see above, Ada is not enabled in the languages available in
> GCC. Yet, my gnatmake calls gcc well.
This seems to be how Debian handles Ada.
> gnatmake --version
> GNATMAKE GPL 2011 (20110419)
> Copyright (C) 1995-2011, Free Software Foundation, Inc.
'gnatls -v' includes extra helpful information.
> Should I leave things as they are since I am able to compile the Ada
> programs well?
I would fix it. If you don't it will come back to bite you.
Please tell us the output of
$ echo $PATH
and
$ gnatgcc -v
(I would expect it to be the same as the output of gcc -v, since (here)
/usr/bin/gnatgcc is a symlink to /usr/bin/gcc-4.4).
The symptoms appear to indicate that you have GNAT GPL 2011's bin/
directory on your PATH *after* /usr/bin and that you don't have Debian's
Ada package installed. Things would be more consistent if you had GNAT
GPL 2011's bin/ directory first.
By the way, I think you said that you have GNAT GPL 2011 installed in
something like /usr/gnat/? It would be better to install it in
/usr/local/gnat-2011, for example, then you could install 2012 in a
parallel directory, and have a choice. Rather like it's done for
Windows. And then you can 'rm -rf /usr/local/gnat-2012' and remove all
trace of it.
next prev parent reply other threads:[~2012-07-26 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-25 9:06 How to enable Ada with GCC in linux Ada novice
2012-07-25 9:41 ` Georg Bauhaus
2012-07-25 9:51 ` Brian Drummond
2012-07-25 10:03 ` Nasser M. Abbasi
2012-07-25 10:32 ` Simon Wright [this message]
2012-07-25 11:25 ` Ada novice
2012-07-25 11:58 ` Ada novice
2012-07-25 15:32 ` Ada novice
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox