From mint-bounce@lists.fishpool.fi Tue Jan 22 17:33:36 2008 X-Original-To: fnaumann@mail.boerde.de Delivered-To: fnaumann@mail.boerde.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=HR5sYqFwGIbD04qqIWdWxloDLWR0fBcDNRbXPY2cMV0=; b=fOaqCTQiYm1HxEGcnBq3/IhovB5kZtcxyulnY4iPiH7yMsIuEa0KTxOw9dFUSd9UwvWNLsevbtCPNZv8XmctHJfjJMkcDApcNJlGZ849Nkaybw7LGg9hFbC6/mmXxyW6ir/sHp2d6yc7RqtvzOoKkgnTU/JKloq0LD9y60cfNwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kVC7MjmfOVCRr3+hywLf+TQR6vxYVMem55kGFsHklDuAHSYDZwy/tOWS22yMZgmcLQnb59ISYcCDPn4jfpd1HSIEtM1FjF2EquzoPHsACDY6dZUDPDABgFwE4jAx4W/4U+Kl7dWm7C7+ta10GalfzYDIj8o5x8XPJKwE+fCT6AU= Message-ID: Date: Sun, 13 Jan 2008 13:24:56 +0100 From: MiKRO To: mint@fishpool.com Subject: Re: [MiNT] gcc 4.2.2 compile error In-Reply-To: <4789F5F6.8090905@freesbee.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <478695AD.5080504@freesbee.fr> <4788CFD0.7040806@freesbee.fr> <47892AE3.5030108@freesbee.fr> <4789F5F6.8090905@freesbee.fr> X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-To: mint-bounce@lists.fishpool.fi X-original-sender: miro.kropacek@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: X-Virus-Scanned: by amavisd-new at relay.boerde.de X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00 X-Spam-Level: Status: X-Status: X-Keywords: > With the current patch, there is no problem while cross-compiling. > I can't remember exactly, but some define (maybe __BSD ?) was defined > during the configure tests, but not while compiling libstdc++-v3, thus > causing further problems. > hm, hard to say what exactly is the problem -- my cleanest solution was to add check to config/generic/c_locale.cc file also for C99 (_GLIBCXX_HAVE_STRTOF and _GLIBCXX_HAVE_STRTOLD implies _GLIBCXX_USE_C99 but unfortunately doesn't). So instead of: #if defined(_GLIBCXX_HAVE_STRTOF) I use: #if defined(_GLIBCXX_HAVE_STRTOF) && defined (_GLIBCXX_USE_C99) and everything is OK (same for STRTOLD). But it would be nice to know if it's bug either in str_to_xx detection (i.e. there shouldn't be _GLIBCXX_HAVE_STRTOxx defined) or there's somewhere C99 flag to be set. > Go to the GCC source directory and type: > ./config.guess > The script tries to guess the host triplet. > well, output is: m68k-atari-mint1.17a (on my falcon) > I think the release should not be included (just like for Linux or > Cygwin). But if it is here, maybe there is some good reason. > Or just a bad copy/paste ? > Probably bad copy/paste since I see no logic in this. Maybe this was precaution for some early versions of MiNT where could be some incompatibility, who knows. -- MiKRO / Mystic Bytes http://mikro.atari.org