comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT
Date: Sun, 23 Oct 2011 21:54:38 +0200
Date: 2011-10-23T21:54:38+02:00	[thread overview]
Message-ID: <87zkgriiv5.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 4ea44ad9$0$2965$fa0fcedb@news.zen.co.uk

Mark Murray <w.h.oami@example.com> 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}/<something> 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.



  reply	other threads:[~2011-10-23 19:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 13:59 Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT Mark Murray
2011-10-23 17:12 ` Mark Murray
2011-10-23 19:54   ` Ludovic Brenta [this message]
2011-10-23 21:03     ` Mark Murray
2011-10-24 16:23       ` jrmarino
2011-10-24 18:28         ` Mark Murray
2011-10-24 18:52           ` jrmarino
2011-10-24 19:48             ` Mark Murray
2011-10-24 20:14             ` Ludovic Brenta
2011-10-24 20:21               ` Mark Murray
2011-10-23 20:32   ` Kulin Remailer
2011-10-23 20:51     ` Mark Murray
2011-10-23 21:16       ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox