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.)
Comment #1 by greeenify — 2018-03-13T07:51:59Z
Yes, the minimal deployment target was bumped to 10.9 with 2.079 See: https://dlang.org/changelog/2.079.0.html#osx-10_9 So I guess the only thing we can do is update the docs. I see that this page (https://dlang.org/dmd-osx.html) still says 10.7, did you see another one?
Comment #2 by greensunny12 — 2018-03-13T08:15:40Z
Comment #3 by ssb22 — 2018-03-13T08:21:32Z
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
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/4e40131b9f176fc6de0cd58261726e0c33c5ecce Fix Issue 18603 - Update minimally required version for macOS https://github.com/dlang/dlang.org/commit/4f9ad17cc636fcf87f9f41c9b04e2271ef05c2a2 Merge pull request #2275 from wilzbach/fix-18603 Fix Issue 18603 - Update minimally required version for macOS merged-on-behalf-of: Mike Franklin <[email protected]>
Comment #6 by github-bugzilla — 2018-03-27T21:08:41Z
Commits pushed to master at https://github.com/dlang/installer https://github.com/dlang/installer/commit/427674142aecdd820a017c73b75508d4cddb1dfe Fix Issue 18603 - Illegal instruction: 4 on Mac OS 10.7.5 Leopard https://github.com/dlang/installer/commit/47830a15d1a576b683c92b4bb4adc4a1d83a2b5d Merge pull request #308 from wilzbach/fix-18603 Fix Issue 18603 - Illegal instruction: 4 on Mac OS 10.7.5 Leopard