Emacs Native Compilation Warnings Popping Up

Share
Workaround available Windows, macOS, Linux Updated November 14, 2026Based on 3 user reportsHow we research

Quick answer

Emacs 28+ compiles packages to native code in the background and shows warning buffers as they finish. Silence the report, or disable deferred compilation.

Most likely fix: Silence the warnings

How to fix it

Try these in order — the most common fix is first.

  1. 1. Silence the warnings

    1. Add (setq native-comp-async-report-warnings-errors nil) to early-init.el or init.el
    2. Restart Emacs
    Did this fix it?
  2. 2. Disable background native compilation

    1. Set native-comp-deferred-compilation to nil in early-init.el
    2. Packages will use byte-compiled code instead
    Did this fix it?
  3. 3. Let it finish

    1. Leave Emacs open until the first compile run finishes
    2. Report real warnings to the package maintainer
    Did this fix it?

Symptoms

*Warnings* or *Async-native-compile-log* buffers keep appearing, with messages about undefined functions or free variables in third-party packages, plus CPU and memory use after launch.

Why it happens

  • Native compilation is on by default in newer Emacs builds
  • Packages have real warnings that were never visible before with byte-compilation
  • Compilation of many packages happens on first launch after install or upgrade

This guide also covers

  • emacs native compilation warnings
  • emacs async-native-compile-log
  • emacs comp warnings

Still not working?

If GNU Emacs keeps failing, you're not alone. See every GNU Emacs problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

Other GNU Emacs errors