comp.lang.ada
 help / color / mirror / Atom feed
* Building GNAT/GCC 4.2.0
@ 2006-11-22  1:28 deadlyhead
  2006-11-22  4:20 ` Jeffrey Creem
  2006-11-22  8:21 ` Duncan Sands
  0 siblings, 2 replies; 19+ messages in thread
From: deadlyhead @ 2006-11-22  1:28 UTC (permalink / raw)


Has anybody successfully done this?  I've been pulling down the SVN
repository on the gcc-4_2-branch from gnu.org and trying to build with
Ada2005 support, but I've been running into nothing but hangups for the
past three days.

It all begins when the *.adb files (the first one to do this is
gcc/ada/comperr.adb) have warnings based on the fact that string ranges
might be out of bounds (which they aren't, but the GNAT compiler is
designed to sniff out possible hangups like this).  Unfortunately,
these warnings are treated as errors due to the -gnatg switch passed to
gcc, and compilation fails.  There are several ways around this: using
pragma Assert to designate the lower bound; actually changing the
reference to use something along the lines of S'First; passing
ADAFLAGS='-gnatwn', which negates the effect that '-gnatg' has when
warnings are found.

After many failed attempts, I chose to pass '-gnatwn' along with some
other parameters, and this got me past anywhere which warnings were
treated as errors.  A new issue arose, though, when a seemingly
generated *.c file, gnatl.c, has several undefined references within
it.  It has no comments, of course, and I can't find where all of the
'extern' references are supposed to go.  This is where I'm stuck.  I'm
no fan of C, and I also can't find where this file originates.  (I've
looked through all of the sources, to no avail.)  If anyone has either
gotten around this, or is having the same experience, I'd sure like to
know.

So, does AdaCore simply submit patches wholesale, and hope the GCC
developers will make them work?  Or are these tested before the
submission so that the branch they are posting to does compile?  I
noticed that on the 17th of October, several patches were submitted for
the 4.3 branch now in stage 1.  I tried compiling that, but every
_other_ language is messed up there.

--Seth




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

end of thread, other threads:[~2006-12-16  9:38 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-22  1:28 Building GNAT/GCC 4.2.0 deadlyhead
2006-11-22  4:20 ` Jeffrey Creem
2006-11-22  8:21 ` Duncan Sands
2006-11-22 16:14   ` deadlyhead
2006-11-23  8:50     ` Ludovic Brenta
2006-12-15  0:03       ` deadlyhead
2006-12-15  0:11         ` deadlyhead
2006-12-15  5:25           ` deadlyhead
2006-12-15  8:40             ` Ludovic Brenta
2006-12-15  9:59               ` deadlyhead
2006-12-15 10:00                 ` deadlyhead
2006-12-15 11:55                   ` Ludovic Brenta
2006-12-15 12:07                     ` Georg Bauhaus
2006-12-15 18:22                       ` deadlyhead
2006-12-16  9:38                         ` deadlyhead
2006-12-15 18:17                     ` deadlyhead
2006-12-15 14:53                   ` Duncan Sands
2006-12-15 14:52                 ` Duncan Sands
2006-12-15  7:47         ` Duncan Sands

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