reddit / emacs

emacs-28 configure failing with "libgccjit was not found"

briang_ · 2022-04-04 12:53
Installing emacs-28 on a fresh install of Debian testing/12/bookworm is failing during `./configure` with configure: error: ELisp native compiler was requested, but libgccjit was not found. Please try installing libgccjit or a similar package. However, `libgccjit` is installed: $ apt install libgccjit-10-dev [...] libgccjit-10-dev is already the newest version (10.3.0-15). $ ls -l /usr/lib/x86_64-linux-gnu/libgccjit.so.0 lrwxrwxrwx 1 root root 18 Mar 19 07:39 /usr/lib/x86_64-linux-gnu/libgccjit.so.0 -> libgccjit.so.0.0.1 What do I need to do to fix this? Edit: this is emacs-28 from a git checkout
yantar92 · 2022-04-04 13:34
> libgccjit-10-dev You may need to match libgccjit version with the gcc compiler version
briang_ · 2022-04-04 13:37
yes, I just tried installing `libgccjit-11-dev` and that fixed it. Thanks.