brew install emacs --cocoa fails for me at "make bootstrap" #18539

Closed
sje30 opened this Issue Mar 17, 2013 · 10 comments

Comments

Projects
None yet
7 participants
Contributor

sje30 commented Mar 17, 2013

brew install emacs --cocoa

results in the following error:
==> Downloading http://ftpmirror.gnu.org/emacs/emacs-24.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/emacs-24.3.tar.gz
==> ./configure --prefix=/usr/local/Cellar/emacs/24.3 --without-dbus --enable-lo
==> make bootstrap
This is not recommended - see the comments in `copy_autogen'.

Please report any problems with this script to bug-gnu-emacs@gnu.org .
/bin/sh: autogen/copy_autogen: No such file or directory
make: *** [bootstrap] Error 127

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Contributor

adamv commented Mar 17, 2013

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

Contributor

sje30 commented Mar 18, 2013

Sure. My concern is why the command to build emacs is "make bootstrap" on cocoa (and dependency on autoconf/automake). If I take the Emacs 24.3 tar ball and compile it myself using:

$ ./configure --with-ns

Emacs installs okay.

Stephen

$ brew doctor
Your system is raring to brew.

$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: fb1b067
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.6.8-i386
Xcode: 3.2.6
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 1.7 build 77
X11: 2.3.6 => /usr/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

I`m having the same problem, here's my config:

$ brew doctor
Error: Failed to import: jnethack
Error: Failed to import: nethack
Your system is raring to brew.

$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: f0f9ebe
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.6.8-x86_64
Xcode: 3.2.6
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM-GCC: build 2335
Clang: 1.7 build 77
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

butala commented Mar 18, 2013

I am also having the same issue --- also running OS X 10.6.8.

mtomko commented Mar 19, 2013

You can make it work by changing line 67 of /usr/local/Library/Formula/emacs.rb from

system "make bootstrap"

to

system "make"

I didn't investigate why the existing formula works on my 10.8 machines at home but not my 10.6.8 machine at work, so I didn't try to add any logic to figure out when it should use make bootstrap versus make.

butala commented Mar 19, 2013

Thank you mtomko --- changing line 67 of emacs.rb to system "make" worked.

Contributor

sje30 commented Mar 20, 2013

Yes, I also did "make" rather than "make bootstrap". I think "make bootstrap" is for development versions of Emacs, rather than .tar.gz releases.

Contributor

gugod commented Mar 20, 2013

I had the same issue, but upgrading gnutls and nettle made it go away. While change make bootstrap to make did not.

tze commented Apr 13, 2013

Using make instead of make bootstrap on 10.6.8 does the trick indeed.

adamv closed this in 16da1c7 Apr 27, 2013

Contributor

adamv commented Apr 27, 2013

Sorry for the delay in addressing this.

@handyman5 handyman5 pushed a commit to handyman5/homebrew that referenced this issue Oct 7, 2013

@adamv adamv emacs: fix cocoa build
Closes #18539.
0cf88c6

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.