Repository: d12frosted/homebrew-emacs-plus

Issue #473: Failures during emacs-29 installation (unrelated to libgccjit discovery)
Created: 2022-05-30T12:11:11Z
Please make sure to follow these steps (and mark the checkboxes):

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

What you were trying to do
Trying to install emacs version 29
What happened (include command output)
$ brew install emacs-plus@29 --with-native-comp --with-elrumo2-icon


  Command output
  ==> Cloning https://github.com/emacs-mirror/emacs.git
Updating /Users/nano/Library/Caches/Homebrew/emacs-plus@29--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 774880c84c Get rid of `defvar-keymap' in flymake.el
==> Installing emacs-plus@29 from d12frosted/emacs-plus
==> Patching
==> Applying fix-window-role.patch
patching file src/nsterm.m
Hunk #1 succeeded at 9253 (offset 485 lines).
==> Applying system-appearance.patch
patching file src/frame.h
patching file src/nsfns.m
Hunk #1 succeeded at 1373 (offset 117 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 1933 (offset 44 lines).
Hunk #2 succeeded at 5686 (offset 291 lines).
Hunk #3 succeeded at 5974 (offset 333 lines).
Hunk #4 succeeded at 6024 (offset 333 lines).
Hunk #5 succeeded at 6250 (offset 333 lines).
Hunk #6 succeeded at 9586 (offset 684 lines).
Hunk #7 succeeded at 10792 (offset 734 lines).
==> ./autogen.sh
==> ./configure --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodi
==> gmake
Last 15 lines from /Users/nano/Library/Logs/Homebrew/emacs-plus@29/03.gmake:
Loading language/philippine (native compiled elisp)...
Loading language/indonesian (native compiled elisp)...
Loading indent (native compiled elisp)...
Loading emacs-lisp/cl-generic (native compiled elisp)...
Loading simple (native compiled elisp)...
Loading emacs-lisp/nadvice (native compiled elisp)...
Loading minibuffer (native compiled elisp)...
Loading frame (native compiled elisp)...
Loading startup (native compiled elisp)...
Attempt to autoload cl-prin1 while preparing to dump
Error: wrong-type-argument (stringp nil)
gmake[1]: *** [Makefile:639: emacs.pdmp] Error 255
gmake[1]: Leaving directory '/private/tmp/emacs-plusA29-20220530-69588-m0lrzw/sr
c'
gmake: *** [Makefile:469: src] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/d12frosted/homebrew-emacs-plus/issues


Output of brew config
$ brew config
HOMEBREW_VERSION: 3.4.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: 30e3d8883cde265cbc16ff94b49a3ac14137590e
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a119e80feb1ac2ad09d1335c4c7b590012cca927
Core tap last commit: 65 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit westmere
Clang: 13.1.6 build 1316
Git: 2.32.0 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.2.1-x86_64
CLT: 13.3.0.0.1.1645755326
Xcode: N/A
Rosetta 2: true

Output of brew doctor
$ brew doctor
Your system is ready to brew.

Duplicate issue #484: Could not install with --with-native-comp --with-ctags --without-cocoa
Created: 2022-08-03T20:45:14Z
Please make sure to follow these steps (and mark the checkboxes):

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

What you were trying to do
Install emacs-plus@29 --with-native-comp --with-ctags --without-cocoa.
I do not have this issue on my local, but when running a setup-script on a gh actions macOS runner that installs Emacs from a brew file as an intermediate step.

Workflow - intermittently failing emacs install
Workflow definition file
Brewfile including Emacs

I am not using the homebrew setup workflow, but installing it the normal way as part of the script. As far as I can tell brew itself is working normally.
What happened (include command output)
$ brew install emacs-plus@29 --with-native-comp --with-ctags --without-cocoa


  Command output
  ==> Installing d12frosted/emacs-plus/emacs-plus@29 --without-cocoa --with-ctags --with-native-comp
==> Patching
==> Applying fix-window-role.patch
patching file src/nsterm.m
Hunk #1 succeeded at 9385 (offset 617 lines).
==> Applying system-appearance.patch
patching file src/frame.h
patching file src/nsfns.m
Hunk #1 succeeded at 1377 (offset 121 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 1933 (offset 44 lines).
Hunk #2 succeeded at 5777 (offset 382 lines).
Hunk #3 succeeded at 6065 (offset 424 lines).
Hunk #4 succeeded at 6115 (offset 424 lines).
Hunk #5 succeeded at 6341 (offset 424 lines).
Hunk #6 succeeded at 9718 (offset 816 lines).
Hunk #7 succeeded at 11052 (offset 994 lines).
==> ./autogen.sh
==> ./configure --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodi
==> gmake
Last 15 lines from /Users/runner/Library/Logs/Homebrew/emacs-plus@29/03.gmake:
'../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)"  
-l comp -f batch-byte+native-compile cedet/semantic/symref/list.el
'../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)"  
-l comp -f batch-byte+native-compile cedet/semantic/wisent/comp.el
'../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)"  
-l comp -f batch-byte+native-compile cedet/semantic/wisent/grammar.el
In toplevel form:
cedet/semantic/symref/list.el:35:2: Error: Given parent class semantic-displayer-abstract is not a class
gmake[2]: *** [Makefile:331: cedet/semantic/symref/list.elc] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/private/tmp/emacs-plusA29-20220803-6543-i1n3tu/lisp'
gmake[1]: *** [Makefile:366: compile-main] Error 2
gmake[1]: Leaving directory '/private/tmp/emacs-plusA29-20220803-6543-i1n3tu/lisp'
gmake: *** [Makefile:456: lisp] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Could not install emacs-plus@28 because tar can't find xz  #481
Could not install with brew install emacs-plus@29 --with-native-comp --with-elrumo2-icon #473
Installing d12frosted/emacs-plus/emacs-plus@29 has failed!
  

Output of brew config
$ brew config
N/A

Output of brew doctor
$ brew doctor
N/A

Closing comment (2022-08-09T06:54:39Z): Possibly related to #473.