Bug 12301 – osx: macport port of dmd broken

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-05T14:06:00Z
Last change time
2017-01-08T05:42:59Z
Assigned to
nobody
Creator
timothee.cour2

Comments

Comment #0 by timothee.cour2 — 2014-03-05T14:06:04Z
I usually use git head but, trying macport and homebrew versions of dmd seems broken, which is bad for perception. main.d: import std.stdio; void main(){} macports: sudo port upgrade dmd /usr/bin/dmd main.d Error: undefined identifier '_xopCmp' Assertion failed: (s), function buildXopCmp, file clone.c, line 690. homebrew: brew upgrade dmd /opt/local/bin/dmd -g -ofmain main.d Error: cannot find source code for runtime library file 'object.d' dmd might not be correctly installed. Run 'dmd -man' for installation instructions. import path[0] = /opt/local/include/druntime import path[1] = /opt/local/include/phobos This happens because I have other dmd versions lying around; the way to solve this would be to add a /opt/local/bin/dmd.conf file just as is done with /usr/bin/dmd.conf in macports.
Comment #1 by timothee.cour2 — 2014-03-05T14:25:16Z
Edit: actually the homebrew port seems to work ok (i had installed it under a different directory). The only remaining problem is the macports port, for the reasons given above.
Comment #2 by timothee.cour2 — 2017-01-08T05:42:59Z
closing this as wontfix because homebrew > macports and it works on homebrew