Thread overview
[Issue 17852] cannot compile phobos on freebsd
Sep 23, 2017
Mengu Kagan
Oct 03, 2017
Jonathan M Davis
Oct 08, 2017
Mengu Kagan
September 23, 2017
https://issues.dlang.org/show_bug.cgi?id=17852

--- Comment #1 from Mengu Kagan <mengukagan@gmail.com> ---
by the way, this happened when i tried compiling phobos from the distribution rather than git.

i did checkout dmd, phobos and druntime. gmake ran perfectly and everything compiled.

--
October 03, 2017
https://issues.dlang.org/show_bug.cgi?id=17852

Jonathan M Davis <issues.dlang@jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |issues.dlang@jmdavisProg.co
                   |                            |m
         Resolution|---                         |INVALID

--- Comment #2 from Jonathan M Davis <issues.dlang@jmdavisProg.com> ---
So, what's the bug then? dmd, phobos, etc. are written to build with GNU's make on POSIX systems, and Digital Mars' make on Windows. That means using gmake on FreeBSD rather than make. The wiki should be updated to reflect the fact that gmake is needed on FreeBSD (or probably any POSIX system that isn't Linux), but that's not a bug in Phobos or dmd or any of that. Using BSD make for FreeBSD would mean either having different makefiles for FreeBSD and Linux rather than sharing them like we do now, or it would mean forcing Linux users to install and use BSD's make.

--
October 08, 2017
https://issues.dlang.org/show_bug.cgi?id=17852

--- Comment #3 from Mengu Kagan <mengukagan@gmail.com> ---
(In reply to Jonathan M Davis from comment #2)
> So, what's the bug then? dmd, phobos, etc. are written to build with GNU's make on POSIX systems, and Digital Mars' make on Windows. That means using gmake on FreeBSD rather than make. The wiki should be updated to reflect the fact that gmake is needed on FreeBSD (or probably any POSIX system that isn't Linux), but that's not a bug in Phobos or dmd or any of that. Using BSD make for FreeBSD would mean either having different makefiles for FreeBSD and Linux rather than sharing them like we do now, or it would mean forcing Linux users to install and use BSD's make.

this was the first time i compiled dmd, druntime and phobos myself. i've always used pre-compiled versions or installed through brew or apt.

when you download from dlang.org web site and intuitively try compiling it (let's say after you've changed some stuff on phobos), nothing works out. when you check out all the projects separately into a dir and compile, it compiles without any issues. i believe it's core team's decision to think of it as a bug or not.

--