From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,1bee490c6c78dfa4 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.220.230 with SMTP id pz6mr394109pbc.3.1343313949044; Thu, 26 Jul 2012 07:45:49 -0700 (PDT) Path: b9ni64857646pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to enable Ada with GCC in linux Date: Wed, 25 Jul 2012 11:32:41 +0100 Organization: A noiseless patient Spider Message-ID: References: <7d9fc771-b046-4fe2-a2ec-459664b90c8e@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="edf2659fbb8cb6d4b5f62db4b36ac1e6"; logging-data="13716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iws/SHXAtmn+RGokT6MGVkzZMTESyzF4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:BiRnsXWar9vP5ZE9YdqQUZEqqaw= sha1:+b7MV9XhbkCn56CuQx+kNXpkRPQ= Content-Type: text/plain Date: 2012-07-25T11:32:41+01:00 List-Id: Ada novice 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.