comp.lang.ada
 help / color / mirror / Atom feed
* Bootstrapping Gnu ADA onto FreeBSD/AMD64-CURRENT
@ 2011-10-23 13:59 Mark Murray
  2011-10-23 17:12 ` Mark Murray
  0 siblings, 1 reply; 13+ messages in thread
From: Mark Murray @ 2011-10-23 13:59 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-10-24 20:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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