-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken installation of Emacs 26.3 when build from sources #195
Comments
Hello, I can't reproduce your issue. I have 2 questions:
|
sorry, emacs doctor indeed is not a proper command. but to answer ur 1. i followed the instruction given: |
Can you please share output of the following commands?
|
brew doctor
command -v emacs |
I see you have modifications for Oh, and could you please check where does that link?
|
../Cellar/emacs-plus/26.3/bin/emacs |
Does it start if you run with
|
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 |
Oh, alright. I will try to reproduce it in CI. If someone else runs into this issue, please let me know. |
Ok, so I've managed to reproduce.
And you will see that it's terminated by SIGKILL. Reproducible with stock It seems that there is an upstream issue with Emacs 26.3 on the latest macos. Can't find any related reports nor in If someone finds a fresh conversation, please link it here. P. S. installing from HEAD or using bottle is a workaround. |
Also, recently GitHub updated software on their CI, so it breaks there as well now: https://github.com/d12frosted/homebrew-emacs-plus/runs/563887711?check_suite_focus=true#step:4:10 |
I had this exact same issue. Had a working version of emacs-plus installed. Ran |
Confirming I also experienced this issue. Installed via Interestingly, uninstalling and then re-installing omitting the
Happy to provide any information that might be useful for debugging. |
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 it helps for debugging, here's what I'm seeing when attempting to open the GUI from the command line (note Installation info% brew info emacs-plus
# d12frosted/emacs-plus/emacs-plus: stable 26.3 (bottled), HEAD
# GNU Emacs text editor
# https://www.gnu.org/software/emacs/
# /usr/local/Cellar/emacs-plus/26.3 (3,992 files, 124MB) *
# Built from source on 2020-04-15 at 14:37:59 with: --without-spacemacs-icon --with-no-titlebar --with-modern-icon --with-no-frame-refocus --with-dbus --with-mailutils
# From: https://github.com/d12frosted/homebrew-emacs-plus/blob/master/Formula/emacs-plus.rb
# ==> Dependencies
# Build: pkg-config ✔
# Recommended: little-cms2 ✔, gnutls ✔, librsvg ✔, imagemagick@6 ✔
# Optional: dbus ✔, mailutils ✔, jansson ✘
# ==> Requirements
# Optional: x11 ✔
# ==> Options
# [. . .]
#
# ==> 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
#
# [. . .] % open -a Emacs
# LSOpenURLsWithRole() failed for the application /usr/local/Cellar/emacs-plus/26.3/Emacs.app with error -10810.
% chmod +x /usr/local/Cellar/emacs-plus/26.3/Emacs.app/Contents/MacOS/Emacs
% xattr -dr com.apple.quarantine /usr/local/Cellar/emacs-plus/26.3/Emacs.app/Contents/MacOS/Emacs
% open -a Emacs
# LSOpenURLsWithRole() failed for the application /usr/local/Cellar/emacs-plus/26.3/Emacs.app with error -10810. |
That's interesting.
Didn't try to launch Emacs like this. The error might be helpful.
As far as I understand, this is needed if the application is in quarantine for some reason. But when I do
I don't get quarantine attribute. So removing application from quarantine doesn't help. |
fwiw, I worked around this by installing Emacs 28 and hooooooly cow does it zoom 😄 |
@jmromer yes, as I said,
so go ahead and
|
No luck with the
|
Oh sorry, that might be because I've updated the patches. Please do as brew is saying and remove the archived patch:
|
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 |
@hh sorry, I didn't get your question. If you want to install |
Just a small tip, I sometimes run |
I'm getting all the same issues, any option I try and use causes an error and |
@atanasj yes, Emacs 26.3 is broken on the latest version of macOS unless you install from bottle (so no custom options are allowed). I also updated recently to debug this issue and now have to stick to I still don't know what happened and I am yet to bisect what fixed this issue on |
I wish I could help! I was hoping to build |
@d12frosted... Is this a |
@atanasj I feel you regarding broken house haha. Regarding the root of the issue. I think it's emacs + new version of macOS. You can reproduce this issue even with core |
I'm still on 10.14.6... Hmmm... watch and wait I suppose... |
If you really desperate you can experiment...
|
@darrylhebbes, I'd love to experiment, but unfortunately for me this often means rabbit holes and dead ends. Do you have a recommended way to build from source with many of the features offered by |
Wait, If you want to get /any/ version of emacs, just build |
Nice, now I can't build Emacs from sources at all and it fails during If someone wants to test it (and ideally we should report it to upstream):
After that P. S. I am getting this error:
|
@d12frosted, yes, that's what I did. Just doesn't have the extra bells and whistles options. |
@atanasj apologies if I misunderstood you,
does that mean that HEAD misses some options that you would love to have? :) if this is the case, can you please elaborate? |
If a working emacs-plus v27 is what you need, I got this to work last night.
Above installed I am on Mac OS 10.15.4 |
No, I am trying to get emacs-26 :) I can get working |
@d12frosted, yes brew install emacs-plus --HEAD --without-spacemacs-icon --with-no-titlebar --with-xwidgets --with-jansson --with-no-frame-refocus But this was failing with all or any option and would usually break on the first one. |
@atanasj Hm, just tried your command and it worked. Can you please update your Update I've revisited issue template, so it now asks to update brew and include output of Why I ask to update? Because recently |
Thanks @d12frosted, that seems to have sorted it! |
I have the same issue with |
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
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
The text was updated successfully, but these errors were encountered: