Still struggling to get Emacs built on the Mac

Seems the gccjit gets borked, and I'm struggling to get it unborked.
This commit is contained in:
Howard Abrams 2023-02-21 17:26:51 -08:00
parent da0919d558
commit ca2288a73f

View file

@ -28,20 +28,30 @@ I find that I need to … at least, on my work computer, install two different v
#+end_src #+end_src
And the following for “work”: And the following for “work”:
#+begin_src sh #+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 #+end_src
** Ouchie ** Ouchie
Sometimes get the following error: Sometimes get the following error:
#+begin_example #+begin_example
ld: symbol(s) not found for architecture x86_64 ld: symbol(s) not found for architecture x86_64
#+end_example #+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 doesnt seem to get picked up with the /deps/ listing):
#+begin_src sh
brew uninstall --ignore-dependencies libgccjit
brew install libgccjit
#+end_src
* Supporting Packages * Supporting Packages
Now install all the extras: Now install all the extras:
#+begin_src sh #+begin_src sh