comp.lang.ada
 help / color / mirror / Atom feed
From: "deadlyhead" <s.brutzman@gmail.com>
Subject: Re: Building GNAT/GCC 4.2.0
Date: 14 Dec 2006 16:03:04 -0800
Date: 2006-12-14T16:03:04-08:00	[thread overview]
Message-ID: <1166140984.940697.186780@80g2000cwy.googlegroups.com> (raw)
In-Reply-To: <87ac2ilf7p.fsf@ludovic-brenta.org>

Alright, so I'm giving this another shot.  I've downloaded the latest
version of the 4.2 branch of GCC, and I'm attempting to once again
compile based on the Gnat-GPL download from AdaCore.

The options I pass in the configure script are as follows:

 $src_dir/configure --prefix=/usr --enable-bootstrap --enable-shared
--enable-threads --enable-clocale=gnu --enable-__cxa_atexit
--enable-gtk-cairo --enable-libada
--enable-languages=ada,c,c++,java,fortran,objc,obj-c++,treelang

where $src_dir is the root gcc directory, since I'm building in a
directory outside of the tree.

configure runs flawlessly, and there are no issues in the logs.

When I'm building, though, things go great until the Ada part of the
build.  Here is the tail from the output:

gcc -c -g -fkeep-inline-functions      -gnatpg -gnata -I- -I. -Iada
-I/usr/src/gcc/gcc/gcc/ada /usr/src/gcc/gcc/gcc/ada/checks.adb -o
ada/checks.o
gcc -c -g -fkeep-inline-functions      -gnatpg -gnata -I- -I. -Iada
-I/usr/src/gcc/gcc/gcc/ada /usr/src/gcc/gcc/gcc/ada/comperr.adb -o
ada/comperr.o
make[3]: Leaving directory `/usr/src/gcc/gcc-build/gcc'
make[2]: Leaving directory `/usr/src/gcc/gcc-build'
make[1]: Leaving directory `/usr/src/gcc/gcc-build'
comperr.adb:182:30: warning: index for "X" may assume lower bound of 1
comperr.adb:182:30: warning: suggested replacement: "X'First"
comperr.adb:185:48: warning: index for "X" may assume lower bound of 1
comperr.adb:185:48: warning: suggest replacement of "X'Length" by
"X'Last"
make[3]: *** [ada/comperr.o] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2

As you can see, I'm having trouble with warnings being treated as
errors.  I've not been able to find where in the Makefiles this
behavior is specified.  Is -Werror a permanent option in the GCC
supplied by the Gnat-GPL release?  Does anyone have a clean way of
turning this off?

I've tried modifying the file comperr.adb to avoid this hangup by using
the pragma assert to force the lower bound assumption of 1 indicated in
the errors, however this just allows comperr.adb to compile and later
files will throw the same.

Sorry to keep beating this dead horse.  It's driving me nuts.

--Seth

On Nov 23, 12:50 am, Ludovic Brenta <ludo...@ludovic-brenta.org>
wrote:
> deadlyhead writes:
> > I'm thinking of attempting to build trunk again, and carefully go
> > over all of the tests to see where the failures are.  I don't like
> > the idea, though, of not being able to compile the majority of my
> > programs to get Ada working (though I'm trying to build Ada into my
> > normal compiler because I also don't like the idea of having two
> > compilers hanging around).This is the job of your distribution, IMHO.  What platform are you on?
>
> On most GNU/Linux distributions nowadays, GCC supports Ada out of the
> box.  On Debian, official Ada support is in GCC 4.1.1.  There is also
> an experimental package gcc-4.2-snapshot which includes the Ada
> compiler, but no support for it.
>
> Whatever your distribution, I encourage you to review the build
> scripts (beware, they can be very complex, e.g. in Debian) and the
> build logs to see if the distribution maintainers encountered the same
> problems as you did.  Then get in touch with the maintainers and
> contribute patches :)
> 
> --
> Ludovic Brenta.




  reply	other threads:[~2006-12-15  0:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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
replies disabled

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