Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install emacs-plus@29 with --with-xwidgets --with-imagemagick --with-native-comp #556

Closed
thermopyle opened this issue Mar 2, 2023 · 18 comments
Assignees

Comments

@thermopyle
Copy link

Please make sure to follow these steps (and mark the checkboxes):

  • [ X] run brew update and try to reproduce the issue again
  • [ X] run brew doctor, fix all issues and try to reproduce your issue again
  • [ X] run brew config and brew doctor and include their output

What you were trying to do

I was trying to (re-)install emacs-plus@29 on a MacBook Pro M1.

What happened (include command output)

Build failed with the following configure error;

checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
<https://gcc.gnu.org/wiki/JIT>.

Before installation I uninstalled emacs-plus@29. I uninstalled libgccjit and cleared the caches under /Library/Caches/Homebrew for both emacs-plus and libgccjit, then installed libgccjit again and try to install emacs-plus@29 but with the same error.

$ brew install -vv emacs-plus@29 --with-xwidgets --with-imagemagick --with-native-comp
Command output

➜ ~ brew install -vv emacs-plus@29 --with-xwidgets --with-imagemagick --with-native-comp
PATH value was changed to:
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/autoconf/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/awk/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/pkg-config/libexec/gnubin
/opt/homebrew/opt/texinfo/libexec/gnubin
/opt/homebrew/opt/xz/libexec/gnubin
/opt/homebrew/opt/gnutls/libexec/gnubin
/opt/homebrew/opt/librsvg/libexec/gnubin
/opt/homebrew/opt/little-cms2/libexec/gnubin
/opt/homebrew/opt/jansson/libexec/gnubin
/opt/homebrew/opt/tree-sitter/libexec/gnubin
/opt/homebrew/opt/imagemagick/libexec/gnubin
/opt/homebrew/opt/dbus/libexec/gnubin
/opt/homebrew/Cellar/mailutils/3.15_2/libexec/gnubin
/opt/homebrew/opt/libgccjit/libexec/gnubin
/opt/homebrew/opt/gcc/libexec/gnubin
/opt/homebrew/opt/gmp/libexec/gnubin
/opt/homebrew/opt/jpeg/libexec/gnubin
/opt/homebrew/opt/zlib/libexec/gnubin
/opt/homebrew/opt/make/bin
/opt/homebrew/opt/autoconf/bin
/opt/homebrew/opt/gnu-sed/bin
/opt/homebrew/opt/gnu-tar/bin
/opt/homebrew/opt/awk/bin
/opt/homebrew/opt/coreutils/bin
/opt/homebrew/opt/pkg-config/bin
/opt/homebrew/opt/texinfo/bin
/opt/homebrew/opt/xz/bin
/opt/homebrew/opt/gnutls/bin
/opt/homebrew/opt/librsvg/bin
/opt/homebrew/opt/little-cms2/bin
/opt/homebrew/opt/jansson/bin
/opt/homebrew/opt/tree-sitter/bin
/opt/homebrew/opt/imagemagick/bin
/opt/homebrew/opt/dbus/bin
/opt/homebrew/opt/mailutils/bin
/opt/homebrew/opt/libgccjit/bin
/opt/homebrew/opt/gcc/bin
/opt/homebrew/opt/gmp/bin
/opt/homebrew/opt/jpeg/bin
/opt/homebrew/opt/zlib/bin
/opt/homebrew/Library/Homebrew/shims/shared
/usr/bin
/bin
/usr/sbin
/sbin
==> which tar
/opt/homebrew/opt/gnu-tar/libexec/gnubin/tar
==> which ls
/opt/homebrew/opt/coreutils/libexec/gnubin/ls
PATH value was changed to:
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/autoconf/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/awk/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/pkg-config/libexec/gnubin
/opt/homebrew/opt/texinfo/libexec/gnubin
/opt/homebrew/opt/xz/libexec/gnubin
/opt/homebrew/opt/gnutls/libexec/gnubin
/opt/homebrew/opt/librsvg/libexec/gnubin
/opt/homebrew/opt/little-cms2/libexec/gnubin
/opt/homebrew/opt/jansson/libexec/gnubin
/opt/homebrew/opt/tree-sitter/libexec/gnubin
/opt/homebrew/opt/imagemagick/libexec/gnubin
/opt/homebrew/opt/dbus/libexec/gnubin
/opt/homebrew/Cellar/mailutils/3.15_2/libexec/gnubin
/opt/homebrew/opt/libgccjit/libexec/gnubin
/opt/homebrew/opt/gcc/libexec/gnubin
/opt/homebrew/opt/gmp/libexec/gnubin
/opt/homebrew/opt/jpeg/libexec/gnubin
/opt/homebrew/opt/zlib/libexec/gnubin
/opt/homebrew/opt/make/bin
/opt/homebrew/opt/autoconf/bin
/opt/homebrew/opt/gnu-sed/bin
/opt/homebrew/opt/gnu-tar/bin
/opt/homebrew/opt/awk/bin
/opt/homebrew/opt/coreutils/bin
/opt/homebrew/opt/pkg-config/bin
/opt/homebrew/opt/texinfo/bin
/opt/homebrew/opt/xz/bin
/opt/homebrew/opt/gnutls/bin
/opt/homebrew/opt/librsvg/bin
/opt/homebrew/opt/little-cms2/bin
/opt/homebrew/opt/jansson/bin
/opt/homebrew/opt/tree-sitter/bin
/opt/homebrew/opt/imagemagick/bin
/opt/homebrew/opt/dbus/bin
/opt/homebrew/opt/mailutils/bin
/opt/homebrew/opt/libgccjit/bin
/opt/homebrew/opt/gcc/bin
/opt/homebrew/opt/gmp/bin
/opt/homebrew/opt/jpeg/bin
/opt/homebrew/opt/zlib/bin
/opt/homebrew/Library/Homebrew/shims/shared
/usr/bin
/bin
/usr/sbin
/sbin
==> which tar
/opt/homebrew/opt/gnu-tar/libexec/gnubin/tar
==> which ls
/opt/homebrew/opt/coreutils/libexec/gnubin/ls
==> Fetching d12frosted/emacs-plus/emacs-plus@29
==> Verifying checksum for 'fix-window-role.patch'
==> Verifying checksum for 'system-appearance.patch'
==> Verifying checksum for 'round-undecorated-frame.patch'
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git
/usr/bin/env git config remote.origin.url https://github.com/emacs-mirror/emacs.git
/usr/bin/env git config remote.origin.fetch +refs/heads/emacs-29:refs/remotes/origin/emacs-29
/usr/bin/env git config remote.origin.tagOpt --no-tags
/usr/bin/env git config advice.detachedHead false
/usr/bin/env git fetch origin
==> Checking out branch emacs-29
/usr/bin/env git checkout -f emacs-29 --
Already on 'emacs-29'
Your branch is up to date with 'origin/emacs-29'.
/usr/bin/env git reset --hard origin/emacs-29 --
HEAD is now at 3f43a16bc63 ; Avoid byte-compilation warning in c-ts-mode.el
==> Installing emacs-plus@29 from d12frosted/emacs-plus
PATH value was changed to:
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/autoconf/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/awk/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/pkg-config/libexec/gnubin
/opt/homebrew/opt/texinfo/libexec/gnubin
/opt/homebrew/opt/xz/libexec/gnubin
/opt/homebrew/opt/gnutls/libexec/gnubin
/opt/homebrew/opt/librsvg/libexec/gnubin
/opt/homebrew/opt/little-cms2/libexec/gnubin
/opt/homebrew/opt/jansson/libexec/gnubin
/opt/homebrew/opt/tree-sitter/libexec/gnubin
/opt/homebrew/opt/imagemagick/libexec/gnubin
/opt/homebrew/opt/dbus/libexec/gnubin
/opt/homebrew/Cellar/mailutils/3.15_2/libexec/gnubin
/opt/homebrew/opt/libgccjit/libexec/gnubin
/opt/homebrew/opt/gcc/libexec/gnubin
/opt/homebrew/opt/gmp/libexec/gnubin
/opt/homebrew/opt/jpeg/libexec/gnubin
/opt/homebrew/opt/zlib/libexec/gnubin
/opt/homebrew/opt/make/bin
/opt/homebrew/opt/autoconf/bin
/opt/homebrew/opt/gnu-sed/bin
/opt/homebrew/opt/gnu-tar/bin
/opt/homebrew/opt/awk/bin
/opt/homebrew/opt/coreutils/bin
/opt/homebrew/opt/pkg-config/bin
/opt/homebrew/opt/texinfo/bin
/opt/homebrew/opt/xz/bin
/opt/homebrew/opt/gnutls/bin
/opt/homebrew/opt/librsvg/bin
/opt/homebrew/opt/little-cms2/bin
/opt/homebrew/opt/jansson/bin
/opt/homebrew/opt/tree-sitter/bin
/opt/homebrew/opt/imagemagick/bin
/opt/homebrew/opt/dbus/bin
/opt/homebrew/opt/mailutils/bin
/opt/homebrew/opt/libgccjit/bin
/opt/homebrew/opt/gcc/bin
/opt/homebrew/opt/gmp/bin
/opt/homebrew/opt/jpeg/bin
/opt/homebrew/opt/zlib/bin
/opt/homebrew/Library/Homebrew/shims/shared
/usr/bin
/bin
/usr/sbin
/sbin
==> which tar
/opt/homebrew/opt/gnu-tar/libexec/gnubin/tar
==> which ls
/opt/homebrew/opt/coreutils/libexec/gnubin/ls
PATH value was changed to:
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/autoconf/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/awk/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/pkg-config/libexec/gnubin
/opt/homebrew/opt/texinfo/libexec/gnubin
/opt/homebrew/opt/xz/libexec/gnubin
/opt/homebrew/opt/gnutls/libexec/gnubin
/opt/homebrew/opt/librsvg/libexec/gnubin
/opt/homebrew/opt/little-cms2/libexec/gnubin
/opt/homebrew/opt/jansson/libexec/gnubin
/opt/homebrew/opt/tree-sitter/libexec/gnubin
/opt/homebrew/opt/imagemagick/libexec/gnubin
/opt/homebrew/opt/dbus/libexec/gnubin
/opt/homebrew/Cellar/mailutils/3.15_2/libexec/gnubin
/opt/homebrew/opt/libgccjit/libexec/gnubin
/opt/homebrew/opt/gcc/libexec/gnubin
/opt/homebrew/opt/gmp/libexec/gnubin
/opt/homebrew/opt/jpeg/libexec/gnubin
/opt/homebrew/opt/zlib/libexec/gnubin
/opt/homebrew/opt/make/bin
/opt/homebrew/opt/autoconf/bin
/opt/homebrew/opt/gnu-sed/bin
/opt/homebrew/opt/gnu-tar/bin
/opt/homebrew/opt/awk/bin
/opt/homebrew/opt/coreutils/bin
/opt/homebrew/opt/pkg-config/bin
/opt/homebrew/opt/texinfo/bin
/opt/homebrew/opt/xz/bin
/opt/homebrew/opt/gnutls/bin
/opt/homebrew/opt/librsvg/bin
/opt/homebrew/opt/little-cms2/bin
/opt/homebrew/opt/jansson/bin
/opt/homebrew/opt/tree-sitter/bin
/opt/homebrew/opt/imagemagick/bin
/opt/homebrew/opt/dbus/bin
/opt/homebrew/opt/mailutils/bin
/opt/homebrew/opt/libgccjit/bin
/opt/homebrew/opt/gcc/bin
/opt/homebrew/opt/gmp/bin
/opt/homebrew/opt/jpeg/bin
/opt/homebrew/opt/zlib/bin
/opt/homebrew/Library/Homebrew/shims/shared
/usr/bin
/bin
/usr/sbin
/sbin
==> which tar
/opt/homebrew/opt/gnu-tar/libexec/gnubin/tar
==> which ls
/opt/homebrew/opt/coreutils/libexec/gnubin/ls
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/GNUmakefile /private/tmp/d20230302-22889-1afmcyj/GNUmakefile
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.dir-locals.el /private/tmp/d20230302-22889-1afmcyj/.dir-locals.el
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/build-aux/. /private/tmp/d20230302-22889-1afmcyj/build-aux
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/configure.ac /private/tmp/d20230302-22889-1afmcyj/configure.ac
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/lisp/. /private/tmp/d20230302-22889-1afmcyj/lisp
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/INSTALL /private/tmp/d20230302-22889-1afmcyj/INSTALL
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/ChangeLog.3 /private/tmp/d20230302-22889-1afmcyj/ChangeLog.3
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/nt/. /private/tmp/d20230302-22889-1afmcyj/nt
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/test/. /private/tmp/d20230302-22889-1afmcyj/test
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/ChangeLog.2 /private/tmp/d20230302-22889-1afmcyj/ChangeLog.2
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/msdos/. /private/tmp/d20230302-22889-1afmcyj/msdos
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/etc/. /private/tmp/d20230302-22889-1afmcyj/etc
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/admin/. /private/tmp/d20230302-22889-1afmcyj/admin
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/BUGS /private/tmp/d20230302-22889-1afmcyj/BUGS
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/oldXMenu/. /private/tmp/d20230302-22889-1afmcyj/oldXMenu
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/leim/. /private/tmp/d20230302-22889-1afmcyj/leim
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/README /private/tmp/d20230302-22889-1afmcyj/README
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/make-dist /private/tmp/d20230302-22889-1afmcyj/make-dist
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/INSTALL.REPO /private/tmp/d20230302-22889-1afmcyj/INSTALL.REPO
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/COPYING /private/tmp/d20230302-22889-1afmcyj/COPYING
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.gitignore /private/tmp/d20230302-22889-1afmcyj/.gitignore
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/CONTRIBUTE /private/tmp/d20230302-22889-1afmcyj/CONTRIBUTE
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.clang-format /private/tmp/d20230302-22889-1afmcyj/.clang-format
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.gitattributes /private/tmp/d20230302-22889-1afmcyj/.gitattributes
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/ChangeLog.1 /private/tmp/d20230302-22889-1afmcyj/ChangeLog.1
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/lib/. /private/tmp/d20230302-22889-1afmcyj/lib
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/lwlib/. /private/tmp/d20230302-22889-1afmcyj/lwlib
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/m4/. /private/tmp/d20230302-22889-1afmcyj/m4
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/doc/. /private/tmp/d20230302-22889-1afmcyj/doc
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/lib-src/. /private/tmp/d20230302-22889-1afmcyj/lib-src
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/config.bat /private/tmp/d20230302-22889-1afmcyj/config.bat
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.gitlab-ci.yml /private/tmp/d20230302-22889-1afmcyj/.gitlab-ci.yml
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.mailmap /private/tmp/d20230302-22889-1afmcyj/.mailmap
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/.git/. /private/tmp/d20230302-22889-1afmcyj/.git
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/modules/. /private/tmp/d20230302-22889-1afmcyj/modules
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/Makefile.in /private/tmp/d20230302-22889-1afmcyj/Makefile.in
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/nextstep/. /private/tmp/d20230302-22889-1afmcyj/nextstep
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/autogen.sh /private/tmp/d20230302-22889-1afmcyj/autogen.sh
/usr/bin/env cp -pR /Users/mikael/Library/Caches/Homebrew/emacs-plus@29--git/src/. /private/tmp/d20230302-22889-1afmcyj/src
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/GNUmakefile /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/GNUmakefile
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.dir-locals.el /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.dir-locals.el
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/build-aux/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/build-aux
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/configure.ac /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/configure.ac
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/lisp/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/lisp
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/INSTALL /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/INSTALL
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/ChangeLog.3 /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/ChangeLog.3
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/nt/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/nt
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/test/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/test
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/ChangeLog.2 /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/ChangeLog.2
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/msdos/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/msdos
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/etc/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/etc
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/admin/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/admin
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/BUGS /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/BUGS
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/oldXMenu/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/oldXMenu
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/leim/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/leim
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/README /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/README
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/make-dist /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/make-dist
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/INSTALL.REPO /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/INSTALL.REPO
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/COPYING /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/COPYING
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.gitignore /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.gitignore
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/CONTRIBUTE /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/CONTRIBUTE
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.clang-format /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.clang-format
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.gitattributes /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.gitattributes
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/ChangeLog.1 /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/ChangeLog.1
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/lib/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/lib
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/lwlib/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/lwlib
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/m4/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/m4
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/doc/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/doc
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/lib-src/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/lib-src
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/config.bat /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/config.bat
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.gitlab-ci.yml /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.gitlab-ci.yml
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.mailmap /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.mailmap
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/.git/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/.git
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/modules/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/modules
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/Makefile.in /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/Makefile.in
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/nextstep/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/nextstep
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/autogen.sh /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/autogen.sh
/usr/bin/env cp -pR /private/tmp/d20230302-22889-1afmcyj/src/. /private/tmp/emacs-plusA29-20230302-22889-1nxw8gj/src
==> Patching
cp -p /opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/patches/emacs-29/fix-window-role.patch /private/tmp/emacs-plusA29--patch-20230302-22889-1yaa9d4/fix-window-role.patch
==> Applying fix-window-role.patch
patch -g 0 -f -p1 -i /private/tmp/emacs-plusA29--patch-20230302-22889-1yaa9d4/fix-window-role.patch
patching file 'src/nsterm.m'
cp -p /opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/patches/emacs-29/system-appearance.patch /private/tmp/emacs-plusA29--patch-20230302-22889-x9wr92/system-appearance.patch
==> Applying system-appearance.patch
patch -g 0 -f -p1 -i /private/tmp/emacs-plusA29--patch-20230302-22889-x9wr92/system-appearance.patch
patching file 'src/frame.h'
patching file 'src/nsfns.m'
patching file 'src/nsterm.m'
cp -p /opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/patches/emacs-29/round-undecorated-frame.patch /private/tmp/emacs-plusA29--patch-20230302-22889-2dwwkv/round-undecorated-frame.patch
==> Applying round-undecorated-frame.patch
patch -g 0 -f -p1 -i /private/tmp/emacs-plusA29--patch-20230302-22889-2dwwkv/round-undecorated-frame.patch
patching file 'src/frame.c'
patching file 'src/frame.h'
patching file 'src/nsfns.m'
patching file 'src/nsterm.h'
patching file 'src/nsterm.m'
PATH value was changed to:
/opt/homebrew/opt/make/libexec/gnubin
/opt/homebrew/opt/autoconf/libexec/gnubin
/opt/homebrew/opt/gnu-sed/libexec/gnubin
/opt/homebrew/opt/gnu-tar/libexec/gnubin
/opt/homebrew/opt/awk/libexec/gnubin
/opt/homebrew/opt/coreutils/libexec/gnubin
/opt/homebrew/opt/pkg-config/libexec/gnubin
/opt/homebrew/opt/texinfo/libexec/gnubin
/opt/homebrew/opt/xz/libexec/gnubin
/opt/homebrew/opt/gnutls/libexec/gnubin
/opt/homebrew/opt/librsvg/libexec/gnubin
/opt/homebrew/opt/little-cms2/libexec/gnubin
/opt/homebrew/opt/jansson/libexec/gnubin
/opt/homebrew/opt/tree-sitter/libexec/gnubin
/opt/homebrew/opt/imagemagick/libexec/gnubin
/opt/homebrew/opt/dbus/libexec/gnubin
/opt/homebrew/Cellar/mailutils/3.15_2/libexec/gnubin
/opt/homebrew/opt/libgccjit/libexec/gnubin
/opt/homebrew/opt/gcc/libexec/gnubin
/opt/homebrew/opt/gmp/libexec/gnubin
/opt/homebrew/opt/jpeg/libexec/gnubin
/opt/homebrew/opt/zlib/libexec/gnubin
/opt/homebrew/opt/make/bin
/opt/homebrew/opt/autoconf/bin
/opt/homebrew/opt/gnu-sed/bin
/opt/homebrew/opt/gnu-tar/bin
/opt/homebrew/opt/awk/bin
/opt/homebrew/opt/coreutils/bin
/opt/homebrew/opt/pkg-config/bin
/opt/homebrew/opt/texinfo/bin
/opt/homebrew/opt/xz/bin
/opt/homebrew/opt/gnutls/bin
/opt/homebrew/opt/librsvg/bin
/opt/homebrew/opt/little-cms2/bin
/opt/homebrew/opt/jansson/bin
/opt/homebrew/opt/tree-sitter/bin
/opt/homebrew/opt/imagemagick/bin
/opt/homebrew/opt/dbus/bin
/opt/homebrew/opt/mailutils/bin
/opt/homebrew/opt/libgccjit/bin
/opt/homebrew/opt/gcc/bin
/opt/homebrew/opt/gmp/bin
/opt/homebrew/opt/jpeg/bin
/opt/homebrew/opt/zlib/bin
/opt/homebrew/opt/m4/bin
/opt/homebrew/opt/libomp/bin
/opt/homebrew/opt/icu4c/bin
/opt/homebrew/opt/[email protected]/bin
/opt/homebrew/Library/Homebrew/shims/shared
/Users/mikael/.pyenv/shims
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/opt/X11/bin
/Library/Apple/usr/bin
/Users/mikael/.cargo/bin
/Users/mikael/Library/Application Support/JetBrains/Toolbox/scripts
/usr/bin
/bin
/usr/sbin
/sbin
==> which tar
/opt/homebrew/opt/gnu-tar/libexec/gnubin/tar
==> which ls
/opt/homebrew/opt/coreutils/libexec/gnubin/ls
==> ImageMagick PKG_CONFIG_PATH:
/opt/homebrew/opt/imagemagick/lib/pkgconfig
==> ./autogen.sh
Checking whether you have the necessary tools...
(Read INSTALL.REPO for more details on building Emacs)
Checking for autoconf (need at least version 2.65) ... ok
Your system has the required tools.
Building aclocal.m4 ...
Running 'autoreconf -fi -I m4' ...
Configuring local git repository...
'.git/config' -> '.git/config.1'
git config transfer.fsckObjects 'true'
git config diff.cpp.xfuncname '!^[ ][A-Za-z_][A-Za-z_0-9]:[[:space:]]($|/[/])
^((::[[:space:]])?[A-Za-z_][A-Za-z_0-9][[:space:]](.)$
^((#define[[:space:]]|DEFUN).)$'
git config diff.elisp.xfuncname '^([^[:space:]]def[^[:space:]]+[[:space:]]+([^()[:space:]]+)'
git config diff.m4.xfuncname '^((m4_)?define|A._DEFUN(_ONCE)?)([^),]
'
git config diff.make.xfuncname '^([$.[:alnum:]_].
:|[[:alnum:]]+[[:space:]]([:+]?[:?]?|!?)=|define .)'
git config diff.shell.xfuncname '^([[:space:]]
[[:alpha:]
][[:alnum:]][[:space:]]()|[[:alpha:]][[:alnum:]_]*=)'
git config diff.texinfo.xfuncname '^@node[[:space:]]+([^,[:space:]][^,]+)'
Installing git hooks...
'build-aux/git-hooks/commit-msg' -> '.git/hooks/commit-msg'
'build-aux/git-hooks/pre-commit' -> '.git/hooks/pre-commit'
'build-aux/git-hooks/prepare-commit-msg' -> '.git/hooks/prepare-commit-msg'
'.git/hooks/applypatch-msg.sample' -> '.git/hooks/applypatch-msg'
'.git/hooks/pre-applypatch.sample' -> '.git/hooks/pre-applypatch'
You can now run './configure'.
==> ./configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@29/29.0.60/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@29/29.0.60 --with-xml2 --with-gnutls --with-native-compilation --without-compress-install --without-dbus --with-imagemagick --with-modules --with-rsvg --with-xwidgets --with-ns --disable-ns-self-contained
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking for xcrun... xcrun
checking for make... yes
checking for GNU Make... make
checking build system type... aarch64-apple-darwin22.3.0
checking host system type... aarch64-apple-darwin22.3.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to enable C11 features... none needed
checking whether the compiler is clang... yes
checking for compiler option needed when checking for declarations... -Werror=implicit-function-declaration
checking for ar... ar
checking whether /usr/bin/clang and cc understand -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking for linux/fs.h... no
checking for malloc.h... no
checking for sys/systeminfo.h... no
checking for sys/sysinfo.h... no
checking for coff.h... no
checking for pty.h... no
checking for sys/resource.h... yes
checking for sys/utsname.h... yes
checking for pwd.h... yes
checking for utmp.h... yes
checking for util.h... yes
checking for sanitizer/lsan_interface.h... yes
checking for sys/socket.h... yes
checking for sys/param.h... yes
checking for pthread.h... yes
checking for malloc/malloc.h... yes
checking for sys/un.h... yes
checking for vfork.h... no
checking for dirent.h... yes
checking for execinfo.h... yes
checking for stdio_ext.h... no
checking for sys/vfs.h... no
checking for sys/fs_types.h... no
checking for getopt.h... yes
checking for sys/cdefs.h... yes
checking for sys/time.h... yes
checking for ieee754.h... no
checking for limits.h... yes
checking for sys/select.h... yes
checking for stdalign.h... yes
checking for stdbool.h... yes
checking for stdckdint.h... no
checking for sys/random.h... yes
checking whether it is safe to define EXTENSIONS... yes
checking whether _XOPEN_SOURCE should be defined... no
checking how to run the C preprocessor... /usr/bin/clang -E
checking for grep that handles long lines and -e... /opt/homebrew/bin/ggrep
checking for egrep... /opt/homebrew/bin/ggrep -E
checking for Minix Amsterdam compiler... no
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether the compiler is clang... yes
checking whether C compiler handles -Werror -Wunknown-warning-option... yes
checking whether -Wno-missing-field-initializers is supported... yes
checking whether -Wno-missing-field-initializers is needed... no
checking whether -Wuninitialized is supported... yes
checking whether C compiler handles -fno-common... yes
checking whether C compiler handles -Wall... yes
checking whether C compiler handles -Warith-conversion... yes
checking whether C compiler handles -Wdate-time... yes
checking whether C compiler handles -Wdisabled-optimization... yes
checking whether C compiler handles -Wduplicated-cond... yes
checking whether C compiler handles -Wextra... yes
checking whether C compiler handles -Wformat-signedness... yes
checking whether C compiler handles -Winit-self... yes
checking whether C compiler handles -Winvalid-pch... yes
checking whether C compiler handles -Wlogical-op... yes
checking whether C compiler handles -Wmissing-declarations... yes
checking whether C compiler handles -Wmissing-include-dirs... yes
checking whether C compiler handles -Wmissing-prototypes... yes
checking whether C compiler handles -Wnested-externs... yes
checking whether C compiler handles -Wnull-dereference... yes
checking whether C compiler handles -Wold-style-definition... yes
checking whether C compiler handles -Wopenmp-simd... yes
checking whether C compiler handles -Wpacked... yes
checking whether C compiler handles -Wpointer-arith... yes
checking whether C compiler handles -Wstrict-prototypes... yes
checking whether C compiler handles -Wsuggest-attribute=format... yes
checking whether C compiler handles -Wsuggest-attribute=noreturn... yes
checking whether C compiler handles -Wsuggest-final-methods... yes
checking whether C compiler handles -Wsuggest-final-types... yes
checking whether C compiler handles -Wtrampolines... yes
checking whether C compiler handles -Wuninitialized... yes
checking whether C compiler handles -Wunknown-pragmas... yes
checking whether C compiler handles -Wunused-macros... yes
checking whether C compiler handles -Wvariadic-macros... yes
checking whether C compiler handles -Wvector-operation-performance... yes
checking whether C compiler handles -Wwrite-strings... yes
checking whether C compiler handles -Warray-bounds=2... yes
checking whether C compiler handles -Wattribute-alias=2... yes
checking whether C compiler handles -Wformat=2... yes
checking whether C compiler handles -Wformat-truncation=2... yes
checking whether C compiler handles -Wimplicit-fallthrough=5... yes
checking whether C compiler handles -Wshift-overflow=2... yes
checking whether C compiler handles -Wuse-after-free=3... yes
checking whether C compiler handles -Wvla-larger-than=4031... yes
checking whether C compiler handles -Wredundant-decls... yes
checking whether C compiler handles -Wno-missing-field-initializers... yes
checking whether C compiler handles -Wno-override-init... yes
checking whether C compiler handles -Wno-sign-compare... yes
checking whether C compiler handles -Wno-type-limits... yes
checking whether C compiler handles -Wno-unused-parameter... yes
checking whether C compiler handles -Wno-format-nonliteral... yes
checking whether C compiler handles -Wno-bidi-chars... yes
checking whether C compiler handles -Wno-missing-braces... yes
checking whether C compiler handles -Wno-null-pointer-arithmetic... yes
checking whether C compiler handles -Wno-implicit-const-int-float-conversion... yes
checking whether C compiler handles -Wno-int-in-bool-context... yes
checking whether C compiler handles -Wno-initializer-overrides... yes
checking whether C compiler handles -Wno-tautological-compare... yes
checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... yes
checking whether C compiler handles -Wno-deprecated-declarations... yes
checking for a BSD-compatible install... /opt/homebrew/opt/coreutils/libexec/gnubin/install -c
checking command to symlink files in the same directory... ln -s
checking for install-info... /opt/homebrew/opt/texinfo/bin/install-info
checking for gzip... /usr/bin/gzip
checking for 'find' args to delete a file... -delete
checking for brew... brew
checking for makeinfo... /opt/homebrew/opt/texinfo/bin/makeinfo
checking for port... no
checking for -znocombreloc... not needed
checking whether addresses are sanitized... no
checking for math library... none required
checking for pkg-config... /opt/homebrew/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for machine/soundcard.h... no
checking for sys/soundcard.h... no
checking for soundcard.h... no
checking for mmsystem.h... no
checking for _oss_ioctl in -lossaudio... no
checking for alsa >= 1.0.0... no
checking for ADDR_NO_RANDOMIZE... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for net/if.h... yes
checking for ifaddrs.h... yes
checking for net/if_dl.h... yes
checking for struct ifreq.ifr_flags... yes
checking for struct ifreq.ifr_hwaddr... no
checking for struct ifreq.ifr_netmask... no
checking for struct ifreq.ifr_broadaddr... yes
checking for struct ifreq.ifr_addr... yes
checking for struct ifreq.ifr_addr.sa_len... yes
checking whether gcc understands -MMD -MF... yes
checking for X... libraries , headers
checking for AppKit/AppKit.h... yes
checking for Mac OS X 10.6 or newer... yes
checking for Mac OS X 12.0 or later... yes
checking whether the compiler supports GNU Objective C... yes
checking whether /usr/bin/clang accepts -g... yes
checking if the Objective C compiler supports instancetype... yes
checking if the Objective C compiler defaults to C99... yes
checking whether malloc is Doug Lea style... no
checking for sbrk... yes
checking for getpagesize... yes
checking for __lsan_ignore_object... no
checking for fork... yes
checking for vfork... yes
checking for fchmod... yes
checking for canonicalize_file_name... no
checking for faccessat... yes
checking for realpath... yes
checking for lstat... yes
checking for readlinkat... yes
checking for explicit_bzero... no
checking for memset_s... yes
checking for fchmodat... yes
checking for lchmod... yes
checking for fcntl... yes
checking for fdopendir... yes
checking for fstatat... yes
checking for fsync... yes
checking for futimens... yes
checking for getrandom... no
checking for gettimeofday... yes
checking for mkostemp... yes
checking for pipe2... no
checking for pselect... yes
checking for pthread_sigmask... yes
checking for readlink... yes
checking for isblank... yes
checking for iswctype... yes
checking for strtoimax... yes
checking for symlink... yes
checking for localtime_r... yes
checking for timegm... yes
checking for utimensat... yes
checking for getdtablesize... yes
checking for futimes... yes
checking for futimesat... no
checking for lutimes... yes
checking for working mmap... yes
checking for main in -lXbsd... no
checking for pthread library... none needed
checking for thread support... yes
checking for librsvg-2.0 >= 2.14.0... yes
checking for libwebpdemux >= 0.6.0... yes
checking for sqlite3_open_v2 in -lsqlite3... yes
checking for sqlite3_load_extension in -lsqlite3... no
checking for MagickWand >= 7... yes
checking for MagickRelinquishMemory... yes
checking for MagickExportImagePixels... yes
checking for MagickMergeImageLayers... yes
checking for MagickAutoOrientImage... yes
checking for getaddrinfo_a in -lanl... no
checking for malloc_trim... no
checking for lgetfilecon in -lselinux... no
checking for gnutls >= 2.12.2... yes
checking for libsystemd >= 222... no
checking for jansson >= 2.7... yes
checking for tree-sitter >= 0.20.2... no
checking for tree-sitter >= 0.6.3... yes
checking for ts_set_allocator... yes
checking for sys/inotify.h... no
checking for libkqueue... no
checking for library containing kqueue... none required
checking for jpeglib 6b or later... -ljpeg
checking for lcms2... yes
checking for library containing inflateEnd... -lz
checking for dladdr... yes
checking for dlfunc... no
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html.
You can try compiling it yourself to investigate the issues.
Please report the issue to your distribution if libgccjit was installed
through that.
You can find the instructions on how to compile and install libgccjit from
source on this site:
https://gcc.gnu.org/wiki/JIT.

==> Formula
Tap: d12frosted/emacs-plus
Path: /opt/homebrew/Library/Taps/d12frosted/homebrew-emacs-plus/Formula/[email protected]
==> Configuration
HOMEBREW_VERSION: 4.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4d0154fa7926e8a7b06e9b074dd45957e820407c
Last commit: 3 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1d8c58a0aad7953501bd69df9f5014a6dfbf199e
Core tap last commit: 2 weeks ago
Core tap branch: master
Core tap JSON: 02 Mar 10:20 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.3jpwdGlUkb/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.39.2 => /opt/homebrew/bin/git
Curl: 7.86.0 => /usr/bin/curl
macOS: 13.2.1-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2
Rosetta 2: false
==> ENV
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -mmacosx-version-min=13 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT
CXXFLAGS: -Os -w -pipe -mmacosx-version-min=13 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
CPPFLAGS: -I/opt/homebrew/opt/zlib/include -I/opt/homebrew/opt/jpeg/include -I/opt/homebrew/opt/libomp/include -I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/[email protected]/include -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
LDFLAGS: -L/opt/homebrew/opt/zlib/lib -L/opt/homebrew/opt/jpeg/lib -L/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/[email protected]/lib -L/opt/homebrew/lib -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
MAKEFLAGS: -j10
CMAKE_PREFIX_PATH: /opt/homebrew/opt/zlib:/opt/homebrew/opt/jpeg:/opt/homebrew/opt/m4:/opt/homebrew/opt/libomp:/opt/homebrew/opt/icu4c:/opt/homebrew/opt/[email protected]:/opt/homebrew:/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr
CMAKE_FRAMEWORK_PATH: /opt/homebrew/Frameworks:/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks
PKG_CONFIG_PATH: /opt/homebrew/opt/imagemagick/lib/pkgconfig:/opt/homebrew/opt/zlib/share/pkgconfig:/opt/homebrew/opt/zlib/lib/pkgconfig:/opt/homebrew/opt/jpeg/share/pkgconfig:/opt/homebrew/opt/jpeg/lib/pkgconfig:/opt/homebrew/opt/m4/share/pkgconfig:/opt/homebrew/opt/m4/lib/pkgconfig:/opt/homebrew/opt/libomp/share/pkgconfig:/opt/homebrew/opt/libomp/lib/pkgconfig:/opt/homebrew/opt/icu4c/share/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/[email protected]/share/pkgconfig:/opt/homebrew/opt/[email protected]/lib/pkgconfig
PKG_CONFIG_LIBDIR: /opt/homebrew/lib/pkgconfig:/opt/homebrew/share/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/13:/usr/lib/pkgconfig
HOMEBREW_GIT: git
ACLOCAL_PATH: /opt/homebrew/opt/zlib/share/aclocal:/opt/homebrew/opt/jpeg/share/aclocal:/opt/homebrew/opt/m4/share/aclocal:/opt/homebrew/opt/libomp/share/aclocal:/opt/homebrew/opt/icu4c/share/aclocal:/opt/homebrew/opt/[email protected]/share/aclocal
PATH: /opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/gnu-tar/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/make/bin:/opt/homebrew/opt/autoconf/bin:/opt/homebrew/opt/gnu-sed/bin:/opt/homebrew/opt/gnu-tar/bin:/opt/homebrew/opt/awk/bin:/opt/homebrew/opt/coreutils/bin:/opt/homebrew/opt/pkg-config/bin:/opt/homebrew/opt/texinfo/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/gnutls/bin:/opt/homebrew/opt/librsvg/bin:/opt/homebrew/opt/little-cms2/bin:/opt/homebrew/opt/tree-sitter/bin:/opt/homebrew/opt/imagemagick/bin:/opt/homebrew/opt/dbus/bin:/opt/homebrew/opt/gcc/bin:/opt/homebrew/opt/jpeg/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/Library/Homebrew/shims/shared:/Users/mikael/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Users/mikael/.cargo/bin:/Users/mikael/Library/Application Support/JetBrains/Toolbox/scripts:/usr/bin:/bin:/usr/sbin:/sbin
CPATH: /opt/homebrew/include:/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include /opt/homebrew/include
LIBRARY_PATH: /opt/homebrew/lib/gcc/current

Error: d12frosted/emacs-plus/emacs-plus@29 29.0.60 did not build
Logs:
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/02.which
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/04.which
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/00.options.out
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/03.which
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/01.which
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/05.autogen.sh
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/06.configure
/Users/mikael/Library/Logs/Homebrew/emacs-plus@29/config.log
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/d12frosted/homebrew-emacs-plus/issues

These open issues may also help:
Could not install emacs-plus@29 #544
Could not install emacs-plus@28 with MacBookPro M1 #555

Output of brew config

➜  ~ brew config
HOMEBREW_VERSION: 4.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4d0154fa7926e8a7b06e9b074dd45957e820407c
Last commit: 3 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 1d8c58a0aad7953501bd69df9f5014a6dfbf199e
Core tap last commit: 2 weeks ago
Core tap branch: master
Core tap JSON: 02 Mar 10:20 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.3jpwdGlUkb/org.xquartz:0
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.39.2 => /opt/homebrew/bin/git
Curl: 7.86.0 => /usr/bin/curl
macOS: 13.2.1-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: 14.2

Output of brew doctor

➜  ~ brew doctor                                                                         
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  six
@sainishwanth
Copy link

sainishwanth commented Mar 3, 2023

Seems to be an issue with a newer version of gcc
#485 fixed it for me

@Icarus0xff
Copy link

Icarus0xff commented Mar 4, 2023

Seems to be an issue with a newer version of gcc #485 fixed it for me

It fixed this issue for me on M1Pro MacBook with below install instruction:

brew install emacs-plus --with-native-comp

@benthamite
Copy link

benthamite commented Mar 5, 2023

Seems to be an issue with a newer version of gcc #485 fixed it for me

Just to note that this didn't work for me. Specifically, following those steps and then running brew install emacs-plus@29 --with-dbus --with-debug --with-native-comp --with-xwidgets --with-imagemagick --with-spacemacs-icon resulted in [Makefile:414: advice-on-failure] Error 2. brew install emacs-plus@29 --with-native-comp also failed.

brew install emacs-plus --with-native-comp

Note that emacs-plus installs version 28 so it's a separate issue.

@wendajiang
Copy link

wendajiang commented Mar 21, 2023

For now, libgccjit install by homebrew using build-from-source throw error.

undefined method `issues_url' for nil:NilClass

I try https://blocks.roadtolarissa.com/cpbotha/5f44a7f44ad93445128113c208b4a252 approach to solve, and look like it's ok. I guess it's libgccjit formula error for newest version of MacOS.

Work when re-install gcc and libgccjit from source.

@wendajiang
Copy link

wendajiang commented Mar 21, 2023

For now, libgccjit install by homebrew using build-from-source throw error.

undefined method `issues_url' for nil:NilClass

I try https://blocks.roadtolarissa.com/cpbotha/5f44a7f44ad93445128113c208b4a252 approach to solve, and look like it's ok. I guess it's libgccjit formula error for newest version of MacOS.

Work when re-install gcc and libgccjit from source.

However, the ld error throw out, and I run brew uninstall binutils to remove the gnu ld and ar, finally work correctly.

@tian-yi
Copy link

tian-yi commented Apr 30, 2023

Same issue here. when tried to install libgccgit from source, it failed with with undefined method 'issues_url' for nil:NilClass same as @wendajiang , But I really don't wanna tweak the home brew files. wonder it there's any other workarounds

jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
@jidicula
Copy link
Contributor

jidicula commented May 3, 2023

I may have a fix: see #555 (comment) and sub in 29 over 28 where appropriate in the mitigation instructions.

edit: after re-reading the logs above, could this be an LDFLAGS issue where libgccjit isn't linked appropriately?

jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
jidicula added a commit to jidicula/homebrew-emacs-plus that referenced this issue May 3, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to d12frosted#555 and d12frosted#556
d12frosted pushed a commit that referenced this issue May 4, 2023
I found that on my system, I had a different incompatible version of grep from a
plan9 installation on my PATH that was superseding the builtin grep on one of my
Macs. This explains why the `with-native-comp` build was failing on one of my
Macs but not the other - the Mac with the successful emacs-plus@28
`with-native-comp` build only had the built-in version of grep on its PATH.

Adding GNU grep as a build-time dependency will include it in the `gnubin`
directory, which is prepended to the PATH in each formula. I've also added an
explicit PATH prepending step for each of the GNU build-time dependencies. This
indicates the coupling of those dependencies with the `gnubin` PATH prepending.

Related to #555 and #556
@maddovr
Copy link

maddovr commented May 27, 2023

Emacs 29 and emacs 30 are stil broken (get the warning that emacs couldn't find libgccjit driver) Couldn't test emacs 28. Also is there a way to expose --native-compilation=aot?

@skuro
Copy link

skuro commented Jan 18, 2024

I also had this issue trying to install 29.1 on Sonoma. Following this comment seems to do the trick:

brew reinstall gcc

@wojtyniak
Copy link

I also had this issue trying to install 29.1 on Sonoma. Following this comment seems to do the trick:

brew reinstall gcc

I also had to run

brew reinstall libgccjit

@memeplex
Copy link

brew reinstall gcc
brew reinstall libgccjit

This did it for me in Sonoma too, which is quite weird since I didn't have gcc nor libgccjit previously installed.

@mayagerard0
Copy link

I'm having this issue on new homebrew versions of gcc, libgccjit (14.1.0).
"brew reinstall gcc libgccjit" does not work in my case.

@jester7
Copy link

jester7 commented May 9, 2024

I'm having this issue on new homebrew versions of gcc, libgccjit (14.1.0). "brew reinstall gcc libgccjit" does not work in my case.

After homebrew upgraded gcc and libgccjit to 14.1.0, Emacs was crashing immediately on startup. I didn't fully investigate since I figured a reinstall would fix the issue but it didn't with this error:

./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infod
Last 15 lines from /Users/jester/Library/Logs/Homebrew/emacs-plus@29/02.configure:
checking for library containing inflateEnd... -lz
checking for dladdr... yes
checking for dlfunc... no
checking for gcc_jit_context_acquire in -lgccjit... yes
checking for libgccjit.h... yes
configure: error: The installed libgccjit failed to compile and run a test program using
the libgccjit library; see config.log for the details of the failure.
The test program can be found here:
<https://gcc.gnu.org/onlinedocs/jit/intro/tutorial01.html>.
You can try compiling it yourself to investigate the issues.

Reinstalling gcc and libgccjit did not work for me. Attempting to compile the mentioned test program for libgccjit failed with ld: library 'gccjit' not found

I got Emacs working again by reinstalling without the --with-native-comp flag. @mayagerard0

@elondres-mim
Copy link

I have the same error in OP, just from a regular brew install emacs-plus --with-native-comp.

brew uninstall libgccjit; brew reinstall gcc did not fix it for me.

@jester7
Copy link

jester7 commented May 11, 2024

Manually linking libgcc and libgccjit fixed it for me @elondres-mim @mayagerard0 . I found the solution in the homebrew issue Libgccjit error with new gcc 14 update #206 :

ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.dylib /usr/local/lib/
ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.0.dylib /usr/local/lib/

ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.1.dylib /usr/local/lib/

@mayagerard0
Copy link

Manually linking libgcc and libgccjit fixed it for me @elondres-mim @mayagerard0 . I found the solution in the homebrew issue Libgccjit error with new gcc 14 update #206 :

ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.dylib /usr/local/lib/
ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.0.dylib /usr/local/lib/

ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.1.dylib /usr/local/lib/

This fixed it for me too. Thanks a lot

@channingkuo
Copy link

Manually linking libgcc and libgccjit fixed it for me @elondres-mim @mayagerard0 . I found the solution in the homebrew issue Libgccjit error with new gcc 14 update #206 :

ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.dylib /usr/local/lib/
ln -s /usr/local/Cellar/libgccjit/14.1.0/lib/gcc/14/libgccjit.0.dylib /usr/local/lib/

ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.dylib /usr/local/lib/
ln -s /usr/local/Cellar/gcc/14.1.0/lib/gcc/14/libgcc_s.1.1.dylib /usr/local/lib/

This fixed it for me too. Thanks a lot

This fixed it for me too. wo~~~

@d12frosted
Copy link
Owner

There is a separate ticket for libgccjit issue - #681. I am closing this one as it's irrelevant and the original issue is gone/not reproducible anymore. Let's keep communication in #681 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.