From ca2288a73f5222a492ea20bc48b2b67895479ba7 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 21 Feb 2023 17:26:51 -0800 Subject: [PATCH] Still struggling to get Emacs built on the Mac Seems the gccjit gets borked, and I'm struggling to get it unborked. --- README-MacOS.org | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/README-MacOS.org b/README-MacOS.org index 25e5315..9244981 100644 --- a/README-MacOS.org +++ b/README-MacOS.org @@ -28,20 +28,30 @@ I find that I need to … at least, on my work computer, install two different v #+end_src And the following for “work”: #+begin_src sh - brew install emacs-plus@29 --with-native-comp --with-elrumo1-icon + brew install emacs-plus@29 --with-native-comp --with-mailutils --with-elrumo1-icon #+end_src ** Ouchie Sometimes get the following error: #+begin_example ld: symbol(s) not found for architecture x86_64 #+end_example -And [[https://duckduckgo.com/?q=brew+ld%3A+symbol(s)+not+found+for+architecture+x86_64&t=ffab&ia=web][web searches]] yield mixed results. To solve, I: - * =brew uninstall emacs-plus@28= - * =brew update= - * =brew upgrade= - * =brew reinstall libgccjit= -(Oh, and I made sure that =brew doctor= was clean…enough) +And [[https://duckduckgo.com/?q=brew+ld%3A+symbol(s)+not+found+for+architecture+x86_64&t=ffab&ia=web][web searches]] yield mixed results. To solve, first /re-touch/ the environment (as it appears the problem is that some dependent library is now out-of-date compared to operating system installation): +#+begin_src sh + brew update + brew upgrade +#+end_src + +Next make sure that all the dependencies are /reinstalled/ with the current operating system: +#+begin_src sh + brew reinstall $(brew deps emacs-plus@29) +#+end_src + +Then reinstall the =libgccjit= (as it doesn’t seem to get picked up with the /deps/ listing): +#+begin_src sh + brew uninstall --ignore-dependencies libgccjit + brew install libgccjit +#+end_src * Supporting Packages Now install all the extras: #+begin_src sh