Den 6. sep. 2021 kl. 06.39 skrev Eli Zaretskii <eliz@gnu.org>:From: Niels Søndergaard <nisoni@algon.dk>
Date: Sun, 5 Sep 2021 21:10:25 +0200
I tried to compile 28.0.50 --with-native-compilation
this warning came out:
Warning (initialization): An error occurred while loading ‘/Users/niels/.emacs.d/init.el’:
Native compiler error: (lambda (arg0 &optional) (let ((f #'yes-or-no-p)) (funcall f arg0))), Compiling
/Users/niels/.emacs.d/eln-cache/28_0_50-8be1867a/subr--trampoline-7965732d6f722d6e6f2d70_yes_or_no_p_0.eln...
ld: library not found for -lgcc_s.1.1
libgccjit.so: error: error invoking gcc driver
This means your libgccjit installation is broken: it lacks some shared
libraries it needs, at least the one shown, libgcc_s.1.1.so (or maybe
the extension should be .dynlib on macOS?).the rest of the compilation goes well, however the statement, but emacs
crashes under initialization whenever it tries to evaluate (fset 'yes-or-no-p 'y-or-n-p)......
Yes, of course: it tries to call functions from a missing library.