GNU bug report logs - #37483
[PATCH] macOS build error (aligned_alloc)

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattiase <at> acm.org>

Date: Sun, 22 Sep 2019 17:26:02 UTC

Severity: normal

Tags: notabug, patch

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mattias Engdegård <mattiase <at> acm.org>
To: mituharu <at> math.s.chiba-u.ac.jp
Cc: 37483 <at> debbugs.gnu.org
Subject: bug#37483: [PATCH] macOS build error (aligned_alloc)
Date: Mon, 23 Sep 2019 11:14:55 +0200
22 sep. 2019 kl. 22.14 skrev mituharu <at> math.s.chiba-u.ac.jp:
> 
> 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.
> 
> 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=unguarded-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).





This bug report was last modified 5 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.