Bug 18603 – Illegal instruction: 4 on Mac OS 10.7.5 Leopard
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-03-12T23:03:35Z
Last change time
2018-03-27T21:08:41Z
Assigned to
No Owner
Creator
Silas S. Brown
Comments
Comment #0 by ssb22 — 2018-03-12T23:03:35Z
After downloading version 2.079.0 of the Mac OS DMG file on a Mac OS 10.7.5 system, the installer runs OK but the files it leaves in /usr/local/bin (e.g. dmd or dub) all say "Illegal instruction: 4" when you try to run them. This is despite the fact that the installer says it aims at Mac OS 10.6 or above.
I suspect the files have been compiled with a Mac complier that targets a minimum version of Mac OS higher than 10.7 (perhaps 10.9 or higher?) - if this cannot be fixed, perhaps the minimum Mac OS requirement needs to be updated? Thanks.
(Filing against Installer because I'm not sure which component this should be filed against. Hopefully it's easy to reassign if necessary.)
There is also a reference to 10.6 in the installer itself. It says "This package is intended for Mac OS X Snow Leopard (10.6) and later" on the "Welcome to the DMD2 Installer" screen.
Comment #4 by greensunny12 — 2018-03-13T08:55:07Z
(In reply to Silas S. Brown from comment #3)
> There is also a reference to 10.6 in the installer itself. It says "This
> package is intended for Mac OS X Snow Leopard (10.6) and later" on the
> "Welcome to the DMD2 Installer" screen.
Thanks!
I don't use OS X, but it seems like this should do the deed:
https://github.com/dlang/installer/pull/308
BTW 2.078.3 should still run on 10.7
Comment #5 by github-bugzilla — 2018-03-20T20:00:24Z