From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.1.96 (git HEAD) crashing at startup. Date: Sun, 02 May 2010 19:41:23 -0400 Message-ID: <87hbmplvmk.fsf@stupidchicken.com> References: <83zl0juhc5.fsf@gnu.org> <86d3xe28vm.fsf@chateau.d.if> <87tyqq74nf.fsf@stupidchicken.com> <83y6g2us9p.fsf@gnu.org> <87iq76uop1.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272843709 769 80.91.229.12 (2 May 2010 23:41:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 23:41:49 +0000 (UTC) Cc: Vladimir Lomov , Eli Zaretskii , wahjava.ml@gmail.com, emacs-devel@gnu.org To: Elias Pipping Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 03 01:41:47 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O8inB-0005vj-1a for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 01:41:45 +0200 Original-Received: from localhost ([127.0.0.1]:35101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8inA-00040u-Bt for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 19:41:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8in5-00040n-Ts for emacs-devel@gnu.org; Sun, 02 May 2010 19:41:39 -0400 Original-Received: from [140.186.70.92] (port=47068 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8in3-00040f-D8 for emacs-devel@gnu.org; Sun, 02 May 2010 19:41:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8in2-0006rj-BK for emacs-devel@gnu.org; Sun, 02 May 2010 19:41:37 -0400 Original-Received: from pantheon-po35.its.yale.edu ([130.132.50.83]:42591) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8in2-0006rb-6b; Sun, 02 May 2010 19:41:36 -0400 Original-Received: from furry ([64.134.64.184]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o42NfXqM022876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 2 May 2010 19:41:33 -0400 Original-Received: by furry (Postfix, from userid 1000) id 8AC51C055; Sun, 2 May 2010 19:41:23 -0400 (EDT) In-Reply-To: (Elias Pipping's message of "Mon, 3 May 2010 00:05:36 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124448 Archived-At: Elias Pipping writes: > Could you make the check and the error message a bit more precise? For > example, CFLAGS="-O2 -fno-optimize-sibling-calls" should get through > (CFLAGS="-O1 -foptimize-sibling-calls" should not, but that can > probably be ignored). It'd also be nice if either the error message or > the comments in configure.in referred to this bug. Sure. Could you test this updated patch? *** configure.in 2010-04-20 01:29:37 +0000 --- configure.in 2010-05-02 23:38:03 +0000 *************** *** 2600,2605 **** --- 2600,2613 ---- CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS" + ## Hack to detect a buggy GCC version. + if test "x$GCC" = xyes \ + && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ + && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ + && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then + AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.]) + fi + #### Find out which version of Emacs this is. [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] *** configure 2010-04-20 01:29:37 +0000 --- configure 2010-05-02 23:38:37 +0000 *************** *** 25559,25564 **** --- 25559,25574 ---- CFLAGS="$REAL_CFLAGS" CPPFLAGS="$REAL_CPPFLAGS" + ## Hack to detect a buggy GCC version. + if test "x$GCC" = xyes \ + && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ + && test x"`echo $CFLAGS | grep '\-O23'`" != x \ + && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then + { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5 + $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;} + { (exit 1); exit 1; }; } + fi + #### Find out which version of Emacs this is. version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`