jimeh / build-emacs-for-macos

Somewhat hacky script to automate building of Emac.app on macOS.
484 stars 50 forks source link

After latest update to libgccjit (11.3.0_1) emacs-28 does not compile #72

Closed alicerum closed 2 years ago

alicerum commented 2 years ago

New libgccjit brew package now contains dylib instead of so, and configure cannot find gccjit compatibility anymore, and emacs-28 build fails. Already compiled emacs obviously doesn't work anymore either.

master branch build succeeds though.

alicerum commented 2 years ago

Suppose, it's probably an emacs issue though, seems like emacs-28 branch does not know how to check dylib while looking for gccjit.

dirname: missing operand
Try 'dirname --help' for more information.
checking for gcc_jit_context_acquire in -lgccjit... no
configure: error: ELisp native compiler was requested, but libgccjit was not found.
Please try installing libgccjit or a similar package.
If you are sure you want Emacs be compiled without ELisp native compiler,
pass the --without-native-compilation option to configure.
ERROR: Exit code: 1
jimeh commented 2 years ago

Yep, you are right. It's an issue with Emacs itself. The Makefile in master has been patched to support the newer libgccjit package, but that hasn't made it back to the emacs-28 branch.

I haven't gotten around to looking into a solution properly yet, but my rough plan is to have my build script simply attempt to patch the Makefile.

alicerum commented 2 years ago

@jimeh awesome, thank you for the confirmation. For now I've installed the master branch build and it actually works fine. should I close the issue or let it be here until there is a solution for emacs-28?

jimeh commented 2 years ago

Emacs 28 should now be buildable again. Also as of 24th of July, the emacs-28 branch was had the fix from master backported to it with this commit: https://github.com/emacs-mirror/emacs/commit/f7fd7bf477acfc65701065ec70c32dacb17e275a