help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with native compilation


From: Jonathon McKitrick
Subject: Help with native compilation
Date: Tue, 19 Oct 2021 10:59:53 +0000

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.'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]