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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,32bee71a8464bfc2 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: A bug in gnat/gcc 3.3.3? References: <1104854323.582074.155390@z14g2000cwz.googlegroups.com> <2756551.f73Z0G07VK@linux1.krischik.com> <41db6f28$1_2@news.tm.net.my> <2145623.4z7CBdWjFt@linux1.krischik.com> <877jmro9kt.fsf@insalien.org> <87fz1f1pp4.fsf@deneb.enyo.de> <1104972862.577700.268560@f14g2000cwb.googlegroups.com> From: Ludovic Brenta Date: Thu, 06 Jan 2005 20:07:10 +0100 Message-ID: <87sm5eml5t.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:XacY8gbT/gmbTsjB3+rjpT1jar0= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 06 Jan 2005 20:07:11 CET NNTP-Posting-Host: 83.134.244.175 X-Trace: 1105038431 dreader2.news.tiscali.nl 44109 83.134.244.175:38455 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:7525 Date: 2005-01-06T20:07:11+01:00 List-Id: "Adrian Hoe" writes: > Florian Weimer wrote: >> * Ludovic Brenta: >> >> >> Yes! 3.4 is currently the best option. 3.15 is old, 3.3 is buggy > and >> >> 4.0 is still fighting with the tree-saa extentsion. >> > >> > I differ with this. The quality of GCC 3.4 is similar to, but not >> > significantly better than that of GNAT 3.15p. Also, 3.4 is much >> > slower and memory-hungry than 3.15p (it may or may not matter to > you >> > but it's a fact). >> >> But this comparison is not fair because you are backporting fixes to >> GNAT 3.15p. No one is doing this for GNAT in GCC 3.4. 8-) >> >> Due to the NPTL problem, plain GNAT 3.15p is probably not so useful >> for many people with recent GNU/Linux distributions. > > Could you elaborate further your last statement? Why do you think > gnat3.15p is not so useful with recent GNU/Linux distribution? This issue has been discussed at length here. It is summarised in the corresponding Debian bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=245312 The workaround is to declare the environment variable LD_ASSUME_KERNEL=2.4.1 or any other value less than 2.6. The problem is on linux >= 2.6 with glibc >= 2.3, and on some 2.4 kernels provided by Red Hat. The patch that fixes this problem in GNAT 3.15p is quite small. > Also, does gnat3.15p work well with gcc3.3.3? > > If I'm going to bootstrap gnat 3.15p with gnat/gcc3.3.3, wouldn't the > buggy 3.x affect the compilation? Has anyone tried to bootstrap > gnat3.15p with gnat/gcc3.x before? I have done that without problems. The bootstrapping has three stages; the bootstrap compiler is used only in the first stage, to build a non-optimised new compiler. Then the new compiler recompiles itself, with optimisations, two times (stages 2 and 3) and compares the output. If the two recompiles gave the same results, the bootstrap is considered successful. -- Ludovic Brenta. This patch makes it possible to use the New POSIX Thread Library on Linux >= 2.6 and glibc >= 2.3. It also works on linux 2.4. I backported it from GCC 3.4. I omitted irrelevant parts of this patch to keep it minimal. -- Ludovic Brenta.