Repository: d12frosted/homebrew-emacs-plus

Issue #292: Could not install with brew install emacs-plus@28 --without-imagemagick --with-no-titlebar
Created: 2020-12-27T01:14:05Z
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
Tried to do an install of emacs28 with --without-imagemagick and --with-no-titlebar. I think there might have been a timeout?
What happened (include command output)
$ brew install emacs-plus@28 --with-no-titlebar --with-modern-sexy-v1-icon --without-imagemagick


  Command output
  Your branch is up to date with 'origin/master'.
HEAD is now at 714ca84 Improve the edebug-form-data doc string
==> Patching
==> Applying no-titlebar.patch
patching file src/nsterm.m
Hunk #1 succeeded at 453 (offset -20 lines).
Hunk #2 succeeded at 1964 (offset -19 lines).
Hunk #3 succeeded at 7568 (offset 31 lines).
Hunk #4 succeeded at 7605 with fuzz 1 (offset 30 lines).
==> Applying fix-window-role.patch
patching file src/nsterm.m
Hunk #1 succeeded at 8773 (offset 5 lines).
==> Applying system-appearance.patch
patching file src/frame.h
patching file src/nsfns.m
Hunk #1 succeeded at 1251 (offset -2 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 2179 (offset -15 lines).
Hunk #2 succeeded at 5734 (offset -17 lines).
Hunk #3 succeeded at 5980 (offset -17 lines).
Hunk #4 succeeded at 6030 (offset -17 lines).
Hunk #5 succeeded at 6256 (offset -17 lines).
Hunk #6 succeeded at 9104 (offset -28 lines).
Hunk #7 succeeded at 9986 (offset -28 lines).
==> ./autogen.sh
==> ./configure --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/h
==> make
Last 15 lines from /Users/derp/Library/Logs/Homebrew/emacs-plus@28/03.make:
clang -o temacs.tmp 
-Demacs  -I. -I. -I../lib -I../lib      -I/opt/homebrew/Cellar/libffi/3.3/include -I/opt/homebrew/Cellar/libpng/1.6.37/include/libpng16 -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/Cellar/fontconfig/2.13.1/include -I/opt/homebrew/Cellar/pcre/8.44/include -I/opt/homebrew/Cellar/glib/2.66.4/include -I/opt/homebrew/Cellar/glib/2.66.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.66.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pixman/0.40.0/include/pixman-1 -I/opt/homebrew/Cellar/cairo/1.16.0_3/include/cairo -I/opt/homebrew/Cellar/gdk-pixbuf/2.42.2/include/gdk-pixbuf-2.0 -I/opt/homebrew/Cellar/librsvg/2.50.2/include/librsvg-2.0  -I/opt/homebrew/Cellar/libpng/1.6.37/include/libpng16        -I/opt/homebrew/Cellar/little-cms2/2.11/include       -MMD -MF deps/.d -MP  -I/opt/homebrew/Cellar/jansson/2.13.1/include -I/opt/homebrew/Cellar/libidn2/2.3.0/include -I/opt/homebrew/Cellar/libtasn1/4.16.0/include -I/opt/homebrew/Cellar/nettle/3.6/include -I/opt/homebrew/Cellar/p11-kit/0.23.22/include/p11-kit-1 -I/opt/homebrew/Cellar/gnutls/3.6.15/include    -Wno-switch -Wno-pointer-sign -Wno-string-plus-int -Wno-unknown-attributes -Wno-initializer-overrides -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -g3 -O2  -framework AppKit -framework IOKit -framework Carbon  
dispnew.o frame.o scroll.o xdisp.o menu.o  window.o charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o terminal.o xfaces.o    emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o lread.o dynlib.o emacs-module.o syntax.o  bytecode.o process.o gnutls.o callproc.o region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o lcms.o kqueue.o  profiler.o decompress.o thread.o systhread.o        fontset.o fringe.o image.o  json.o  nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o macfont.o terminfo.o lastfile.o      ../lib/libgnu.a       -ltiff -ljpeg -L/opt/homebrew/Cellar/libpng/1.6.37/lib -lpng16 -lz     -L/opt/homebrew/Cellar/glib/2.66.4/lib -L/opt/homebrew/opt/gettext/lib -L/opt/homebrew/Cellar/cairo/1.16.0_3/lib -L/opt/homebrew/Cellar/gdk-pixbuf/2.42.2/lib -L/opt/homebrew/Cellar/librsvg/2.50.2/lib -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo             -lxml2    -lncurses         -L/opt/homebrew/Cellar/gnutls/3.6.15/lib -lgnutls   -L/opt/homebrew/Cellar/little-cms2/2.11/lib -llcms2   -lz   -L/opt/homebrew/Cellar/jansson/2.13.1/lib -ljansson -lgmp
../lib-src/make-fingerprint temacs.tmp
mv temacs.tmp temacs
../build-aux/install-sh -c -d ../etc
/Library/Developer/CommandLineTools/usr/bin/make -C ../lisp update-subdirs
for file in . ./calc ./calendar ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./mail ./mh-e ./net ./nxml ./obsolete ./org ./play ./progmodes ./term ./textmodes ./url ./vc; do 
./../build-aux/update-subdirs $file; 
done;
cp -f temacs bootstrap-emacs
rm -f bootstrap-emacs.pdmp
./temacs --batch  -l loadup --temacs=pbootstrap
make[1]: *** [bootstrap-emacs.pdmp] Killed: 9
make: *** [src] Error 2
  

Output of brew config
$ brew config
HOMEBREW_VERSION: 2.7.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 993bf95877143afe1cede022083499e0b4fe336c
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: b54627ecb76a0fc48ea5cd97a82fd1ba1daae0e5
Core tap last commit: 32 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: 2.24.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.0-arm64
CLT: 12.3.0.0.1.1607026830
Xcode: N/A
Rosetta 2: false

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 are running macOS on a arm64 CPU architecture.
We do not provide support for this (yet).
Reinstall Homebrew under Rosetta 2 until we support it.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.

Duplicate issue #442: Could not install with emacs-plus@28 --with-native-comp --with-xwidgets  
Created: 2022-03-12T10:31:05Z
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
Installing emacs-plus28 on an MacBook Air M1. This used to work on this computer already. I wanted to update to the latest emacs 28 branch. As suggested, I did not use --reinstall, but uninstall and then install.
What happened (include command output)
 $ brew install emacs-plus@28 --with-native-comp --with-xwidgets 


  Command output
  $ brew install emacs-plus@28 --with-native-comp --with-xwidgets
==> Cloning https://github.com/emacs-mirror/emacs.git
Updating ~/Library/Caches/Homebrew/emacs-plus@28--git
==> Checking out branch emacs-28
Already on 'emacs-28'
Your branch is up to date with 'origin/emacs-28'.
HEAD is now at dbe6a3ecf7 Fix regression in 'custom-prompt-customize-unsaved-options'
==> Installing emacs-plus@28 from d12frosted/emacs-plus
==> Patching
==> Applying fix-window-role.patch
patching file src/nsterm.m
Hunk #1 succeeded at 8583 (offset -185 lines).
==> Applying system-appearance.patch
patching file src/frame.h
patching file src/nsfns.m
Hunk #1 succeeded at 1315 (offset 59 lines).
patching file src/nsterm.m
Hunk #1 succeeded at 1878 (offset -11 lines).
Hunk #2 succeeded at 5389 (offset -6 lines).
Hunk #3 succeeded at 5635 (offset -6 lines).
Hunk #4 succeeded at 5685 (offset -6 lines).
Hunk #5 succeeded at 5911 (offset -6 lines).
Hunk #6 succeeded at 8916 (offset 14 lines).
Hunk #7 succeeded at 10072 (offset 14 lines).
==> ./autogen.sh
==> ./configure --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/opt/h
==> make
Last 15 lines from ~/Logs/Homebrew/emacs-plus@28/03.make:
codesign -s - -f temacs.tmp
temacs.tmp: replacing existing signature
mv temacs.tmp temacs
.././build-aux/install-sh -c -d ../etc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../lisp update-subdirs
for file in . ./calc ./calendar ./emacs-lisp ./emulation ./erc ./eshell ./gnus ./image ./international ./language ./mail ./mh-e ./net ./nxml ./obsolete ./org ./play ./progmodes ./term ./textmodes ./url ./vc; do 
./../build-aux/update-subdirs $file; 
done;
cp -f temacs bootstrap-emacs
rm -f bootstrap-emacs.pdmp
./temacs --batch  -l loadup --temacs=pbootstrap 
--bin-dest /opt/homebrew/Cellar/emacs-plus@28/28.0.50/bin/ --eln-dest /opt/homebrew/Cellar/emacs-plus@28/28.0.50/lib/emacs/28.0.91/
make[1]: *** [bootstrap-emacs.pdmp] Killed: 9
make: *** [src] Error 2
make: *** Waiting for unfinished jobs....
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.1-52-gf0f1eb6
ORIGIN: https://github.com/Homebrew/brew
HEAD: f0f1eb6d4ac9af377976c131e92739bcd2f72f60
Last commit: 13 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7acfa44cff3b26ceae3fbdfe1f48097a6bd593a7
Core tap last commit: 17 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.ln58LqYiFt/org.xquartz:0
HOMEBREW_EDITOR: emacsclient
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 arm_firestorm_icestorm
Clang: 13.0.0 build 1300
Git: 2.35.1 => /opt/homebrew/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.2-arm64
CLT: 13.2.0.0.1.1637719136
Xcode: 13.2.1
Rosetta 2: false

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: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3-config
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
  /Applications/Postgres.app/Contents/Versions/latest/bin/gdal-config

Closing comment (2022-03-12T20:57:38Z): As my error sounded similar to #292 (comment), following the suggestions there actually fixed the issue I was seeing:

brew bundle dump to produce a Brewfile containing everything I had installed via brew
uninstall homebrew 
install homebrew
brew bundle to reinstall all formulas from the generated Brewfile from 1)
brew install emacs-plus@28 --with-native-comp --with-xwidgets now worked