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

Comments

Projects
None yet
@tomstuart
Contributor

tomstuart commented Jun 25, 2014

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

This comment has been minimized.

Show comment
Hide comment
@leevs

leevs 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

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

This comment has been minimized.

Show comment
Hide comment
@wlaurance

wlaurance Jun 27, 2014

@tomstuart Are you still getting this error?

I am getting the same.

Mid 2009 13-inch 10.9.3

wlaurance commented Jun 27, 2014

@tomstuart Are you still getting this error?

I am getting the same.

Mid 2009 13-inch 10.9.3

@d11wtq

This comment has been minimized.

Show comment
Hide comment
@d11wtq

d11wtq Jul 13, 2014

Contributor

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

Contributor

d11wtq commented Jul 13, 2014

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

@ndeloof

This comment has been minimized.

Show comment
Hide comment
@ndeloof

ndeloof Aug 6, 2014

I have the same issue
Darwin Kernel Version 13.3.0
Python 2.7.8

ndeloof commented Aug 6, 2014

I have the same issue
Darwin Kernel Version 13.3.0
Python 2.7.8

@ndeloof

This comment has been minimized.

Show comment
Hide comment
@ndeloof

ndeloof Aug 6, 2014

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

ndeloof commented Aug 6, 2014

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

@rujmah

This comment has been minimized.

Show comment
Hide comment
@rujmah

rujmah 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)

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 from fig 0.4.2 binary doesn’t run on darwin to Binary on darwin fails with "illegal instruction" on some hardware Oct 17, 2014

@bfirsh bfirsh changed the title from Binary on darwin fails with "illegal instruction" on some hardware to Binary on darwin fails with "illegal instruction" on some machines Oct 17, 2014

@sirwolfgang

This comment has been minimized.

Show comment
Hide comment
@sirwolfgang

sirwolfgang Oct 20, 2014

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

sirwolfgang commented Oct 20, 2014

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

This comment has been minimized.

Show comment
Hide comment
@bfirsh

bfirsh Oct 20, 2014

Contributor

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

Contributor

bfirsh commented Oct 20, 2014

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

@sirwolfgang

This comment has been minimized.

Show comment
Hide comment
@sirwolfgang

sirwolfgang Oct 20, 2014

