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.66.74.41 with SMTP id q9mr1651938pav.41.1343312861996; Thu, 26 Jul 2012 07:27:41 -0700 (PDT) Path: b9ni64759856pbl.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news2.arglkargh.de!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: How to enable Ada with GCC in linux Date: Wed, 25 Jul 2012 09:51:23 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <7d9fc771-b046-4fe2-a2ec-459664b90c8e@googlegroups.com> Mime-Version: 1.0 Injection-Date: Wed, 25 Jul 2012 09:51:23 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="0e44dd4a3c4e0a6e83a86f947fb780ae"; logging-data="4295"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tp8Z4xcP0wUW+iQV8gk9LGHYuasSpkSs=" User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Cancel-Lock: sha1:1RqGHDp3oD5wnFfT1lYYvgocnFE= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-07-25T09:51:23+00:00 List-Id: On Wed, 25 Jul 2012 02:06:33 -0700, Ada novice wrote: > I'm new to Linux and I have been able to run Ada programs under linux. > On my machine, I found: > > gcc -v Using built-in specs. ... > --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr ... > 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. > > gnatmake --version GNATMAKE GPL 2011 (20110419) > Copyright (C) 1995-2011, Free Software Foundation, Inc. Two different versions of gcc... > Should I leave things as they are since I am able to compile the Ada > programs well? That depends... If you are happy with GPL for everything you write at the moment, and Gnat GPL does what you want, then leave things as they are. (If it ain't broke, don't fix it!) If you want the option of writing non-GPL code, get the FSF version of Gnat (with the GMGPL license, or GPL3 replagement). On debian, "apt-get install gnat" ought to do it. If you have other problems (hitting obscure compiler bugs?) or want something not available in Gnat GPL (mixing Ada and Go code perhaps?) or something in FSF GCC that isn't in GPL yet) then get the FSF version. You can have more than one gnat installed, and fiddle with paths to switch between them. (It can get confusing though.) - Brian