From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elias Pipping Newsgroups: gmane.emacs.devel Subject: Re: Emacs 23.1.96 (git HEAD) crashing at startup. Date: Mon, 3 May 2010 01:55:26 +0200 Message-ID: References: <83zl0juhc5.fsf@gnu.org> <86d3xe28vm.fsf@chateau.d.if> <87tyqq74nf.fsf@stupidchicken.com> <83y6g2us9p.fsf@gnu.org> <87iq76uop1.fsf@stupidchicken.com> <87hbmplvmk.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272855499 26331 80.91.229.12 (3 May 2010 02:58:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 3 May 2010 02:58:19 +0000 (UTC) Cc: Vladimir Lomov , Eli Zaretskii , wahjava.ml@gmail.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 03 04:58:13 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 1O8lrJ-0008Fz-0C for ged-emacs-devel@m.gmane.org; Mon, 03 May 2010 04:58:13 +0200 Original-Received: from localhost ([127.0.0.1]:53325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8lrI-0000H4-IQ for ged-emacs-devel@m.gmane.org; Sun, 02 May 2010 22:58:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8j0o-0006Ki-GN for emacs-devel@gnu.org; Sun, 02 May 2010 19:55:50 -0400 Original-Received: from [140.186.70.92] (port=45263 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8j0n-0006K0-4b for emacs-devel@gnu.org; Sun, 02 May 2010 19:55:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8j0l-00088o-Qb for emacs-devel@gnu.org; Sun, 02 May 2010 19:55:49 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:44726) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8j0l-00088g-Gy; Sun, 02 May 2010 19:55:47 -0400 Original-Received: by fxm1 with SMTP id 1so1717796fxm.0 for ; Sun, 02 May 2010 16:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ZZFiEuTFU4EBx/qVgFLopk8JfmPXHfP3cz2QeVvaN2c=; b=qbJNhGckIN3mxmZf4R378jrZAsNzuSg5xhw+JJGx8W7FYdlcvIJ4DFXrIfOseginYQ NzcMPsw+MOoOAdgO862231NUilaQnNZH5cSsWAfP5uCeQLbOiAym1VHLC3mU7jODk/yr I1ontAMjl55EaYuHTZ9fYnlSxaHVZ/Q2G+3UA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=KufjDmzCKinINHAHBgpJ4oPWd/rbiYGq8IEwiob4niOtlfE8VwwkmP+G7PXpSl5LF1 CylWpB4/UlxGnni2wIhawUGMjsP2bdq4HBwuBm/upGA8t0bOgY3cFZbMCSPJJ6tYFHy1 6hRtuW02Rk6YMPO825oIcdoSTwqfh4jUJtHqY= Original-Received: by 10.102.14.5 with SMTP id 5mr8297956mun.33.1272844546094; Sun, 02 May 2010 16:55:46 -0700 (PDT) Original-Received: by 10.103.240.12 with HTTP; Sun, 2 May 2010 16:55:26 -0700 (PDT) In-Reply-To: <87hbmplvmk.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 02 May 2010 22:57:12 -0400 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:124461 Archived-At: On Mon, May 3, 2010 at 1:41 AM, Chong Yidong wrote: > Elias Pipping writes: > >> Could you make the check and the error message a bit more precise? For >> example, CFLAGS=3D"-O2 -fno-optimize-sibling-calls" should get through >> (CFLAGS=3D"-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. =A0Could you test this updated patch? Looks good in theory (see further down) > *** configure.in =A0 =A0 =A0 =A02010-04-20 01:29:37 +0000 > --- configure.in =A0 =A0 =A0 =A02010-05-02 23:38:03 +0000 > *************** > *** 2600,2605 **** > --- 2600,2613 ---- > =A0CFLAGS=3D"$REAL_CFLAGS" > =A0CPPFLAGS=3D"$REAL_CPPFLAGS" > > + ## Hack to detect a buggy GCC version. > + if test "x$GCC" =3D xyes \ > + =A0 =A0&& test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != =3D x \ > + =A0 =A0&& test x"`echo $CFLAGS | grep '\-O[23]'`" !=3D x \ the brackets need quoting here, -O[23] ends up as -O23 below > + =A0 =A0&& test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = =3D x; then > + =A0 =A0AC_MSG_ERROR([GCC 4.5.0 has problems compiling Emacs; see etc/PR= OBLEMS'.]) > + fi > + > =A0#### Find out which version of Emacs this is. > =A0[version=3D`grep 'defconst[ =A0 =A0 =A0]*emacs-version' ${srcdir}/lisp= /version.el \ > =A0 =A0 =A0 =A0 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] > > *** configure =A0 2010-04-20 01:29:37 +0000 > --- configure =A0 2010-05-02 23:38:37 +0000 > *************** > *** 25559,25564 **** > --- 25559,25574 ---- > =A0CFLAGS=3D"$REAL_CFLAGS" > =A0CPPFLAGS=3D"$REAL_CPPFLAGS" > > + ## Hack to detect a buggy GCC version. > + if test "x$GCC" =3D xyes \ > + =A0 =A0&& test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != =3D x \ > + =A0 =A0&& test x"`echo $CFLAGS | grep '\-O23'`" !=3D x \ > + =A0 =A0&& test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = =3D x; then > + =A0 =A0{ { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems comp= iling Emacs; see etc/PROBLEMS'." >&5 > + $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see et= c/PROBLEMS'." >&2;} > + =A0 =A0{ (exit 1); exit 1; }; } > + fi > + > =A0#### Find out which version of Emacs this is. > =A0version=3D`grep 'defconst[ =A0 =A0 =A0 ]*emacs-version' ${srcdir}/lisp= /version.el \ > =A0 =A0 =A0 =A0 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` Kind regards, Elias