From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#32924: 27.0.50; Error building master on macOS Mojave Date: Tue, 9 Oct 2018 11:19:24 -0700 Organization: UCLA Computer Science Department Message-ID: <29abcbed-68f5-39ec-046e-a316ed39efaa@cs.ucla.edu> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------CACE21FFFF83513D74965935" X-Trace: blaine.gmane.org 1539109178 2179 195.159.176.226 (9 Oct 2018 18:19:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2018 18:19:38 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: 32924-done@debbugs.gnu.org To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 09 20:19:34 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1g9wbW-0000Pj-4v for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 20:19:34 +0200 Original-Received: from localhost ([::1]:53326 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9wdc-0002Q9-N0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Oct 2018 14:21:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9wcD-0001eF-24 for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 14:20:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9wc6-0003hg-Qp for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 14:20:16 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38289) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9wc0-0003bu-F8 for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 14:20:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g9wc0-0007dX-AH for bug-gnu-emacs@gnu.org; Tue, 09 Oct 2018 14:20:04 -0400 In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Oct 2018 18:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 32924 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 32924@debbugs.gnu.org, eggert@cs.ucla.edu, p.stephani2@gmail.com Original-Received: via spool by 32924-done@debbugs.gnu.org id=D32924.153910918329310 (code D ref 32924); Tue, 09 Oct 2018 18:20:01 +0000 Original-Received: (at 32924-done) by debbugs.gnu.org; 9 Oct 2018 18:19:43 +0000 Original-Received: from localhost ([127.0.0.1]:42547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9wba-0007cV-QI for submit@debbugs.gnu.org; Tue, 09 Oct 2018 14:19:43 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g9wbU-0007cC-QQ for 32924-done@debbugs.gnu.org; Tue, 09 Oct 2018 14:19:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0E1821615A6; Tue, 9 Oct 2018 11:19:27 -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 JpuT0LlIv6j3; Tue, 9 Oct 2018 11:19:24 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D2AF1161685; Tue, 9 Oct 2018 11:19:24 -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 nXXGvKy0j1Ud; Tue, 9 Oct 2018 11:19:24 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id AD9D11615A6; Tue, 9 Oct 2018 11:19:24 -0700 (PDT) Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151056 Archived-At: This is a multi-part message in MIME format. --------------CACE21FFFF83513D74965935 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit > $ gcc --version > Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 > Apple LLVM version 10.0.0 (clang-1000.11.45.2) Wait, the command 'gcc' on macOS actually runs Clang? That's cold. How do you think Apple would feel if we called Emacs "iPhone"? Anyway, we can pacify Clang by disabling its -Wnull-pointer-arithmetic option, so I installed the attached. I'd rather do this than go back to the old intptr_t way of doing things, which has too many problems with missing type-checking at the C language level (unless you configure with --enable-check-lisp-object-type, which has its own set of problems). --------------CACE21FFFF83513D74965935 Content-Type: text/x-patch; name="0001-Port-enable-gcc-warnings-to-recent-clang.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Port-enable-gcc-warnings-to-recent-clang.patch" >From 7f1beabfcdcb58d90aa78db22b9a123faf298749 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 9 Oct 2018 11:16:00 -0700 Subject: [PATCH] Port --enable-gcc-warnings to recent clang * configure.ac: Disable -Wnull-pointer-arithmetic if clang (Bug#32924). --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6f3d7338c3..df910280b4 100644 --- a/configure.ac +++ b/configure.ac @@ -1019,9 +1019,10 @@ AC_DEFUN gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-format-nonliteral]) - # clang is unduly picky about braces. + # clang is unduly picky about some things. if test "$emacs_cv_clang" = yes; then gl_WARN_ADD([-Wno-missing-braces]) + gl_WARN_ADD([-Wno-null-pointer-arithmetic]) fi # This causes too much noise in the MinGW build -- 2.17.1 --------------CACE21FFFF83513D74965935--