Emacs 25.2 was recently released, so I thought I'd give it a go. The good news is that the build works fine on the first try. The bad news is that the resulting executable core dumps, both when running the app, and the executable directly with the -nw option. Here is the run-down:
- Obtained 25.2 source tarball from https://emacsformacosx.com/download/emacs-sources/emacs-25.2.tar.xz
- Configure with: env CFLAGS="-DGNUSTEP -I/usr/local/include" ./configure --with-ns --with-gnustep-conf=/usr/local/GNUstep/GNUstep.conf
All good until this point. Try to run:
venus% openapp ./Emacs.app
zsh: segmentation fault (core dumped) openapp ./Emacs.app
Ok, let's try to find out why:
venus% gdb Emacs.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
This GDB was configured as "i386-marcel-freebsd"..." /usr/home/sn/Downloads/emacs-25.2/nextstep/Emacs.core": not in executable format: File format not recognized
venus% file Emacs.core
Emacs.core: ELF 32-bit LSB core file Intel 80386, version 1 (FreeBSD), FreeBSD-style, from 'cs'
I get a similar result from 'debugapp'. Anyone have any ideas?
P.S. the 26.x line of emacs requires some changes to the Objective-C code. Something about blocks. I added -fblocks to CFLAGS and got it to compile, but had the same results as above.