unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith Irwin <keith@zentrope.com>
To: 43167@debbugs.gnu.org
Cc: Alan Third <alan@idiocy.org>
Subject: bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
Date: Tue, 1 Sep 2020 22:44:07 -0700	[thread overview]
Message-ID: <75F1FEBD-BFCF-44CB-A2E6-1BAC34D6D4F8@zentrope.com> (raw)

I’ve been unable to build Emacs from the master branch for the past several days on MacOS (Big Sur). Previously, compiling on Big Sur worked.

I get the following error:


      CC       fringe.o
      CC       image.o
      CC       json.o
      CC       nsterm.o
    In file included from nsterm.m:46:
    ./lisp.h:1237:24: error: implicit declaration of function 'typeof' is invalid in
          C99 [-Werror,-Wimplicit-function-declaration]
      return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));
                           ^
    ./lisp.h:444:26: note: expanded from macro 'make_fixnum'
    #  define make_fixnum(n) lisp_h_make_fixnum (n)
                             ^
    ./lisp.h:395:9: note: expanded from macro 'lisp_h_make_fixnum'
         ({ typeof (+(n)) lisp_h_make_fixnum_n = n; \
            ^
    ./lisp.h:1237:24: note: did you mean 'Ftype_of'?
    ./lisp.h:444:26: note: expanded from macro 'make_fixnum'
    #  define make_fixnum(n) lisp_h_make_fixnum (n)
                             ^
    ./lisp.h:395:9: note: expanded from macro 'lisp_h_make_fixnum'
         ({ typeof (+(n)) lisp_h_make_fixnum_n = n; \
            ^
    ./globals.h:4765:8: note: 'Ftype_of' declared here
    EXFUN (Ftype_of, 1);
           ^
    In file included from nsterm.m:46:
    ./lisp.h:1237:24: error: expected ';' after expression
      return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));


I tracked the issue to this commit:

    https://emba.gnu.org/emacs/emacs/-/commit/72f66f70eef18e3b25cc989d67711887304f184b

When I make this change to line ~1904:


    #GNU_OBJC_CFLAGS="-std=c99”
    GNU_OBJC_CFLAGS=""


I can compile emacs as per usual.

I’m running macOS 11, Beta 5, with Xcode Beta 6, though I’m not sure if that’s an issue.


$ clang --version

Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin20.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ gcc --version

Configured with: --prefix=/Applications/Xcode-beta.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin20.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin







             reply	other threads:[~2020-09-02  5:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02  5:44 Keith Irwin [this message]
2020-09-03 20:58 ` bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac Alan Third
2020-09-03 21:04   ` Keith Irwin
2020-09-04  6:59   ` Eli Zaretskii
     [not found] <m2pn67j6pd.fsf@breton.holly.idiocy.org>
2020-12-25  6:22 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=75F1FEBD-BFCF-44CB-A2E6-1BAC34D6D4F8@zentrope.com \
    --to=keith@zentrope.com \
    --cc=43167@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).