From: Sam Steingold <sds@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 36172@debbugs.gnu.org
Subject: bug#36172: 27.0.50; linking error in git head on macos: _aligned_alloc
Date: Tue, 11 Jun 2019 16:14:25 -0400 [thread overview]
Message-ID: <CAFsbZ7af4LFDipCmmaTnprDU6FZ17E-0Q_pnHmAF9iOa4W1+cw@mail.gmail.com> (raw)
In-Reply-To: <9046fcc5-fe75-88a0-ec03-33d69d030796@cs.ucla.edu>
$ gcc e.c
e.c:6:13: warning: 'aligned_alloc' is only available on macOS 10.15 or newer
[-Wunguarded-availability-new]
char *p = aligned_alloc (8, 1);
^~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:50:10:
note:
'aligned_alloc' has been marked as being introduced in macOS
10.15 here, but the deployment
target is macOS 10.14.0
void *aligned_alloc(size_t __alignment, size_t __size)
__result_use_check __alloc_size(...
^
e.c:6:13: note: enclose 'aligned_alloc' in a __builtin_available check
to silence this warning
char *p = aligned_alloc (8, 1);
^~~~~~~~~~~~~
e.c:7:13: warning: 'aligned_alloc' is only available on macOS 10.15 or newer
[-Wunguarded-availability-new]
char *q = aligned_alloc (8, 2);
^~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:50:10:
note:
'aligned_alloc' has been marked as being introduced in macOS
10.15 here, but the deployment
target is macOS 10.14.0
void *aligned_alloc(size_t __alignment, size_t __size)
__result_use_check __alloc_size(...
^
e.c:7:13: note: enclose 'aligned_alloc' in a __builtin_available check
to silence this warning
char *q = aligned_alloc (8, 2);
^~~~~~~~~~~~~
2 warnings generated.
my system is 10.14.5
On Tue, 11 Jun 2019 at 16:08, Paul Eggert <eggert@cs.ucla.edu> wrote:
>
> 'configure' says you have aligned_alloc, because it successfully built
> an executable that calls aligned_alloc. However, the dynamic linker
> fails, in that when temacs runs and calls aligned_alloc, its dynamic
> linker fails to find an implementation. Please figure out why that is.
> For example, you can compile and run this program with the same flags
> you use to compile Emacs:
>
> #include <stdlib.h>
>
> int
> main (int argc, char **argv)
> {
> char *p = aligned_alloc (8, 1);
> char *q = aligned_alloc (8, 2);
> return p && q && p == q;
> }
>
> If it compiles and runs successfully, you can then investigate why it
> works but temacs doesn't. Otherwise, you can investigate why it doesn't
> work.
>
--
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>
next prev parent reply other threads:[~2019-06-11 20:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-11 15:49 bug#36172: 27.0.50; linking error in git head on macos: _aligned_alloc Sam Steingold
2019-06-11 17:37 ` Paul Eggert
2019-06-11 18:20 ` Sam Steingold
2019-06-11 20:08 ` Paul Eggert
2019-06-11 20:14 ` Sam Steingold [this message]
2019-06-11 21:17 ` Paul Eggert
2019-08-04 7:15 ` Keith Irwin
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=CAFsbZ7af4LFDipCmmaTnprDU6FZ17E-0Q_pnHmAF9iOa4W1+cw@mail.gmail.com \
--to=sds@gnu.org \
--cc=36172@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
/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.