all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Philipp <p.stephani2@gmail.com>
Cc: 32924-done@debbugs.gnu.org
Subject: bug#32924: 27.0.50; Error building master on macOS Mojave
Date: Tue, 9 Oct 2018 11:19:24 -0700	[thread overview]
Message-ID: <29abcbed-68f5-39ec-046e-a316ed39efaa@cs.ucla.edu> (raw)
In-Reply-To: <m25zyilrjk.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]

> $ 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).

[-- Attachment #2: 0001-Port-enable-gcc-warnings-to-recent-clang.patch --]
[-- Type: text/x-patch, Size: 901 bytes --]

From 7f1beabfcdcb58d90aa78db22b9a123faf298749 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
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


      parent reply	other threads:[~2018-10-09 18:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03 20:10 bug#32924: 27.0.50; Error building master on macOS Mojave Philipp
2018-10-03 20:44 ` Philipp Stephani
2018-10-09 18:19 ` Paul Eggert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29abcbed-68f5-39ec-046e-a316ed39efaa@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=32924-done@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.