Closed d12frosted closed 1 month ago
@stradicat @d12frosted May this have something to do with the built-in gcc on macOS? I failed to build Emacs Plus on my M-chip client if using the built-in gcc but succeeded using the homebrewed gcc-14
. I think there may have some conflicts with the built-in gcc and homebrewed libgccjit
that Emacs Plus currently uses.
I solved some native-compiled issues by passing the following
(setenv "LIBRARY_PATH" (concat "/opt/homebrew/opt/gcc/lib/gcc/14:"
"/opt/homebrew/opt/libgccjit/lib/gcc/14:"
"/opt/homebrew/opt/gcc/lib/gcc/14/gcc/aarch64-apple-darwin23/14"))
@stradicat @d12frosted May this have something to do with the built-in gcc on macOS? I failed to build Emacs Plus on my M-chip client if using the built-in gcc but succeeded using the homebrewed
gcc-14
. I think there may have some conflicts with the built-in gcc and homebrewedlibgccjit
that Emacs Plus currently uses.I solved some native-compiled issues by passing the following
(setenv "LIBRARY_PATH" (concat "/opt/homebrew/opt/gcc/lib/gcc/14:" "/opt/homebrew/opt/libgccjit/lib/gcc/14:" "/opt/homebrew/opt/gcc/lib/gcc/14/gcc/aarch64-apple-darwin23/14"))
You have a point there; I've successfully built emacs@29
on my Intel mac too, with homebrewed gcc
and libgccjit
; the build checks fail in Github specifically for the version, and the pipeline is probably not running brew
-provided gcc
and libs (please correct me if I'm wrong, @d12frosted).
@stradicat @d12frosted May this have something to do with the built-in gcc on macOS? I failed to build Emacs Plus on my M-chip client if using the built-in gcc but succeeded using the homebrewed
gcc-14
. I think there may have some conflicts with the built-in gcc and homebrewedlibgccjit
that Emacs Plus currently uses.I solved some native-compiled issues by passing the following
(setenv "LIBRARY_PATH" (concat "/opt/homebrew/opt/gcc/lib/gcc/14:" "/opt/homebrew/opt/libgccjit/lib/gcc/14:" "/opt/homebrew/opt/gcc/lib/gcc/14/gcc/aarch64-apple-darwin23/14"))
Related:
A few random comments.
LIBRARY_PATH
is not a solution 😃 Especially as part of your Emacs configuration.
Apparently, emacs@29 specifically fails build checks. However, on my machine, the formula built right off Homebrew.