homebrew-emacs-plus: Broken installation of Emacs 26.3 when build from sources

Describe the bug

See d12frosted’s comment for more information.

When i install emacs using the without spacemacs icon argument the resulting emacs is not executable both from Applications folder and terminal. I get a zsh: killed emacs

I can’t even run emacs–version or emacs doctor

Command used to install emacs-plus

$ brew install emacs-plus --without-spacemacs-icon

Installation log Updating Homebrew… ==> Installing emacs-plus from d12frosted/emacs-plus Warning: A newer Command Line Tools release is available. Update them from Software Update in System Preferences or https://developer.apple.com/download/more/.

==> Downloading https://ftp.gnu.org/gnu/emacs/emacs-26.3.tar.xz Already downloaded: /Users/albertpare/Library/Caches/Homebrew/downloads/35ddbf65249f3d4c38e087a1fa7606daaf8784b8445fa2c3b4d453ef9b92a18c–emacs-26.3.tar.xz ==> Downloading https://raw.githubusercontent.com/d12frosted/homebrew-emacs-plus/master/patches/multicolor-fonts.patch Already downloaded: /Users/albertpare/Library/Caches/Homebrew/downloads/6e0bcfe5f86b21ca9f1bf349995832a6143baac4a74e000dff771b2839b6fa7d–multicolor-fonts.patch ==> Downloading https://raw.githubusercontent.com/d12frosted/homebrew-emacs-plus/master/patches/fix-window-role.patch Already downloaded: /Users/albertpare/Library/Caches/Homebrew/downloads/b7046a273c114e23f734df97967f4016486f1d080bad1ba40dbd53a5c86a09e0–fix-window-role.patch ==> Patching ==> Applying multicolor-fonts.patch patching file src/macfont.m Hunk #1 succeeded at 2346 with fuzz 2 (offset -27 lines). ==> Applying fix-window-role.patch patching file src/nsterm.m Hunk #1 succeeded at 8368 (offset -158 lines). ==> ImageMagick PKG_CONFIG_PATH: /usr/local/opt/imagemagick@6/lib/pkgconfig ==> ./configure --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus/26.3/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus/26.3 --with-xml2 --without-dbus --with-gnutls --with-imagemagick --with-modules --with-rsvg --with-ns ==> make ==> make install ==> Caveats Emacs.app was installed to: /usr/local/opt/emacs-plus

To link the application to default Homebrew App location: ln -s /usr/local/opt/emacs-plus/Emacs.app /Applications

–natural-title-bar option was removed from this formula, in order to duplicate its effect add following line to your init.el file (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark)) or: (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . light))

To have launchd start d12frosted/emacs-plus/emacs-plus now and restart at login: brew services start d12frosted/emacs-plus/emacs-plus Or, if you don’t want/need a background service you can just run: emacs ==> Summary 🍺 /usr/local/Cellar/emacs-plus/26.3: 3,993 files, 123.6MB, built in 1 minute 58 seconds

running emacs after this gives zsh: killed emacs

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 43 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Ok, so I’ve managed to reproduce.

  1. Make sure that you are on 10.15.4 (19E266) - on previous version everything worked.
  2. brew install emacs-plus --build-from-source
  3. /usr/local/opt/emacs-plus/bin/emacs

And you will see that it’s terminated by SIGKILL.

Reproducible with stock emacs formula, e.g. brew install emacs --build-from-source.

It seems that there is an upstream issue with Emacs 26.3 on the latest macos. Can’t find any related reports nor in homebrew-core, nor on emacs devel/bug mailing lists.

If someone finds a fresh conversation, please link it here.

P. S. installing from HEAD or using bottle is a workaround.

Experienced the same problem with macos 10.15.4 and can verify that installing from head works:

brew install emacs-plus --HEAD --with-no-titlebar

Building without spacemacs icon means that you can’t reuse bottle, hence it builds from sources. This is what I meant by ‘installing from HEAD or using bottle is a workaround’.

I still don’t know how to fix this issue 😞

If a working emacs-plus v27 is what you need, I got this to work last night.

sudo rm -rf /usr/local/Cellar/emacs-plus
brew cleanup
brew update
brew install emacs-plus --with-emacs-27-branch --HEAD

Above installed GNU Emacs 27.0.91 (build 2, x86_64-apple-darwin19.4.0, NS appkit-1894.40 Version 10.15.4 (Build 19E287))

I am on Mac OS 10.15.4

I’m still on 10.14.6… Hmmm… watch and wait I suppose…

Confirming I also experienced this issue.

Installed via brew install emacs-plus --without-spacemacs-icon, and zsh immediately terminates with SIGKILL.

Interestingly, uninstalling and then re-installing omitting the --without-spacemacs-icon resolved the issue for me - it now launches as expected.

  • Catalina 10.15.4
  • Reproduced ~10:45AM EST April 10th

Happy to provide any information that might be useful for debugging.

@jidicula

No, I am trying to get emacs-26 😃 I can get working emacs-27 or emacs-28 using emacs-plus formula. The problem only with emacs-26 😦

https://github.com/d12frosted/homebrew-emacs-plus/issues/195#issuecomment-624765117

Thanks @d12frosted, that seems to have sorted it!

If you really desperate you can experiment…

git clone -b master git://git.sv.gnu.org/emacs.git
make install

Just a small tip, I sometimes run brew cleanup which can sometimes fix issues.

@jmromer yes, as I said,

P. S. installing from HEAD or using bottle is a workaround.

so go ahead and

$ brew install emacs-plus --HEAD [all-your-fav-options]

I had this exact same issue. Had a working version of emacs-plus installed. Ran brew uninstall emacs-plus and then brew install --without-spacemacs-icon emacs-plus . Unable to launch from command line or linked Application. Uninstalled and reinstalled without the --without-spacemacs-icon option and everthing works fine. MacOS Catalina 10.15.4.

unfortunately i am not running the emacs-plus --without-spacemacs-icon anymore. I went ahead with just a normal emacs-plus so i can’t really try it. at least now all of those things works

…/Cellar/emacs-plus/26.3/bin/emacs