-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with 29.3 #28
Comments
That's an interesting error. I can't reproduce it locally, even tried on a fresh macOS VM with nothing except Xcode Command Line Tools installed. Generally searching for info online hasn't yielded much answers either. The best I can guess, is that maybe doom-emacs is messing with the Basically, the builds all include a custom If you run For the x86_64 build, it should be something like this:
Or for the arm64 build, I would expect something like:
The important path is the one that matches As for why you're having this problem on 29.3, but not 29.2 however, I have no clue :( One potential thing you could test, is to install |
I had the same error as @maikol-solis . I found this issue and was able to get past this issue by adding the following to (setenv "LIBRARY_PATH" "/usr/local/lib/gcc/current:/usr/local/lib/gcc/current/gcc/x86_64-apple-darwin23/13/") Your path may be different depending on which processor you have. |
@joobus that's weird, what does Also what does The |
@jimeh I think I only had to add that to get |
Ah, interesting, I might need to investigate doom-emacs, cause it sounds like it messes with the |
Hi!
For me, it is this path.
|
There are still issues with 29.4 Error: doom-core-error ("/Users/maikol/.emacs.d/lisp/doom-cli.el" (native-compiler-error (lambda (arg3 &rest arg4) (let ((f #'message)) (apply f arg3 arg4))) "Compiling /Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln...
ld: library not found for -lemutls_w
libgccjit.so: error: error invoking gcc driver
Internal native compiler error: \"failed to compile\", \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\", \"error invoking gcc driver\"
Error: native-ice (\"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\")
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xd137a2a72512f81>))
debug-early-backtrace()
debug-early(error (native-ice \"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\"))
comp--compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")
comp-compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")
comp-final1()
load-with-code-conversion(\"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" \"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" nil t)
command-line-1((\"-l\" \"/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\"))
command-line()
normal-top-level()
"))
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xd137a2a72512f81>))
debug-early-backtrace()
debug-early(error (doom-core-error "/Users/maikol/.emacs.d/lisp/doom-cli.el" (native-compiler-error (lambda (arg3 &rest arg4) (let ((f #'message)) (apply f arg3 arg4))) "Compiling /Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln...\nld: library not found for -lemutls_w\nlibgccjit.so: error: error invoking gcc driver\nInternal native compiler error: \"failed to compile\", \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\", \"error invoking gcc driver\"\n\nError: native-ice (\"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\")\n mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xd137a2a72512f81>))\n debug-early-backtrace()\n debug-early(error (native-ice \"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\"))\n comp--compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")\n comp-compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")\n comp-final1()\n load-with-code-conversion(\"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" \"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" nil t)\n command-line-1((\"-l\" \"/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\"))\n command-line()\n normal-top-level()\n")))
signal(doom-core-error ("/Users/maikol/.emacs.d/lisp/doom-cli.el" (native-compiler-error (lambda (arg3 &rest arg4) (let ((f #'message)) (apply f arg3 arg4))) "Compiling /Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln...\nld: library not found for -lemutls_w\nlibgccjit.so: error: error invoking gcc driver\nInternal native compiler error: \"failed to compile\", \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\", \"error invoking gcc driver\"\n\nError: native-ice (\"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\")\n mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xd137a2a72512f81>))\n debug-early-backtrace()\n debug-early(error (native-ice \"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\"))\n comp--compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")\n comp-compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")\n comp-final1()\n load-with-code-conversion(\"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" \"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" nil t)\n command-line-1((\"-l\" \"/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\"))\n command-line()\n normal-top-level()\n")))
(condition-case e (load path noerror 'nomessage) ((debug doom-error) (signal (car e) (cdr e))) ((debug error) (setq path (locate-file path load-path (get-load-suffixes))) (signal (cond ((not (and path (featurep 'doom))) 'error) ((file-in-directory-p path (expand-file-name "cli" doom-core-dir)) 'doom-cli-error) ((file-in-directory-p path doom-core-dir) 'doom-core-error) ((file-in-directory-p path doom-user-dir) 'doom-user-error) ((file-in-directory-p path doom-profile-dir) 'doom-profile-error) ((file-in-directory-p path doom-modules-dir) 'doom-module-error) ('doom-error)) (list path e))))
doom-load("doom-cli" nil)
(or (featurep feature subfeature) (doom-load (if subfeature (file-name-concat doom-core-dir (string-remove-prefix "doom-" (symbol-name feature)) (symbol-name filename)) (symbol-name feature)) noerror))
(let ((subfeature (if (symbolp filename) filename))) (or (featurep feature subfeature) (doom-load (if subfeature (file-name-concat doom-core-dir (string-remove-prefix "doom-" (symbol-name feature)) (symbol-name filename)) (symbol-name feature)) noerror)))
doom-require(doom-cli)
(if (let ((load-suffixes '(".elc" ".el"))) (condition-case _ (load (expand-file-name "lisp/doom" user-emacs-directory) nil (not init-file-debug) nil 'must-suffix) ((debug file-missing) (prog1 (defalias 'startup--load-user-init-file@reroute-to-profile #'(lambda (args) (list #'(lambda nil (expand-file-name "init.el" user-emacs-directory)) nil (nth 2 args)))) (advice-add 'startup--load-user-init-file :filter-args #'startup--load-user-init-file@reroute-to-profile)) (setq user-init-file (expand-file-name "early-init" user-emacs-directory)) (setq load-prefer-newer t) (setq gc-cons-threshold (* 16 1024 1024)) nil))) (doom-require (if noninteractive 'doom-cli 'doom-start)))
(let (file-name-handler-alist) (let ((command-line-args (if noninteractive nil command-line-args)) (profile (or (car (cdr (member "--profile" command-line-args))) (getenv-internal "DOOMPROFILE")))) (if (null profile) (let ((init-dir (or (car (cdr (member "--init-directory" command-line-args))) (getenv-internal "EMACSDIR")))) (if (null init-dir) (if noninteractive (progn (setq user-emacs-directory (file-name-directory (file-truename load-file-name))))) (setq command-switch-alist (cons (cons "--init-directory" #'(lambda (_) (car-safe (prog1 argv (setq argv (cdr argv)))))) command-switch-alist)) (setq user-emacs-directory (expand-file-name init-dir)))) (setq command-switch-alist (cons (cons "--profile" #'(lambda (_) (car-safe (prog1 argv (setq argv (cdr argv)))))) command-switch-alist)) (setenv "DOOMPROFILE" profile) (or (load (expand-file-name (format (let ((lfile (getenv-internal "DOOMPROFILELOADFILE"))) (if lfile (concat (let ((suffix ".el")) (if (string-suffix-p suffix lfile) (substring lfile 0 (- (length lfile) (length suffix))) lfile)) ".%d.elc") "profiles/load.%d.elc")) emacs-major-version) user-emacs-directory) 'noerror (not init-file-debug) 'nosuffix) (user-error "Profiles not initialized yet; run 'doom sync' first")))) (if (let ((load-suffixes '(".elc" ".el"))) (condition-case _ (load (expand-file-name "lisp/doom" user-emacs-directory) nil (not init-file-debug) nil 'must-suffix) ((debug file-missing) (prog1 (defalias 'startup--load-user-init-file@reroute-to-profile #'(lambda (args) (list #'(lambda nil (expand-file-name "init.el" user-emacs-directory)) nil (nth 2 args)))) (advice-add 'startup--load-user-init-file :filter-args #'startup--load-user-init-file@reroute-to-profile)) (setq user-init-file (expand-file-name "early-init" user-emacs-directory)) (setq load-prefer-newer t) (setq gc-cons-threshold (* 16 1024 1024)) nil))) (doom-require (if noninteractive 'doom-cli 'doom-start))))
(or (let (file-name-handler-alist) (let ((command-line-args (if noninteractive nil command-line-args)) (profile (or (car (cdr (member "--profile" command-line-args))) (getenv-internal "DOOMPROFILE")))) (if (null profile) (let ((init-dir (or (car (cdr (member "--init-directory" command-line-args))) (getenv-internal "EMACSDIR")))) (if (null init-dir) (if noninteractive (progn (setq user-emacs-directory (file-name-directory (file-truename load-file-name))))) (setq command-switch-alist (cons (cons "--init-directory" #'(lambda (_) (car-safe (prog1 argv (setq argv (cdr argv)))))) command-switch-alist)) (setq user-emacs-directory (expand-file-name init-dir)))) (setq command-switch-alist (cons (cons "--profile" #'(lambda (_) (car-safe (prog1 argv (setq argv (cdr argv)))))) command-switch-alist)) (setenv "DOOMPROFILE" profile) (or (load (expand-file-name (format (let ((lfile (getenv-internal "DOOMPROFILELOADFILE"))) (if lfile (concat (let ((suffix ".el")) (if (string-suffix-p suffix lfile) (substring lfile 0 (- (length lfile) (length suffix))) lfile)) ".%d.elc") "profiles/load.%d.elc")) emacs-major-version) user-emacs-directory) 'noerror (not init-file-debug) 'nosuffix) (user-error "Profiles not initialized yet; run 'doom sync' first")))) (if (let ((load-suffixes '(".elc" ".el"))) (condition-case _ (load (expand-file-name "lisp/doom" user-emacs-directory) nil (not init-file-debug) nil 'must-suffix) ((debug file-missing) (prog1 (defalias 'startup--load-user-init-file@reroute-to-profile #'(lambda (args) (list #'(lambda nil (expand-file-name "init.el" user-emacs-directory)) nil (nth 2 args)))) (advice-add 'startup--load-user-init-file :filter-args #'startup--load-user-init-file@reroute-to-profile)) (setq user-init-file (expand-file-name "early-init" user-emacs-directory)) (setq load-prefer-newer t) (setq gc-cons-threshold (* 16 1024 1024)) nil))) (doom-require (if noninteractive 'doom-cli 'doom-start)))) (load user-init-file 'noerror (not init-file-debug) nil 'must-suffix))
load-with-code-conversion("/Users/maikol/.emacs.d/early-init.el" "/Users/maikol/.emacs.d/early-init.el" nil t)
load("/Users/maikol/.emacs.d/early-init.el" nil nomessage nosuffix)
(and (load init-file nil 'nomessage 'nosuffix) (featurep 'doom))
(or (and (load init-file nil 'nomessage 'nosuffix) (featurep 'doom)) (user-error "Failed to load Doom from %s" init-file))
(let* ((bin-dir (file-name-directory (file-truename load-file-name))) (init-file (expand-file-name "../early-init.el" bin-dir))) (or (and (load init-file nil 'nomessage 'nosuffix) (featurep 'doom)) (user-error "Failed to load Doom from %s" init-file)))
(condition-case e (let* ((bin-dir (file-name-directory (file-truename load-file-name))) (init-file (expand-file-name "../early-init.el" bin-dir))) (or (and (load init-file nil 'nomessage 'nosuffix) (featurep 'doom)) (user-error "Failed to load Doom from %s" init-file))) (user-error (message "Error: %s" (car (cdr e))) (kill-emacs 2)))
load-with-code-conversion("/Users/maikol/.emacs.d/bin/doom" "/Users/maikol/.emacs.d/bin/doom" nil t)
command-line-1(("--load" "/Users/maikol/.emacs.d/bin/doom" "--" "install"))
command-line()
normal-top-level()
Unexpected error in Doom’s core: "/Users/maikol/.emacs.d/lisp/doom-cli.el", (native-compiler-error (lambda (arg3 &rest arg4) (let ((f #'message)) (apply f arg3 arg4))) "Compiling /Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln...
ld: library not found for -lemutls_w
libgccjit.so: error: error invoking gcc driver
Internal native compiler error: \"failed to compile\", \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\", \"error invoking gcc driver\"
Error: native-ice (\"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\")
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0xd137a2a72512f81>))
debug-early-backtrace()
debug-early(error (native-ice \"failed to compile\" \"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\" \"error invoking gcc driver\"))
comp--compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")
comp-compile-ctxt-to-file(\"/Users/maikol/.emacs.d/.local/cache/eln/29_4-65ab8681/subr--trampoline-6d657373616765_message_0.eln\")
comp-final1()
load-with-code-conversion(\"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" \"/private/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\" nil t)
command-line-1((\"-l\" \"/var/folders/4d/qj4qr8zx1n36td0hlt0p7x_h0000gn/T/emacs-int-comp-subr--trampoline-6d657373616765_message_0-sQHTN9.el\"))
command-line()
normal-top-level()
") |
@maikol-solis Apologies, this one slipped through the cracks for me. I should have some spare time this weekend to try and reproduce it with a fresh doom-emacs setup. Your |
A workaround for anyone coming across this issue is to update the Ensure you don't just copy and paste below as the paths can vary as mentioned in #28 (comment) export LIBRARY_PATH="$LIBRARY_PATH:/Applications/Emacs.app/Contents/Frameworks/gcc/14/gcc/aarch64-apple-darwin22/14"
doom install Edit: |
Doom's CLI calls Emacs with |
@bklebe that explains a lot. I'll see if I can get the elisp in the site start file in the builds patched in some other way. |
This has been fixed in the upstream build script in v0.6.54, so launching emacs with Future builds will include the fix, so tonights nightly (2024-12-01, due in about 7 hours), should hopefully work fine :) |
Hi, after installing the new 29.3 version, I got this problem if I want to sync in doom.
I haven't had these errors on 29.2.
For the moment, I reinstalled 29.2.
The text was updated successfully, but these errors were encountered: