comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Murray <w.h.oami@example.com>
Subject: Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT
Date: Sun, 23 Oct 2011 14:59:03 +0100
Date: 2011-10-23T14:59:03+01:00	[thread overview]
Message-ID: <4ea41d89$0$2553$da0feed9@news.zen.co.uk> (raw)

Hi all

"AMD64" is what FreeBSD calls "X86_64".

Hopefully this version of this question hasn't been asked too many
times before!

I'm building GCC-4.7 with Ada on FreeBSD/AMD64 with some success.

I used an earlier version of FreeBSD's GNAT port (no longer available
on more recent FreeBSD's) as the bootstrap compiler; this installs the
binaries into /usr/local/bin/gcc44. After a minor fix, this compiler
works fine _as_long_as_ the above directory is first in the path.

If the above directory is NOT first in the path, then gnatmake uses
gcc off the path, finding the local gcc in /usr/bin/gcc, which, because
its not Ada-aware, fails.

After GCC+Ada is built and installed into ${PREFIX}/bin (PREFIX is
/usr/local here) the same problem exists with the newly compiled
gnatmake (in /usr/local/bin); it runs "gcc", gets the one off the path
in /usr/bin and breaks.

Questions:

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".

2) The rest of gcc built fine with a ${SUFFIX} of "47", so I get
${PREFIX}/bin/gcc47 etc.
How do I get the same with ${PREFIX}/bin/gnat* and friends?

Thanks!

M
-- 
Mark "No Nickname" Murray
Notable nebbish, extreme generalist.



             reply	other threads:[~2011-10-23 13:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 13:59 Mark Murray [this message]
2011-10-23 17:12 ` Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT Mark Murray
2011-10-23 19:54   ` Ludovic Brenta
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