MacBook Pro 6,2 (15" Mid 2010)

sirwolfgang commented Oct 20, 2014

MacBook Pro 6,2 (15" Mid 2010)

@mungler

This comment has been minimized.

Show comment
Hide comment
@mungler

mungler Nov 2, 2014

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

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

This comment has been minimized.

Show comment
Hide comment
@ksylvan

ksylvan 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.

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

This comment has been minimized.

Show comment
Hide comment
@tpires

tpires 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).

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

This comment has been minimized.

Show comment
Hide comment
@nesv

nesv Dec 1, 2014

👍 for the solution posted by @ndeloof

nesv commented Dec 1, 2014

👍 for the solution posted by @ndeloof

@tomstuart

This comment has been minimized.

Show comment
Hide comment
@tomstuart

tomstuart Dec 1, 2014

Contributor

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

Contributor

tomstuart commented Dec 1, 2014

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

@tomstuart tomstuart closed this Dec 1, 2014

@bfirsh

This comment has been minimized.

Show comment
Hide comment
@bfirsh

bfirsh Dec 1, 2014

Contributor

I care, Tom.

Contributor

bfirsh commented Dec 1, 2014

I care, Tom.

@bfirsh bfirsh reopened this Dec 1, 2014

@bfirsh

This comment has been minimized.

Show comment
Hide comment
@bfirsh

bfirsh Dec 1, 2014

Contributor

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.")

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@baptistedonaux

baptistedonaux Dec 1, 2014

I have the same problem +1

baptistedonaux commented Dec 1, 2014

I have the same problem +1

@lutnos

This comment has been minimized.

Show comment
Hide comment
@lutnos

lutnos 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

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

This comment has been minimized.

Show comment
Hide comment
@sirwolfgang

sirwolfgang Dec 3, 2014

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

sirwolfgang commented Dec 3, 2014

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

@dnephin dnephin added the kind/bug label Dec 3, 2014

@shawndrape

This comment has been minimized.

Show comment
Hide comment
@shawndrape

shawndrape Dec 16, 2014

+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

shawndrape commented Dec 16, 2014

+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

This comment has been minimized.

Show comment
Hide comment
@pwaller

pwaller Jan 16, 2015

We hit this over here, too.

pwaller commented Jan 16, 2015

We hit this over here, too.

@koliyo

This comment has been minimized.

Show comment
Hide comment
@koliyo

koliyo Jan 28, 2016

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

koliyo commented Jan 28, 2016

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

@jayfk

This comment has been minimized.

Show comment
Hide comment
@jayfk

jayfk Jan 30, 2016

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

jayfk commented Jan 30, 2016

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

@schmunk42

This comment has been minimized.

Show comment
Hide comment
@schmunk42

schmunk42 Feb 1, 2016

Contributor

We see this on OS X 10.10.5

Contributor

schmunk42 commented Feb 1, 2016

We see this on OS X 10.10.5

@jayfk

This comment has been minimized.

Show comment
Hide comment
@jayfk

jayfk Feb 7, 2016

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

1.6.0 in docker-toolbox is still broken.

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

This comment has been minimized.

Show comment
Hide comment
@jdmarshall

jdmarshall Feb 8, 2016

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.

jdmarshall commented Feb 8, 2016

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

This comment has been minimized.

Show comment
Hide comment
@jmreicha

jmreicha Feb 11, 2016

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

jmreicha commented Feb 11, 2016

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

@web-bert

This comment has been minimized.

Show comment
Hide comment
@web-bert

web-bert Feb 26, 2016

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"

web-bert commented Feb 26, 2016

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

This comment has been minimized.

Show comment
Hide comment
@Elhodred

Elhodred Feb 26, 2016

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

Elhodred commented Feb 26, 2016

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

This comment has been minimized.

Show comment
Hide comment
@web-bert

web-bert Feb 26, 2016

@Elhodred Which version of Python? 2 or 3?

web-bert commented Feb 26, 2016

@Elhodred Which version of Python? 2 or 3?

@Elhodred

This comment has been minimized.

Show comment
Hide comment
@Elhodred

Elhodred commented Feb 26, 2016

Python 2

@ozlerhakan

This comment has been minimized.

Show comment
Hide comment
@ozlerhakan

ozlerhakan Mar 19, 2016

Thanks @Elhodred it works!

ozlerhakan commented Mar 19, 2016

Thanks @Elhodred it works!

@mattolson

This comment has been minimized.

Show comment
Hide comment
@mattolson

mattolson Mar 21, 2016

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

mattolson commented Mar 21, 2016

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

This comment has been minimized.

Show comment
Hide comment
@aanand

aanand Mar 25, 2016

Contributor

This should now be fixed in the 1.7.0 release candidate.

Contributor

aanand commented Mar 25, 2016

This should now be fixed in the 1.7.0 release candidate.

@aanand

This comment has been minimized.

Show comment
Hide comment
@aanand

aanand Mar 25, 2016

Contributor

Apologies, that link's broken. Correct URL:

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

Contributor

aanand commented Mar 25, 2016

Apologies, that link's broken. Correct URL:

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

@aanand

This comment has been minimized.

Show comment
Hide comment
@aanand

aanand Mar 31, 2016

Contributor

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

Contributor

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

This comment has been minimized.

Show comment
Hide comment
@ozlerhakan

ozlerhakan Mar 31, 2016

yes @aanand it is now fixed. Thanks!

ozlerhakan commented Mar 31, 2016

yes @aanand it is now fixed. Thanks!

@dduportal

This comment has been minimized.

Show comment
Hide comment
@dduportal

dduportal Mar 31, 2016

Hello @aanand ! Thanks for fixing that !

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

dduportal commented Mar 31, 2016

Hello @aanand ! Thanks for fixing that !

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

@sincraianul

This comment has been minimized.

Show comment
Hide comment
@sincraianul

sincraianul Apr 1, 2016

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

sincraianul commented Apr 1, 2016

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

@WidgetsBurritos

This comment has been minimized.

Show comment
Hide comment
@WidgetsBurritos

WidgetsBurritos Apr 13, 2016

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

WidgetsBurritos commented Apr 13, 2016

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

@destijl

This comment has been minimized.

Show comment
Hide comment
@destijl

destijl 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?

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

This comment has been minimized.

Show comment
Hide comment
@dnephin

dnephin May 13, 2016

Contributor

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

Contributor

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