From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Keith Irwin Newsgroups: gmane.emacs.bugs 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 Message-ID: <75F1FEBD-BFCF-44CB-A2E6-1BAC34D6D4F8@zentrope.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.0.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third To: 43167@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 02 07:45:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDLa4-0004MT-74 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 07:45:12 +0200 Original-Received: from localhost ([::1]:35196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDLa3-0005y1-9G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Sep 2020 01:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDLZu-0005xl-FH for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 01:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46412) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDLZu-0000X1-5N for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 01:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDLZu-0008Di-0M for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 01:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keith Irwin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Sep 2020 05:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43167 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159902546331535 (code B ref -1); Wed, 02 Sep 2020 05:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2020 05:44:23 +0000 Original-Received: from localhost ([127.0.0.1]:57958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDLZG-0008CZ-GQ for submit@debbugs.gnu.org; Wed, 02 Sep 2020 01:44:22 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDLZA-0008CM-UR for submit@debbugs.gnu.org; Wed, 02 Sep 2020 01:44:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDLZA-0005ux-Lp for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 01:44:16 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:38911) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDLZ5-0000T8-Mk for bug-gnu-emacs@gnu.org; Wed, 02 Sep 2020 01:44:16 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C2FB25C023C; Wed, 2 Sep 2020 01:44:09 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 02 Sep 2020 01:44:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=gh2eJq dxysoC5gQSqDXX3u/ILmQAlDrTi+gw6hRjhTA=; b=bnnROI3C9jbsrjZQV1eqDy doDi2ywrz43rPITN1Ek0WZ6TMhVfw0W1bxa1x26waIk6LwRF+kpSX6+V1Pety+0v OMsYgFDDLkDHFXGTCkGb0pjdZY/gYorlg6rEvY3fHmPDYb2pHd4UGVFgNewZZK62 jCMC/VeokllJ3Yc0B3NYDQdDN/RO63ozIAyrf1cvKV/3knjSMfah+r9Zbd3MNcMC yUWPo7S12ctbZ5s81gUQvdBS7mB5qHkVM4nM2h/6rD9H87w0Bj4WM8l5Ns6iKRvY 6ODJenIha8V6vXLEBHzPNtlffYd5ksMh43hC6bRwd6Iz+NSccjQkvST9mQd+KJSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudefkedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephfgtgfgguffkfffvofesthhqmhdthhdtjeenucfhrhhomhepmfgvihhthhcu kfhrfihinhcuoehkvghithhhseiivghnthhrohhpvgdrtghomheqnecuggftrfgrthhtvg hrnhepveehfeffledvueffledtueevhfehudffteelvdevfeelgefffeellefhheekffej necuffhomhgrihhnpehgnhhurdhorhhgpdigtghouggvqdgsvghtrgdrrghpphenucfkph epleejrdduvddtrddvfeelrddutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepmhgrihhlfhhrohhmpehkvghithhhseiivghnthhrohhpvgdrtghomh X-ME-Proxy: Original-Received: from localhost.localdomain (97-120-239-10.ptld.qwest.net [97.120.239.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 9A7F8328005E; Wed, 2 Sep 2020 01:44:08 -0400 (EDT) X-Mailer: Apple Mail (2.3654.0.3) Received-SPF: none client-ip=66.111.4.27; envelope-from=keith@zentrope.com; helo=out3-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/02 01:44:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186904 Archived-At: I=E2=80=99ve 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 =3D 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 =3D 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/72f66f70eef18e3b25cc989d67711887= 304f184b When I make this change to line ~1904: #GNU_OBJC_CFLAGS=3D"-std=3Dc99=E2=80=9D GNU_OBJC_CFLAGS=3D"" I can compile emacs as per usual. I=E2=80=99m running macOS 11, Beta 5, with Xcode Beta 6, though I=E2=80=99= m not sure if that=E2=80=99s 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.xc= toolchain/usr/bin $ gcc --version Configured with: = --prefix=3D/Applications/Xcode-beta.app/Contents/Developer/usr = --with-gxx-include-dir=3D/Applications/Xcode-beta.app/Contents/Developer/P= latforms/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.xc= toolchain/usr/bin