Package Details: emacs-native-comp-git

Git Clone URL: (read-only, click to copy)
Package Base: emacs-native-comp-git
Description: GNU Emacs. Development native-comp branch.
Upstream URL:
Licenses: GPL3
Conflicts: emacs, emacs-27-git, emacs-git, emacs-seq, emacs26-git
Provides: emacs, emacs-seq
Replaces: emacs-git, emacs-seq, emacs26-git, emacs27-git
Submitter: flatwhatson
Maintainer: flatwhatson
Last Packager: flatwhatson
Votes: 11
Popularity: 2.84
First Submitted: 2020-04-14 04:11
Last Updated: 2020-09-11 11:41

Required by (415)

Sources (1)

Latest Comments

flatwhatson commented on 2020-09-22 00:01

Native-comp emacs can take a while to compile, especially if you're only using 1 core. Make sure you have customized MAKEFLAGS in /etc/makepkg.conf to use all your cores:

This package builds with make NATIVE_FULL_AOT=1 by default, which native-compiles all the built-in Elisp. Edit the PKGBUILD, search for FAST_BOOT= and make it FAST_BOOT="YES" to get a shorter build time, at the cost of lazily native-compiling core Elisp at runtime.

soberpeach commented on 2020-09-20 16:34

I get the same issues as @cenhpp where compilation stops at progmodes/js.elc even after trying rm -rf ~/.cache/yay/emacs-native-comp-git/{src,pkg}. I came across this reddit thread and might try that instead.

flatwhatson commented on 2020-08-27 00:00

The libgccjit package is now up-to-date, and includes a dependency on gcc-libs so that it won't silently break next time GCC is updated. I'm now maintaining that package and will do my best to handle updates ASAP.

I also recommend checking out emacs-pgtk-native-comp-git, this combines native compilation with a new rendering engine for an even faster Emacs.

vgivanovic commented on 2020-08-24 05:09

No matter what I did, I kept on failing the libgccjit smoke test because I had installed gcc-10.2.0-1 and gcc-libs-10.2.0-1 when libgccjit was only at 10.1.0.-1. Downgrading gcc and gcc-libs fixed it so I could once again install emacs-native-comp-git.

So, this combination again: gcc 10.1.0-2 gcc-libs 10.1.0-2 libgccjit 10.1.0-1

Should there be a check for compatible gcc, gcc-libs, and libgccjit?

blahgeek commented on 2020-08-22 07:13

If you encountered crash: maybe check versions of libgccjit and gcc. In my case, I did a system upgrade which upgrade gcc from 10.1.0 to 10.2.0 while libgccjit remains 10.1.0, then emacs crashed randomly. Manually upgrading libgccjit to 10.2.0 solved this.

cenhpp commented on 2020-07-21 08:14

Hmm, still issues even after removing the cache and uninstalling the package first. But since it works for you, it's probably on my side.

Thank you for the package, I'll see if I can get it working again!

flatwhatson commented on 2020-07-20 22:20

@cenhpp It builds fine for me. Do you have an emacs --daemon running, perhaps? I've seen that affect the build recently. Otherwise, try rm -rf ~/.cache/yay/emacs-native-comp-git/{src,pkg} to force a clean build.

cenhpp commented on 2020-07-20 17:06

This used to build, but now it fails with bash Symbol’s function definition is void: cc-bytecomp-is-compiling make[2]: *** [Makefile:312: progmodes/js.elc] Error 255 make[2]: Leaving directory '/home/me/.cache/yay/emacs-native-comp-git/src/emacs-git/lisp' make[1]: *** [Makefile:346: compile-main] Error 2 make[1]: Leaving directory '/home/me/.cache/yay/emacs-native-comp-git/src/emacs-git/lisp' make: *** [Makefile:411: lisp] Error 2 ==> ERROR: A failure occurred in build(). Aborting... error making: %!s(func() string=0x564a6d6d9a60). Anyone with similar issues?