Hello Emacs, './configure --with-native-compilation' fails if Homebrew libgccjit is updated to 12.1.0. Attached configure.ac patch fixes this issue. I think the same patch should be applied to emacs-28 branch. --8<---------------cut here---------------start------------->8--- $ ./autogen.sh $ ./configure --with-native-compilation checking for xcrun... xcrun checking for make... yes checking for GNU Make... make checking build system type... x86_64-apple-darwin21.6.0 checking host system type... x86_64-apple-darwin21.6.0 .. checking for gcc_jit_context_acquire in -lgccjit... no configure: error: ELisp native compiler was requested, but libgccjit was not found. Please try installing libgccjit or a similar package. If you are sure you want Emacs be compiled without ELisp native compiler, pass the --without-native-compilation option to configure. $ --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ less config.log .. configure:19555: checking for gcc_jit_context_acquire in -lgccjit configure:19578: gcc -o conftest -g3 -O2 -isystem /usr/local/Cellar/libffi/3.4.2 /include -isystem /usr/local/Cellar/librsvg/2.54.4/include/librsvg-2.0 -isystem /usr/local/Cellar/gdk-pixbuf/2.42.8_1/include/gdk-pixbuf-2.0 -isystem /usr/local /Cellar/jpeg/9e/include -isystem /usr/local/Cellar/libtiff/4.4.0_1/include -isys tem /usr/local/Cellar/glib/2.72.3/include -isystem /usr/local/Cellar/cairo/1.16. 0_5/include/cairo -isystem /usr/local/Cellar/glib/2.72.3/include -isystem /usr/l ocal/Cellar/glib/2.72.3/include/glib-2.0 -isystem /usr/local/Cellar/glib/2.72.3/ lib/glib-2.0/include -isystem /usr/local/opt/gettext/include -isystem /usr/local /Cellar/pcre/8.45/include -isystem /usr/local/Cellar/pixman/0.40.0/include/pixma n-1 -isystem /usr/local/Cellar/fontconfig/2.14.0/include -isystem /usr/local/opt /freetype/include/freetype2 -isystem /usr/local/Cellar/libpng/1.6.37/include/lib png16 -isystem /usr/local/Cellar/libxcb/1.15/include -isystem /usr/local/Cellar/ libxrender/0.9.10/include -isystem /usr/local/Cellar/libxext/1.3.4/include -isys tem /usr/local/Cellar/libx11/1.8.1/include -isystem /usr/local/Cellar/libxcb/1.1 5/include -isystem /usr/local/Cellar/libxau/1.0.9/include -isystem /usr/local/Cellar/libxdmcp/1.1.3/include -isystem /usr/local/Cellar/xorgproto/2022.1/include -isystem /usr/local/Cellar/webp/1.2.3_1/include -I/usr/local/Cellar/libgccjit/12.1.0/include conftest.c -lgccjit -lsqlite3 -L/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12 >&5 ld: warning: dylib (/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current/libgccjit.dylib) was built for newer macOS version (12.4) than being linked (12.0) ld: can't map file, errno=22 file '/usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:19578: $? = 1 --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- $ brew info libgccjit libgccjit: stable 12.1.0 (bottled), HEAD JIT library for the GNU compiler collection https://gcc.gnu.org/ /usr/local/Cellar/libgccjit/12.1.0 (15 files, 42.5MB) * Poured from bottle on 2022-08-06 at 18:06:12 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libgccjit.rb License: GPL-3.0-or-later with GCC-exception-3.1 ==> Dependencies Required: gmp ✔, isl ✔, libmpc ✔, mpfr ✔, zstd ✔ ==> Options --HEAD Install HEAD version ==> Analytics install: 3,047 (30 days), 5,426 (90 days), 15,165 (365 days) install-on-request: 1,452 (30 days), 2,429 (90 days), 7,580 (365 days) build-error: 32 (30 days) $ $ brew ls -v libgccjit | grep libgccjit.h /usr/local/Cellar/libgccjit/12.1.0/include/libgccjit.h $ $ brew ls -v libgccjit | grep -E 'libgccjit\.(so|dylib)$' /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current/libgccjit.dylib /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12/libgccjit.dylib $ $ ls -lR /usr/local/Cellar/libgccjit/12.1.0/lib/gcc total 0 drwxr-xr-x 4 naofumi admin 128 May 6 16:53 12 drwxr-xr-x 4 naofumi admin 128 May 6 16:53 current /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/12: total 0 lrwxr-xr-x 1 naofumi admin 28 May 6 16:53 libgccjit.0.dylib -> ../current/libgccjit.0.dylib lrwxr-xr-x 1 naofumi admin 26 May 6 16:53 libgccjit.dylib -> ../current/libgccjit.dylib /usr/local/Cellar/libgccjit/12.1.0/lib/gcc/current: total 82304 -rw-r--r-- 1 naofumi admin 42138352 Aug 6 18:06 libgccjit.0.dylib lrwxr-xr-x 1 naofumi admin 17 May 6 16:53 libgccjit.dylib -> libgccjit.0.dylib $ --8<---------------cut here---------------end--------------->8--- Regards, Naofumi