emacs-mac@29 (29.4-mac-10.1、Apple Silicon) で native compilation が全滅した話です。パッケージを読み込むたびに Warnings にこれが積み上がる:
libgccjit.so: error invoking gcc driver
Internal native compiler error: failed to compile
libgccjit はちゃんと brew で入っている。なのに全部の .el がコンパイルに失敗する。同じ症状の方は、結論だけ知りたければ最後のコマンド1行だけどうぞ。
ld: library 'emutls_w' not found
/opt/homebrew/Cellar/gcc/16.1.0/lib/gcc/current/gcc/aarch64-apple-darwin25/16/libemutls_w.a
つまり libgccjit がリンク段階で gcc 付属のライブラリを必要とするのに、macOS の Homebrew では gcc が libgccjit の依存として宣言されていない。libgccjit だけ入れた環境では、コンパイルの最終段でリンカが死ぬわけです。