Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Fatal error 4: Illegal instruction when installing emacs via puppet-emacs #5

Closed
goxberry opened this issue Apr 20, 2013 · 7 comments
Closed
Labels

Comments

@goxberry
Copy link

If I run boxen and include emacs, the installation process works, but in running emacs, I get an error:

Geoffs-MacBook-Pro:repo goxberry$ emacs
Fatal error 4: Illegal instruction

If I manually uninstall emacs and reinstall it, it seems to work.

Geoffs-MacBook-Pro:repo goxberry$ brew uninstall emacs
Uninstalling /opt/boxen/homebrew/Cellar/emacs/24.3-boxen1...
Geoffs-MacBook-Pro:repo goxberry$ brew install emacs
==> Downloading http://ftpmirror.gnu.org/emacs/emacs-24.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/opt/boxen/homebrew/Cellar/emacs/24.3 --without-dbus -
==> make
==> make install
==> Summary
/opt/boxen/homebrew/Cellar/emacs/24.3: 3843 files, 96M, built in 4.1 minutes
Geoffs-MacBook-Pro:repo goxberry$ emacs --version
GNU Emacs 24.3.1
Copyright (C) 2013 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

I suspect this error is related to boxen/puppet-tmux#1, boxen/puppet-homebrew#12, and boxen/puppet-homebrew#17.

@mroth
Copy link

mroth commented Apr 22, 2013

Are you running on a slightly older Macbook? I seem to be having a similar issue on a 2011 Macbook Air.

From what I can tell, boxen prefers to install packages as precompiled binaries from a S3 bucket. Unfortunately, these binaries must assume the latest and greatest hardware, since they all seem to fail on my 2011 C2D MBA (including git, which is quite annoying since it breaks pretty much everything else).

Can anyone from the boxen team comment on desired behavior and how this should be handled on slightly older hardware?

@goxberry
Copy link
Author

Yes, I'm running on a Mid-2009 MacBook Pro (MacBookPro 5,2).

My experience has also been that boxen prefers to install binaries from S3; app binaries seem to work very well. Any homebrew binary from S3 seems to return some variant of the illegal instruction error.

@bleything
Copy link
Contributor

@goxberry: are you still having trouble with this?

@goxberry
Copy link
Author

goxberry commented Dec 5, 2013

@bleything I just gave up and reverted my installation to stock Homebrew without Boxen. I met Tim Clem at a conference around a year ago, and he gave me a heads up that Boxen was coming out, so I was really psyched to try it. I ran into a few packages that had errors like this one; puppet-tmux was another module that gave me trouble. Boxen didn't seem to play nice with Homebrew bottles, and after grappling with errors like this one, plus having to install everything from source, I just gave up. I really like most of the architecture. I think that Puppet + Ruby is the right way to go. If I could install Homebrew in /usr/local, and leverage all of the Homebrew packages, I'd give Boxen another try, because I really like the idea of scripting my entire configuration and tracking it with Git.

@bleything
Copy link
Contributor

@goxberry: I'm sorry to hear that. It's a bummer that boxen's downloads don't work for you... I wish we'd ever figured out a good solution to the CPU problem. If you end up with a newer mac, I'd encourage you to try it again. I know that's a terrible answer, but it's the best I can give you.

zakuni added a commit to zakuni/my-boxen that referenced this issue Jan 2, 2014
currently, downloading Application/Emacs.app from
http://emacsformacosx.com/ by hand.
Because puppet-emacs has problem with cocoa emacs boxen/puppet-emacs#5
@andyleejordan
Copy link
Contributor

@goxberry You can enable compilation from source for everything (that is, disable bottles entirely) by setting the environment variable HOMEBREW_BUILD_FROM_SOURCE. If that solves your problem, I'd encourage you to try boxen again, it's a lot of fun.

@jacobbednarz
Copy link
Member

This module has been deprecated in favour of using the in built Homebrew/Caskroom support. Please give that a try and let me know if you're still having issues.

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

No branches or pull requests

5 participants