d12frosted / homebrew-emacs-plus

Emacs Plus formulae for the Homebrew package manager
MIT License
2.32k stars 181 forks source link

[Build Failure]: gmake failure while installing emacs-plus@29 on MacBook Air M1 running Sonoma 14.6.1 #709

Closed volemo closed 2 weeks ago

volemo commented 3 weeks ago

Version

emacs-plus@29

Make sure to follow these steps before submitting the issue

What happened?

Hello, I cannot install Emacs+ (neither 29 nor 28 actually) on my MacBook Air M1 running macOS Sonoma 14.6.1. I get the following error (neither brew doctor nor running without options helps):

~ $ brew install d12frosted/emacs-plus/emacs-plus@29 --with-native-comp 
==> Fetching d12frosted/emacs-plus/emacs-plus@29
==> Downloading https://ftp.gnu.org/gnu/emacs/emacs-29.4.tar.xz
Already downloaded: /Users/savely/Library/Caches/Homebrew/downloads/40b0d2afb6a8abb0782d2f870c83209c0ebb7136de4de640b427214523ed5278--emacs-29.4.tar.xz
==> Installing emacs-plus@29 from d12frosted/emacs-plus
==> Patching
==> Applying fix-window-role.patch
patching file 'src/nsterm.m'
==> Applying system-appearance.patch
patching file 'src/frame.h'
patching file 'src/nsfns.m'
patching file 'src/nsterm.m'
==> Applying round-undecorated-frame.patch
patching file 'src/frame.c'
patching file 'src/frame.h'
patching file 'src/nsfns.m'
patching file 'src/nsterm.h'
patching file 'src/nsterm.m'
==> ./autogen.sh
==> ./configure --disable-silent-rules --enable-locallisppath=/opt/homebrew/shar
==> gmake
Last 15 lines from /Users/savely/Library/Logs/Homebrew/emacs-plus@29/03.gmake:
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/private/tmp/emacs-plusA29-20240821-43188-8hl8ta/emacs-29.4/doc/emacs'
gmake[1]: Leaving directory '/private/tmp/emacs-plusA29-20240821-43188-8hl8ta/emacs-29.4'
gmake[1]: Entering directory '/private/tmp/emacs-plusA29-20240821-43188-8hl8ta/emacs-29.4'
***
*** "make all" failed with exit status 2.
***
*** You could try to:
*** - run "make bootstrap", which might fix the problem
*** - run "make V=1", which displays the full commands invoked by make,
***   to further investigate the problem
***
gmake[1]: *** [Makefile:414: advice-on-failure] Error 2
gmake[1]: Leaving directory '/private/tmp/emacs-plusA29-20240821-43188-8hl8ta/emacs-29.4'
gmake: *** [Makefile:370: all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/d12frosted/homebrew-emacs-plus/issues
volemo commented 3 weeks ago

I did successfully install emacs-plus@29 on my other machine running 14.4.1.

volemo commented 3 weeks ago

I know it's irrelevant but the problem persists on 15.0 beta 5.

d12frosted commented 2 weeks ago

I have reverted to using super (i.e. default) environment, which should fix most of the issues related to missing binaries or unexpected behaviour related to BSD vs GNU versions of several utilities. Path injection is still in place, but it no longer affects installation experience.

Please try again an let me know if the issue still persists.

volemo commented 2 weeks ago

It is fixed now. Many thanks!