From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#37483: [PATCH] macOS build error (aligned_alloc) Date: Mon, 23 Sep 2019 11:14:55 +0200 Message-ID: References: <6CB9FE84-5DF1-458C-B6A9-6C10DDADF601@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="238495"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37483@debbugs.gnu.org To: mituharu@math.s.chiba-u.ac.jp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 23 11:18:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iCKUj-000ztH-L5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Sep 2019 11:18:57 +0200 Original-Received: from localhost ([::1]:54138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCKUi-00075a-JJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Sep 2019 05:18:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53582) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCKRw-000595-QK for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 05:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCKRv-0005vA-4U for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 05:16:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54461) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCKRu-0005uy-Ne for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 05:16:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCKRu-0004Hu-Ha for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2019 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Sep 2019 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37483 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37483-submit@debbugs.gnu.org id=B37483.156923011116403 (code B ref 37483); Mon, 23 Sep 2019 09:16:02 +0000 Original-Received: (at 37483) by debbugs.gnu.org; 23 Sep 2019 09:15:11 +0000 Original-Received: from localhost ([127.0.0.1]:35049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCKR4-0004GV-QU for submit@debbugs.gnu.org; Mon, 23 Sep 2019 05:15:11 -0400 Original-Received: from mail1423c50.megamailservers.eu ([91.136.14.23]:36172 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iCKR1-0004Fb-N6 for 37483@debbugs.gnu.org; Mon, 23 Sep 2019 05:15:09 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1569230099; bh=IVj7/r7oFyGA7y9VcQ4ywKpzctNCKs/GeYON8cbFY1E=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=D4U3cLvIMwhTQJj++4WCbSUonxowj2LtRKifESurmyiy/ja5J5dPFusKjClScXi6n 4ItxE2LpsrW6CN/taa1qxIr/vDHzxhvd6AmcR7pogPzjIG95ClMSf93BzpbEqpden8 lBqwZs5jlN/4TM8AsvniPNBNfpn3HlnCUH0/MUN0= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] ([188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x8N9EuHL006733; Mon, 23 Sep 2019 09:14:58 +0000 X-Priority: 3 (Normal) In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0207.5D888D13.0042, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=AZbP4EfG c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=QT_bpaqbkX1pEpTLDqoA:9 a=CjuIK1q_8ugA:10 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 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: 209.51.188.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:166968 Archived-At: 22 sep. 2019 kl. 22.14 skrev mituharu@math.s.chiba-u.ac.jp: >=20 > You would need to install the Command Line Developer Tools with > "xcode-select --install". In general this is necessary when the > macOS version is older than the newest one Xcode supports. In > the case of Xcode 11, it is macOS 10.15. >=20 > Actually you don't need Xcode for building Emacs, but the Command > Line Developer Tools would be sufficient. Thank you, this is useful to know. Even so, doesn't it make sense to make the configure script work with = tools that support newer OS versions? After all, we are not talking = about cross-tools or tools that can only generate code for newer = versions. If I want to use the most recent toolchain for my OS, these = (Xcode 11) tools are the ones to use. I first tried some other workarounds: configuring with = -Werror=3Dunguarded-availability-new in CFLAGS will prevent = HAVE_DECL_ALIGNED_ALLOC from being defined, but HAVE_ALIGNED_ALLOC is = not affected because its config check doesn't include the standard = header (by design).