Hi Eli, Eli Zaretskii writes: >> From: Naofumi Yasufuku >> Date: Sat, 06 Aug 2022 20:38:58 +0900 >> >> './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. > > I don't mind installing this on master, but I'd rather document that > Emacs 28 cannot be built on macOS with such a new libgccjit than > destabilize the release branch, even if it's only for macOS. E.g., > who says that 'readlink' will always be available on macOS? Thank you for your indication. readlink '-f' option is not supported by BSD-based readlink shipped with old macOS. Revised patch is attached. This patch just choose 'current/libgccjit.dylib' from multiple libgccjit.dylib paths. --8<---------------cut here---------------start------------->8--- $ 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---