unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Help with native compilation
@ 2021-10-19 10:59 Jonathon McKitrick
  2021-10-19 19:24 ` Daniel Fleischer
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathon McKitrick @ 2021-10-19 10:59 UTC (permalink / raw)
  To: help-gnu-emacs

I'm trying to build emacs 28 or 29 with native compilation on macos.

I'm building from the formula homebrew-emacs-head (I've opened an issue there, but it seems no one else has this problem).
I reinstalled gcc and libgccjit.

Everything seems to work until I start emacs, then I see this error message:

Warning (initialization): An error occurred while loading ‘/Users/jmckitrick/.emacs.d/init.el’:

Native compiler error: (lambda (arg1 &optional) (let ((f #'yes-or-no-p)) (funcall f arg1))), Compiling /Users/jmckitrick/.emacs.d/eln-cache/28.0.60-3d05cc13/subr--trampoline-7965732d6f722d6e6f2d70_yes_or_no_p_0.eln...
ld: library not found for -lgcc_ext.10.5
libgccjit.so: error: error invoking gcc driver
Debugger entered--Lisp error: (native-ice "failed to compile" "/Users/jmckitrick/.emacs.d/eln-cache/28.0.60-3d05c..." "error invoking gcc driver")
  comp--compile-ctxt-to-file("/Users/jmckitrick/.emacs.d/eln-cache/28.0.60-3d05c...")
    comp-compile-ctxt-to-file("/Users/jmckitrick/.emacs.d/eln-cache/28.0.60-3d05c...")
      comp-final1()
        load-with-code-conversion("/private/var/folders/27/xs02f08d325_q2vh49wks48r00..." "/private/var/folders/27/xs02f08d325_q2vh49wks48r00..." nil t)
	  command-line-1(("-l" "/var/folders/27/xs02f08d325_q2vh49wks48r0000gn/T/e..."))
	    command-line()
	      normal-top-level()

	      Warning (comp): libgccjit.so: error: error invoking gcc driver Disable showing Disable logging
	      Warning (comp): /usr/local/Cellar/emacs-head@28/28.0.50_1/share/emacs/28.0.60/lisp/url/url-vars.el.gz: Error: Internal native compiler error failed to compile Disable showing Disable logging
	      Warning (comp): libgccjit.so: error: error invoking gcc driver Disable showing Disable logging
	      Warning (comp): /usr/local/Cellar/emacs-head@28/28.0.50_1/share/emacs/28.0.60/lisp/password-cache.el.gz: Error: Internal native compiler error failed to compile Disable showing Disable logging

	      
Where is the best place to get help for this issue?



Jonathon McKitrick
--
'My other computer is your Linux box.'



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-27 11:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 10:59 Help with native compilation Jonathon McKitrick
2021-10-19 19:24 ` Daniel Fleischer
2021-10-21 15:04   ` jcm
2021-10-27 11:04     ` Jonathon McKitrick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).