From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30681 invoked by alias); 6 May 2008 20:41:07 -0000 Received: (qmail 30669 invoked by uid 22791); 6 May 2008 20:41:06 -0000 X-Spam-Check-By: sourceware.org Received: from merkur.ins.uni-bonn.de (HELO merkur.ins.uni-bonn.de) (131.220.223.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 May 2008 20:40:46 +0000 Received: from localhost.localdomain (xdsl-87-78-109-22.netcologne.de [87.78.109.22]) by merkur.ins.uni-bonn.de (Postfix) with ESMTP id 576174000073F; Tue, 6 May 2008 22:40:44 +0200 (CEST) Received: from ralf by localhost.localdomain with local (Exim 4.63) (envelope-from ) id 1JtTxi-0004Hh-QX; Tue, 06 May 2008 22:40:34 +0200 Date: Tue, 06 May 2008 23:25:00 -0000 From: Ralf Wildenhues To: James Molloy Cc: gcc-help@gcc.gnu.org Subject: Re: GCC 4.3.0 configure failure: libgcc Message-ID: <20080506204032.GB16385@ins.uni-bonn.de> Mail-Followup-To: Ralf Wildenhues , James Molloy , gcc-help@gcc.gnu.org References: <48206A25.5060304@transitive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48206A25.5060304@transitive.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00071.txt.bz2 Hello James, * James Molloy wrote on Tue, May 06, 2008 at 04:24:37PM CEST: > > I'm attempting to build GCC 4.3.0 - and I thought I had succeeded until > I realised that the 'all-gcc' make target (now?) doesn't build libgcc.a. > configure:4082: g++ -c -g -O2 conftest.cc >&5 > conftest.cc: In function 'int main()': > conftest.cc:13: error: 'exit' was not declared in this scope > As you can see, the test program autoconf is generating does not include > , so g++ is perfectly correct in erroring. > Compiling GCC 4.3.0 from source using G++ 4.1.2, autoconf 2.61, and > automake 1.10. Use Autoconf 2.59 to generate configure (and Automake 1.9.6). Better yet, do not regenerate configure scripts at all, just use those shipped with 4.3.0. Newer Autoconf versions don't take care to declare exit any more. The GCC macros need to be adjusted for this before using newer Autoconf. I'll post a patch. Hope that helps. Cheers, Ralf