Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary on darwin fails with "illegal instruction" on some machines #271

Closed
tomstuart opened this issue Jun 25, 2014 · 98 comments
Closed

Binary on darwin fails with "illegal instruction" on some machines #271

tomstuart opened this issue Jun 25, 2014 · 98 comments
Assignees
Labels
Milestone

Comments

@tomstuart
Copy link

The current fig release doesn’t work for me:

$ fig
-bash: fig: command not found

$ curl -L https://github.com/orchardup/fig/releases/download/0.4.2/darwin > /usr/local/bin/fig
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   329  100   329    0     0    329      0  0:00:01 --:--:--  0:00:01   329
100 3860k  100 3860k    0     0   625k      0  0:00:06  0:00:06 --:--:--  842k

$ chmod +x /usr/local/bin/fig

$ fig
Illegal instruction: 4

I’m running OS X 10.9.3 on a 1.6 GHz Intel Core 2 Duo (Late 2010 MacBook Air).

@leevs
Copy link

leevs commented Jun 26, 2014

Does run for me and I did the same steps

-> fig --version
fig 0.4.2

Darwin ... 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64

@wlaurance
Copy link

@tomstuart Are you still getting this error?

I am getting the same.

Mid 2009 13-inch 10.9.3

@d11wtq
Copy link

d11wtq commented Jul 13, 2014

@tomstuart have you replaced the system Python with something else? Can you try 0.5.0?

@ndeloof
Copy link
Contributor

ndeloof commented Aug 6, 2014

I have the same issue
Darwin Kernel Version 13.3.0
Python 2.7.8

@ndeloof
Copy link
Contributor

ndeloof commented Aug 6, 2014

was able to solve this by installing python with homebrew then fig with pip

@rujmah
Copy link

rujmah commented Oct 1, 2014

Can confirm that @ndeloof solution worked for me.

I had installed via curl as per the fig site suggested on a clean reinstall of Mavericks. Got the 'illegal instruction' error.

Mv'd /usr/local/bin/fig. Ran brew python and then pip install fig

All working fine now. (Well, the Rails demo has at least)

@bfirsh bfirsh changed the title fig 0.4.2 binary doesn’t run on darwin Binary on darwin fails with "illegal instruction" on some hardware Oct 17, 2014
@bfirsh bfirsh changed the title Binary on darwin fails with "illegal instruction" on some hardware Binary on darwin fails with "illegal instruction" on some machines Oct 17, 2014
@sirwolfgang
Copy link

Having this issue with OSX version 10.9.5 and Python 2.7.8 for fig 1.0.0. It was solved by using pip to install, rather then curl

@bfirsh
Copy link

bfirsh commented Oct 20, 2014

@sirwolfgang What is the model of the Mac you are using?

@sirwolfgang
Copy link

