daviderestivo / homebrew-emacs-head

GNU Emacs formula for the Homebrew package manager
GNU General Public License v3.0
297 stars 29 forks source link

Build fails in autogen #227

Closed jmckitrick closed 4 days ago

jmckitrick commented 4 days ago

It's possible this is a local issue only, but I'm out of ideas. Building 29, 30 or 31 from scratch after brew doctor and brew cleanup, I'm getting this error:

Last 15 lines from /Users/jmckitrick/Library/Logs/Homebrew/emacs-head@31/01.autogen.sh: 2024-09-13 11:08:41 +0000

./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' ... /Library/Developer/CommandLineTools/usr/bin/gm4: unrecognized option --gnu' Try/Library/Developer/CommandLineTools/usr/bin/gm4 --help' for more information. autom4te: error: /usr/bin/gm4 failed with exit status: 1 autoreconf: error: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf failed with exit status: 1

I've tried uninstalling and reinstalling m4, to no avail. I haven't been this stuck in a while.

jmckitrick commented 4 days ago

This one really has me scratching my head. It's happened on 2 different machines that do unrelated work. I re-installed Xcode tools, and that still did not solve the issue.

If I try a build from source, it succeeds.

jmckitrick commented 4 days ago

Lately I've been able to figure a lot of these issues out, but not this one.

jmckitrick commented 4 days ago

Ok, I think I have it figured out. I installed Xcode, the full version, which I never needed to do before, and used xcode-select to reset to the Xcode-install command line tools. This makes no sense to me when everything has been working fine for at least a couple of years with only the command line tools, and not Xcode itself.