[bug #2180] (grass) Re: [GRASS5] C and C++ compiler changes?

Request Tracker grass-bugs at intevation.de
Wed Oct 22 09:59:14 EDT 2003


this bug's URL: http://intevation.de/rt/webrt?serial_num=2180
-------------------------------------------------------------------------

On Wed, Oct 22, 2003 at 10:36:00AM +0200, Bernhard Reiter wrote:
> On Tue, Oct 21, 2003 at 08:05:32PM +0200, Thierry Laronde wrote:
> > 
> > Great. All I wanted to emphasize ---since I have spent some times trying
> > to convince GNU libc (latest) and GNU cc (latest) to compile smoothly
> > together...--- is that we are going to have some hard time with mixes
> > of different versions of gcc and glibc... And the C++ support has deeply
> > changed too!
> 
> Well it is _only_ about the C++ support as far as I always understood this.
> Mixing most of the plain C libraries have never been a major problem.
> Am I missing something?

No, in the sense that the "user apparent" changes are with the C++ part.
But unfortunately, GCC 3.3.1 for example has some bugs in optimization
and inlining meaning that we will have some rough times with compilation
failures reports that may be caused by bugs in the compiler and not in
the code (for example some version(s) of glibc doesn't compile with it
and one can compile a Linux kernel with it that will cause bugs (in my
case this was reboot) : but compilation succeeds...; so imagine the 
hell if a glibc compiles but is buggy!).

As for the GNU libc, this is also a problem at the moment because glibc
is not only libc, it's a bundle of libraries and extensions and,
unfortunately, people use to develop with glibc forgetting that some
features are GNU idiosynchrasies and thinking that there are "standard"
and compilation may fell with other libraries, or even fail compiling
against another version of glibc since these extensions change from
time to time (I have experienced this too this week-end).

Synthesis: there may be in the future reports about C++ (need to be
fixed because the 3.x series of GCC has changed a lot of things in 
this area) and reports about compiling failures that are caused by
particular mixes between versions of GCC and glibc but not because
GRASS code is in itself buggy.

I agree with you that we must stick as much as possible to C, and I
add strict ANSI/ISO C and strict POSIX functions, clearly making the
distinctions between what is standard and what is not: we need in this
case to provide the libraries or to set a dependency against one open
implementation.

-- 
Thierry Laronde (Alceste) <tlaronde at polynum.org>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


--- Headers Follow ---

>From tlaronde at polynum.com  Wed Oct 22 15:59:13 2003
Return-Path: <tlaronde at polynum.com>
Delivered-To: grass-bugs at lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
	by lists.intevation.de (Postfix) with ESMTP id EF8531398D
	for <grass-bugs at lists.intevation.de>; Wed, 22 Oct 2003 15:59:12 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by mail.intevation.de (Postfix) with ESMTP id 003B536DD1
	for <grass-bugs at lists.intevation.de>; Wed, 22 Oct 2003 15:59:12 +0200 (CEST)
Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62])
	by mail.intevation.de (Postfix) with ESMTP id B5D3236DD0
	for <grass-bugs at intevation.de>; Wed, 22 Oct 2003 15:59:09 +0200 (CEST)
Received: from galois.polynum.com (lns-th2-13-82-64-77-40.adsl.proxad.net [82.64.77.40])
	by postfix4-1.free.fr (Postfix) with ESMTP
	id DEE5A64AF0; Wed, 22 Oct 2003 15:49:50 +0200 (CEST)
Received: (from tlaronde at localhost)
	by galois.polynum.com (8.9.3/8.9.3/Debian 8.9.3-21) id PAA10062;
	Wed, 22 Oct 2003 15:44:49 +0200
Date: Wed, 22 Oct 2003 15:44:49 +0200
From: Thierry Laronde <tlaronde at polynum.com>
To: Request Tracker <grass-bugs at intevation.de>, grass5 at grass.itc.it
Subject: Re: [GRASS5] C and C++ compiler changes?
Message-ID: <20031022154449.A10030 at polynum.org>
References: <20031020211825.78C6F13B9A at lists.intevation.de> <20031021151649.A8008 at polynum.org> <3F956B71.8070800 at bowdoin.edu> <20031021200532.A9158 at polynum.org> <20031022083600.GD28324 at intevation.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0.1i
In-Reply-To: <20031022083600.GD28324 at intevation.de>; from bernhard at intevation.de on Wed, Oct 22, 2003 at 10:36:00AM +0200
X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=5.0 tests=BAYES_00
X-Spam-Level: 

-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list