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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e083e2da6a3c57ad,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.106.161 with SMTP id gv1mr17457262wib.4.1366859243866; Wed, 24 Apr 2013 20:07:23 -0700 (PDT) Path: hg5ni24072wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: =?utf-8?B?R05BVEJpbmQgd2l0aCBhIEdOQVQgY3Jvc3PigJFjb21waWxlcg==?= Date: Thu, 25 Apr 2013 05:07:18 +0200 Organization: Ada @ Home Message-ID: NNTP-Posting-Host: MElZi/LkXjdV3cIyylAczw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-04-25T05:07:18+02:00 List-Id: Hi people, While trying to figure the cause of some weird errors while compiling wi= th = a GNAT cross=E2=80=91compiler, I noticed the wrong GPRBind was invoked (= not = matching the target). I fixed this using for Switches ("Ada") use ("--gnatbind_path=3D/=E2=80=A6/-gn= atbind"); =E2=80=A6 in the Builder package of the project file, which can also be = made a = default editing a `*.cgpr` file or one of the files of the GPRConfig = database. Then I noticed there is a `-gcc`, and a `-ld` and so on= , = for each of my targets including the native one, but only a = `-gnatbind` for non=E2=80=91native target, and the native one on= ly exist = as unprefixed. So I will rename all non=E2=80=91prefixed GNAT tools to give them a targ= et prefix = and will remove the default (with all non=E2=80=91prefix named tools) GN= AT = compiler suite to only have the ones I compiled, so that I will always g= et = an error whenever any one of these tools is unfortunately invoked using = a = non=E2=80=91prefixed name, which is error=E2=80=91prone as this is likel= y to not be the = one for the target. I don't really have any question, that's just to tell people in case any= = one encounter a similar issue. I still wonder why, as compilation of GCC= = and Binutils generates a prefixed version of all of their tools, why don= 't = compilation of GNAT do the same. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity