[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36356: 27.0.50; linking error in git head on macos: _freea in libgnu
From: |
Sam Steingold |
Subject: |
bug#36356: 27.0.50; linking error in git head on macos: _freea in libgnu |
Date: |
Mon, 24 Jun 2019 11:28:26 -0400 |
Thanks, but `make` now fails with
/Library/Developer/CommandLineTools/usr/bin/make -C ../lisp update-subdirs
cp -f temacs bootstrap-emacs
rm -f bootstrap-emacs.pdmp
./temacs --batch -l loadup --temacs=pbootstrap
dyld: lazy symbol binding failed: Symbol not found: _aligned_alloc
Referenced from: /Users/sam.steingold/src/emacs/trunk/build/src/./temacs
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _aligned_alloc
Referenced from: /Users/sam.steingold/src/emacs/trunk/build/src/./temacs
Expected in: /usr/lib/libSystem.B.dylib
make[1]: *** [bootstrap-emacs.pdmp] Abort trap: 6
make: *** [src] Error 2
(while `make bootstrap` rewrites gnulib.mk)
When I disable _aligned_alloc in config.h, I get the _freea failure:
CCLD temacs
Undefined symbols for architecture x86_64:
"_freea", referenced from:
_rpl_realpath in libgnu.a(canonicalize-lgpl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [temacs] Error 1
make: *** [src] Error 2
On Mon, 24 Jun 2019 at 11:03, Robert Pluim <rpluim@gmail.com> wrote:
>
> >>>>> On Mon, 24 Jun 2019 10:41:13 -0400, Sam Steingold <sds@gnu.org> said:
>
> Sam> "make bootstrap" fails with:
> Sam> CCLD temacs
> Sam> Undefined symbols for architecture x86_64:
> Sam> "_freea", referenced from:
> Sam> _rpl_realpath in libgnu.a(canonicalize-lgpl.o)
> Sam> ld: symbol(s) not found for architecture x86_64
> Sam> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> Sam> make[2]: *** [temacs] Error 1
> Sam> make[1]: *** [src] Error 2
> Sam> make: *** [bootstrap] Error 2
>
> I think you'll find the following works better as a temporary workaround:
>
> $ diff -u gnulib.mk gnulib.mk.new
> --- gnulib.mk 2019-06-24 17:01:19.655623952 +0200
> +++ gnulib.mk.new 2019-06-24 16:05:31.629871485 +0200
> @@ -1998,10 +1998,8 @@
> ## begin gnulib module malloca
> ifeq (,$(OMIT_GNULIB_MODULE_malloca))
>
> -ifneq (,$(gl_GNULIB_ENABLED_malloca))
> libgnu_a_SOURCES += malloca.c
>
> -endif
> EXTRA_DIST += malloca.h
>
> endif
--
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>