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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c29b14f3223f3446 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.28.2 with SMTP id x2mr6540112pbg.6.1319399679128; Sun, 23 Oct 2011 12:54:39 -0700 (PDT) Path: c1ni4813pbr.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT Date: Sun, 23 Oct 2011 21:54:38 +0200 Organization: A noiseless patient Spider Message-ID: <87zkgriiv5.fsf@ludovic-brenta.org> References: <4ea41d89$0$2553$da0feed9@news.zen.co.uk> <4ea44ad9$0$2965$fa0fcedb@news.zen.co.uk> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="Yr4GEDrCBxt6WoSUqF8aEg"; logging-data="26361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QfzKLJHmkvvkIY8n4feua" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:R5Tp6E5W5vSaafU4JalI6pgK4CI= sha1:ZRERgEiFK/vsI5Il5PzD2lj2SLw= Xref: news2.google.com comp.lang.ada:14162 Content-Type: text/plain; charset=us-ascii Date: 2011-10-23T21:54:38+02:00 List-Id: Mark Murray writes: > On 23/10/2011 14:59, Mark Murray wrote: >> 1) How do I get build gcc-4.7 such that the ${PREFIX}/bin/gnat* bits >> "know" that gcc${SUFFIX} or ${PREFIX}/ is to be used, and >> not the first "gcc" it finds on the path? Rearranging the path is not >> a permanent option, its OK for bootstrapping; "gcc" is "system gcc", >> if I want other gcc then I'd like to ask for that specifically with >> (say) "gcc47". > > Answering myself partially on this one; it looks like you can't? > > I dug through the source for gnatmake etc in gcc-4.7-20111015/gcc/ada > and found strings (more than one) that would indicate that "gcc" is > hardcoded and not configuable. > > I'm no Ada programmer (I want this so I can learn!), so I may be > missing something, but its not looking good so far. > > Next step is to hack the source and see. Yuk! :-) In Debian GNU/Linux and GNU/kFreeBSD, gnat is patched to use gcc-x.y instead of just gcc. The patch for 4.6 is here[1]. But I think your best bet is simply to use the GNAT port by John Marino[2]. If you still want to learn how to build GNAT on FreeBSD, I suggest you get in touch with him[3] and collaborate on the port. [1] http://green.ada-france.org:8081/revision/file/64a5a2fc291fd77a36fc8df3fa96253b00ce3846/debian/patches/ada-gcc-name.diff [2] http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/gnat-aux/ [3] http://www.dragonlace.net Hope this helps. -- Ludovic Brenta.