Bug 10222 – Instructions for building dmd and Phobos on OSX are wrong
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2013-05-31T20:35:00Z
Last change time
2014-04-22T23:03:53Z
Assigned to
nobody
Creator
redballoon36
Comments
Comment #0 by redballoon36 — 2013-05-31T20:35:00Z
The instructions for building dmd and Phobos on OSX (http://dlang.org/dmd-osx.html) say to use the makefile "osx.mak". This file doesn't exist anywhere. Using "posix.mak" instead seems to work for Phobos.
In the dmd instructions, there are more problems. The instructions currently are:
cd ~/dmd2/src/dmd
make -f osx.mak
In the dmd source tree, src/dmd is an executable, not a directory. Running make -f posix.mak doesn't do anything. There is an Xcode project in the top level directory that does the make -f posix.mak and doesn't produce a binary.
Comment #1 by doob — 2013-06-01T01:49:20Z
Running:
$ cd dmd/src
$ make -f posix.mak
Does work and produces and executable. The Xcode project also produces an executable, at least for me. The executable will be located at dmd/src/dmd.
Comment #2 by redballoon36 — 2013-06-01T09:35:39Z
(In reply to comment #1)
> Running:
>
> $ cd dmd/src
> $ make -f posix.mak
>
> Does work and produces and executable. The Xcode project also produces an
> executable, at least for me. The executable will be located at dmd/src/dmd.
So.. I forgot to run make clean before trying to build just before I filed the bug, then I mistook the "Nothing to do, because it's done" message for "Don't know what to do". So that part works. Sorry about that.
Comment #3 by andrej.mitrovich — 2014-04-22T23:03:53Z