From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,42e5b13fda5e9af4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!80g2000cwy.googlegroups.com!not-for-mail From: "deadlyhead" Newsgroups: comp.lang.ada Subject: Re: Building GNAT/GCC 4.2.0 Date: 14 Dec 2006 16:03:04 -0800 Organization: http://groups.google.com Message-ID: <1166140984.940697.186780@80g2000cwy.googlegroups.com> References: <1164158881.380828.124800@e3g2000cwe.googlegroups.com> <1164212075.779099.103750@j44g2000cwa.googlegroups.com> <87ac2ilf7p.fsf@ludovic-brenta.org> NNTP-Posting-Host: 71.227.216.245 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1166140991 15693 127.0.0.1 (15 Dec 2006 00:03:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 15 Dec 2006 00:03:11 +0000 (UTC) In-Reply-To: <87ac2ilf7p.fsf@ludovic-brenta.org> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061008 Firefox/3.0a1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 80g2000cwy.googlegroups.com; posting-host=71.227.216.245; posting-account=3zNdjA0AAADYVvazQ62DJFk1SGXq4y8w Xref: g2news2.google.com comp.lang.ada:7914 Date: 2006-12-14T16:03:04-08:00 List-Id: 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 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.