MacBook Pro 6,2 (15" Mid 2010)

@mungler
Copy link

mungler commented Nov 2, 2014

FYI same issue on a 2009 27'' iMac with Core i7 (iMac11,1). Installed via pip instead, seems ok.

@ksylvan
Copy link

ksylvan commented Nov 11, 2014

Same issue here with a 2009 15" MacBook Pro running OSX 10.9.5.

brew install python; pip install fig

worked for me.

@tpires
Copy link

tpires commented Nov 23, 2014

I got the same error @tomstuart had, when trying to curl fig-1.0.1.

Mac OS X 10.10.1
Python 2.7.8
Darwin 14.0.0

Fixed with @ndeloof solution (pip).

@nesv
Copy link

nesv commented Dec 1, 2014

👍 for the solution posted by @ndeloof

@tomstuart
Copy link
Author

Everyone seems happy with the homebrew/pip solution (and I don’t care any more), so I’ll close this issue.

@bfirsh
Copy link

bfirsh commented Dec 1, 2014

I care, Tom.

@bfirsh bfirsh reopened this Dec 1, 2014
@bfirsh
Copy link

bfirsh commented Dec 1, 2014

In seriousness... we shouldn't be shipping binaries that don't work on some machines. Or, we should at least try and figure out which machines it doesn'tw ork on and give alternate instructions. (E.g. "If you have a processor older than an Intel i5/i7, then you need to use pip.")

@baptistedonaux
Copy link

I have the same problem +1

@lutnos
Copy link

lutnos commented Dec 3, 2014

I saw the same, +1, as requested below:

Model Name: iMac
Model Identifier: iMac11,3
Processor Name: Intel Core i5
Processor Speed: 3.6 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Memory: 8 GB
Processor Interconnect Speed: 6.4 GT/s
Boot ROM Version: IM112.0057.B01
SMC Version (system): 1.59f2

@sirwolfgang
Copy link

If your additional having the issue, could you please also include the hardware that your using? Rather then just +1ing it.

@shawndrape
Copy link

+1

fig: 1.0.1
python: 2.7.5
OS X: 10.9.5

Model Name: MacBook
Model Identifier: MacBook6,1 (Late 2009)
Processor Name: Intel Core 2 Duo
Processor Speed: 2.26 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 3 MB
Memory: 4 GB
Bus Speed: 1.07 GHz
Boot ROM Version: MB61.00C8.B00
SMC Version (system): 1.51f53

@pwaller
Copy link

pwaller commented Jan 16, 2015

We hit this over here, too.

@koliyo
Copy link

koliyo commented Jan 28, 2016

Same problem in 1.6 release of docker-compose, and again, the bintray binary works

@jayfk
Copy link

jayfk commented Jan 30, 2016

Same here. Running a Mac Pro 5,1 with 10.11.2. Bintray works.

@schmunk42
Copy link

We see this on OS X 10.10.5

@jayfk
Copy link

jayfk commented Feb 7, 2016

Running a Mac Pro 5,1 with 10.11.2. Bintray works.

1.6.0 in docker-toolbox is still broken.

@dnephin dnephin added this to the 1.7.0 milestone Feb 7, 2016
@jdmarshall
Copy link

Can we at least change the download and install instructions on the main website? It's silly to have official how-to's that don't work.

@jmreicha
Copy link

Just ran across this. OS X 10.11.3,MacBook Pro (15-inch, Mid 2010).

@web-bert
Copy link

Just installed on OS X 10.11.3 on a MacBook Pro (15-inch, 2.53GHz, Mid 2009) and I get the "Illegal instruction: 4"

@Elhodred
Copy link

I solved the issue without homebrew in this way:

first, download python official package from here: https://www.python.org/downloads/
will update local python and install pip. Now, in a new terminal session

sudo pip install fig
sudo pip uninstall docker-compose
sudo pip install —upgrade docker-compose
hash -r

@web-bert
Copy link

@Elhodred Which version of Python? 2 or 3?

@Elhodred
Copy link

Python 2

@ozlerhakan
Copy link

Thanks @Elhodred it works!

@mattolson
Copy link

Just ran into this on a mid-2010 Macbook pro

  Model Name:   MacBook Pro
  Model Identifier: MacBookPro6,2
  Processor Name:   Intel Core i7
  Processor Speed:  2.66 GHz
  Number of Processors: 1
  Total Number of Cores:    2
  L2 Cache (per Core):  256 KB
  L3 Cache: 4 MB
  Memory:   8 GB
  Processor Interconnect Speed: 4.8 GT/s
  Boot ROM Version: MBP61.0057.B11
  SMC Version (system): 1.58f17

@aanand
Copy link

aanand commented Mar 25, 2016

This should now be fixed in the 1.7.0 release candidate.

@aanand
Copy link

aanand commented Mar 25, 2016

Apologies, that link's broken. Correct URL:

https://github.com/docker/compose/releases/tag/1.7.0-rc1

@aanand
Copy link

aanand commented Mar 31, 2016

Can anyone who's experienced this issue confirm whether or not the 1.7.0-rc1 binary fixes the issue for them?

@ozlerhakan
Copy link

yes @aanand it is now fixed. Thanks!

@dduportal
Copy link

Hello @aanand ! Thanks for fixing that !

i7 950 with El Capitan 10.11.2 and i3 540 with 10.9.4 tested : success !

@sincraianul
Copy link

Fix is working on iMac (Mid 2010). Thanks @aanand. :)

@WidgetsBurritos
Copy link

I can confirm it works in 1.7.0-rc1 and 1.7.0-rc2 on my Mac mini (Mid 2010). Thank you!

@destijl
Copy link

destijl commented May 13, 2016

@aanand I have a similar problem with my own software: we build on new macs but it needs to work on old ones. Your bug is pretty much the top google hit for "Illegal instruction: 4" :) Can you provide some details on your solution to enlighten the Internet? Did you just find old hardware to build on? Or set some compile time flags?

@dnephin
Copy link

dnephin commented May 13, 2016

We started building on travisci, which fixes it for newer versions of OSX, but it doesn't run on older versions of OSX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests