Repository navigation
macos Sonoma 14.7.4 M3, Monterey 12.7.6 i5 successful build #28
Replies: 22 comments 3 replies
|
Thanks for the report. @shipmints this looks similar to your system, but appears not to crash on startup. Maybe there is a clue here? |
|
It does look similar. Let's compare otool output. I just pulled and rebuilt and same thing. The GUI never appears and your suspicion that the main thread is borked seems right.
|
|
Check #1 for an update. Hopefully you can progress past your build error now and run under the debugger. |
|
PS: Anyone else encounter? |
|
My initial build using |
|
BUILD 2 otool -L src/emacs src/emacs: |
|
I ran with -nw works fine -Q and with my config. |
|
I think most of those are irrelevant to emacs-mac. You tried with the recommended config options in the README too? |
|
BUILD 2 (x86_64) I have rebuilt this successfully 5-6 times; both GUI and -nw work. Stopped giving configure any options at all. make distclean (clean previous builds) Binaries would stop working because I moved/renamed a directory 3 levels up from the source tree. list of installed packages: autoconf @2.72_0 (active) |
|
I tried the README instructions and still no dice. What could be different about my Monterey and xcode toolchain from @jdtsmith and @thynus? Ambient dependencies are from homebrew and work on GNU Emacs builds just fine. P.S. There's a typo in the README it's --without-imagemagick not --without-imagemagic |
|
I'm not sure I'm following what exactly is going wrong for you. Have you built with debugging enabled and run under lldb? Can you navigate up the stack trace and poke around at some local variables to see what may be causing the hang/crash? |
|
Perhaps you could launch a build with -Q under lldb, immediately stop it, and collect the thread backtraces and I'll start there to compare? It's also curious that the eln cache key (and build hash) has a different form from GNU Emacs: |
|
I'm building from the 30.1 branch, which has moved (a bit) on from 30.1, so I think that explains that. Here's a BT of all threads shortly after launch. Emacs -Q backtrace |
|
I just pulled and rebuilt and same thing. No NSView appears. -nw still works and it seems no errors with my giant configuration, so that's good. My build is using and perhaps that's an issue but I kind of doubt it since -nw works. I have not gone through the more painstaking debug build lldb step through (or maybe more efficient just printf debugging). Have you received feedback from anyone else on Monterey or other configurations that experience the same thing? Perhaps I should try https://bitbucket.org/mituharu/emacs-mac/src/master/ and see if that works? |
|
I've only gotten positive results feedback, yours is the only wayward case. For sure trying the 29.4 release upstream is a good idea. |
|
FWIW, the upstream emacs-mac 29.4 has the identical issue. Perhaps there are build instructions that I/we need to follow. README-mac was pretty much silent on anything but defaults. -nw works fine. I'd love to get this going to assist but I'm short on macOS specific debugging experience. I have no idea what's different about my system since everything else works fine in the GNU Emacs world. |
|
Baffling. Any unusual window management tools that could be interfering? Does the home-brew build work for you (i.e. have you ever gotten a function |
|
Nothing interfering at all (nothing installed at all since I run Emacs and Chrome maximized all the time I need little else). I've never tried emacs-mac before. I can't run homebrew commands any longer because my system isn't supported (they have very stupid policies at play for almost no legitimate reason especially considering that Monterey is the most stable release of the bunch). If there is a way to manually download a homebrew emacs-mac build, I'm happy to try one. I haven't looked into it. |
|
Really no good ideas. Maybe some kind of gcc version thing; perhaps give these build variables a try? |
|
My build was using clang which Apple aliases to gcc. I'm now rebuilding with the homebrew gcc I have which is |
|
I just pulled a fresh and rebuilt after a thorough cleaning. Nothing about either of my Intel macs has changed, so the above clang, etc., versions still valid. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thank you for doing this.
BUILD 1
macos Sonoma 14.7.4 m3 processor. Used the ./configure --enable-mac-self-contained
build succeeded.
Didn't get to play around with it at all but the GNU Emacs splash screen and actual fonts looked pretty slick!
UPDATE:
Used it for a couple of hours: dired, shell, search
no problems
Next: try to build it on x86_64 i5 Monterey macos 12.7 and maybe m1 Ventura.
BUILD 2
macos Monterey 12.7.6 i5 x86_64
Used the ./configure --enable-mac-self-contained
build succeeded
This is GNU Emacs 30.1.50 (build 1, x86_64-apple-darwin21.6.0, Carbon
Version 165 AppKit 2113.65) of 2025-03-21
launch succeeded
All reactions