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,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: "deadlyhead" Newsgroups: comp.lang.ada Subject: Building GNAT/GCC 4.2.0 Date: 21 Nov 2006 17:28:01 -0800 Organization: http://groups.google.com Message-ID: <1164158881.380828.124800@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: 71.227.216.245 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1164158886 31704 127.0.0.1 (22 Nov 2006 01:28:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Nov 2006 01:28:06 +0000 (UTC) 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: e3g2000cwe.googlegroups.com; posting-host=71.227.216.245; posting-account=3zNdjA0AAADYVvazQ62DJFk1SGXq4y8w Xref: g2news2.google.com comp.lang.ada:7630 Date: 2006-11-21T17:28:01-08:00 List-Id: 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