Questions tagged [native-comp]

11 questions
3
votes
2 answers

‘Error: junk at end of line’ with native-comp

I recently switched to Emacs 28.1 hoping to use the new native-comp support. Being on Windows, I followed these instructions to install libgccjit, copying the resulting libgccjit.dll library to Emacs’s bin folder. However, upon doing so, I received…
bradrn
  • 153
  • 6
3
votes
2 answers

Is there a way to determine if emacs uses the byte compiled or the natively compiled code of a function?

Say, there is some function and if I do a describe-function on it it says: x is an interactive compiled Lisp function in x.el Can I tell somehow if this loaded compiled code is byte compiled or natively compiled?
Tom
  • 1,190
  • 7
  • 16
3
votes
2 answers

Set custom location for eln-cache

I would like the eln-cache for natively compiled files (I'm using emacs 29, built from the master branch) to be in a custom location. I have this in the opening of my early-init.el file: ;; Dir for eln-cache (when (boundp…
mclear
  • 1,525
  • 9
  • 17
2
votes
2 answers

How to prevent Emacs 28 from native-compiling everything?

Not sure what's going on, but suddenly Emacs just started byte-compiling native-compiling everything, all Elisp files. No idea how to get it to stop or what caused this. It's doing all the packages too. The laptop I'm on just can't handle this. How…
tbny
  • 51
  • 5
1
vote
1 answer

What is an eln-cache and how do I get rid of it?

I'm using Emacs 28.2 on Debian 12.1 with just some org-mode settings in the init file, and it suddenly produces an eln-cache/ every time I start it and populates it with a lot of files. It's annoying as I regularly synchronise my ~/.emacs.d/ across…
luciljus
  • 11
  • 2
1
vote
1 answer

Building emacs 29 from repository on M1 macOS with native compilation

I did brew install libgccjit and then I did make configure="--with-native-compilation" and it died with: checking for libgccjit.h... yes configure: error: The installed libgccjit failed to compile and run a test program using the libgccjit library;…
pedz
  • 365
  • 1
  • 12
1
vote
1 answer

how often should emacs 28.1 native compile basic emacs files?

I installed 28.1 from source, and when I load emacs in daemon mode, it native-compiles everything under /emacs-28.1/lisp/. Is this normal behaviour? Shouldn't this only need to happen once? The only config i have set is to move the eln-cache into my…
user27075
  • 488
  • 3
  • 11
1
vote
0 answers

Getting an error when running the Emacs 28.1 binary that I built from source (--with-native-compilation)

When building Emacs 27.2 from source, I use the following config: ./autogen.sh ./configure --prefix=/home/user/emacs --bindir=/home/user/bin \ --with-json --with-gif --with-jpeg --with-png --with-tiff --with-rsvg It builds without an issue and…
cinnaroll45
  • 123
  • 5
1
vote
1 answer

Transitive `require`s don't work `--with-native-compilation`?

Consider: ;;; a.el (defun a () nil) (provide 'a) ;;; b.el (require 'a) (defun b () nil) (provide 'b) In traditional Emacs this byte compiles fine: ;;; use.el (require 'b) (a) ;This is automatically available "transitively" (without…
Greg Hendershott
  • 1,483
  • 12
  • 17
0
votes
1 answer

How to prevent Emacs from native-compiling certain packages?

I am trying to prevent emacs-jupyter package from native compilation. There is a known bug that breaks the package when native compiled. [1] I can manually delete the eln files in eln-cache dir and package starts working. I tried the suggested…
0
votes
1 answer

Void symbols after enabling native compilation

I updated my Emacs from 25 to 28.1 version (as part of OS update), and now on startup there is an error Symbol's value as variable is void: kill-region as well as a lot of comp warnings. On similar machine same .emacs.d works perfectly, but native…
Flowneee
  • 237
  • 1
  • 9