From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: git+master: c6e6503900534d939dd94b812563c27f22c49b7d crash when using gnus Date: Sun, 29 Apr 2018 09:30:58 -0700 Organization: UCLA Computer Science Department Message-ID: <4ede606e-5392-abbd-9f60-3bd866cf01d5@cs.ucla.edu> References: <87o9i3ya1x.fsf@mat.ucm.es> <83efizu0nm.fsf@gnu.org> <87o9i3iqs1.fsf@mat.ucm.es> <83bme3txq2.fsf@gnu.org> <874ljvh7df.fsf@mat.ucm.es> <83a7tnttw9.fsf@gnu.org> <87vaca2ydp.fsf@mat.ucm.es> <87muxm3w97.fsf@mat.ucm.es> <8336zet5fc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------01D0082365152185A0ECEB06" X-Trace: blaine.gmane.org 1525019352 12217 195.159.176.226 (29 Apr 2018 16:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 29 Apr 2018 16:29:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 Cc: Uwe Brauer , Emacs developers To: Noam Postavsky , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 29 18:29:08 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCpCF-00034T-Op for ged-emacs-devel@m.gmane.org; Sun, 29 Apr 2018 18:29:07 +0200 Original-Received: from localhost ([::1]:56126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCpEM-0002Ry-H3 for ged-emacs-devel@m.gmane.org; Sun, 29 Apr 2018 12:31:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCpEF-0002Ri-Pt for emacs-devel@gnu.org; Sun, 29 Apr 2018 12:31:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCpEE-0007u2-P3 for emacs-devel@gnu.org; Sun, 29 Apr 2018 12:31:11 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:41872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCpEA-0007o8-Un; Sun, 29 Apr 2018 12:31:07 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id ABB9B1600E9; Sun, 29 Apr 2018 09:31:04 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nRkNvHFxD16D; Sun, 29 Apr 2018 09:31:03 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BD09E1600F1; Sun, 29 Apr 2018 09:31:03 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sedLPa4sG_vV; Sun, 29 Apr 2018 09:31:03 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 552891600E9; Sun, 29 Apr 2018 09:31:03 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224954 Archived-At: This is a multi-part message in MIME format. --------------01D0082365152185A0ECEB06 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Noam Postavsky wrote: > the autoconf manual recommends setting variables (apart from > CONFIG_SHELL) in the ./configure command line rather than the > environment. Quite right, and the Emacs doc mostly follows that advice, but there were a few cases where it still used the older convention of setting CFLAGS in the environment. I fixed the cases I found by installing the attached into master. --------------01D0082365152185A0ECEB06 Content-Type: text/x-patch; name="0001-Advise-CFLAGS-operand-not-in-environment-when-config.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Advise-CFLAGS-operand-not-in-environment-when-config.pa"; filename*1="tch" >From bf12cc6c7830937b4c1a3df46294e74bea749a5f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 29 Apr 2018 09:28:11 -0700 Subject: [PATCH] Advise CFLAGS= operand, not in environment, when configuring --- etc/DEBUG | 3 ++- etc/PROBLEMS | 2 +- nt/INSTALL | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/etc/DEBUG b/etc/DEBUG index a779295..49764fc 100644 --- a/etc/DEBUG +++ b/etc/DEBUG @@ -16,7 +16,8 @@ make the debugging easier. Here's the configure-time options we recommend (they are in addition to any other options you might need, such as --prefix): - CFLAGS='-O0 -g3' ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type + ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ + CFLAGS='-O0 -g3' The CFLAGS value is important: debugging optimized code can be very hard. (If the problem only happens with optimized code, you may need diff --git a/etc/PROBLEMS b/etc/PROBLEMS index d19efaa..8fb3d74 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -126,7 +126,7 @@ This version of GCC is buggy: see You can work around this error in gcc-4.5 by omitting sibling call optimization. To do this, configure Emacs with - CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure + ./configure CFLAGS="-g -O2 -fno-optimize-sibling-calls" ** Emacs compiled with GCC 4.6.1 crashes on MS-Windows when C-g is pressed diff --git a/nt/INSTALL b/nt/INSTALL index d2e5e99..6706942 100644 --- a/nt/INSTALL +++ b/nt/INSTALL @@ -52,7 +52,8 @@ build will run on Windows 9X and newer systems). You can pass other options to the configure script. Here's a typical example (for an in-place debug build): - CFLAGS='-O0 -g3' ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs' + ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs' \ + CFLAGS='-O0 -g3' 3. After the configure script finishes, it should display the resulting configuration. After that, type @@ -461,7 +462,8 @@ build will run on Windows 9X and newer systems). A few frequently used options are needed when you want to produce an unoptimized binary with runtime checks enabled: - CFLAGS='-O0 -g3' ./configure --prefix=PREFIX --enable-checking='yes,glyphs' + ./configure --prefix=PREFIX --enable-checking='yes,glyphs' \ + CFLAGS='-O0 -g3' Once invoked, the configure script will run for some time, and, if successful, will eventually produce a summary of the configuration -- 2.7.4 --------------01D0082365152185A0ECEB06--