Thread overview
[Issue 13604] Phobos is broken
Oct 12, 2014
Rainer Schuetze
Oct 12, 2014
Andre Tampubolon
Oct 12, 2014
Rainer Schuetze
Oct 13, 2014
Andre Tampubolon
Oct 13, 2014
Andre Tampubolon
October 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13604

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.sagitario@gmx.de
         Resolution|---                         |INVALID

--- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> ---
core/thread.di has been deleted some time ago. You will have to remove it from your druntime/import/core directory. It's not clear from the output, but please also make sure that your import path points to the druntime import folder from git, not the folder of a released dmd.

The deprecation messages are annoying, but should not stop the build.

--
October 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13604

--- Comment #2 from Andre Tampubolon <andre@lc.vlsm.org> ---
(In reply to Rainer Schuetze from comment #1)
> core/thread.di has been deleted some time ago. You will have to remove it from your druntime/import/core directory.
> 
> The deprecation messages are annoying, but should not stop the build.

OK. Just to be safe, I deleted my existing dmd, druntime, and phobos development directories, and pull the latest again from github.

Indeed, core/thread.di is not exist in druntime anymore.

But phobos still cannot be built, like stated in my first post.

> It's not clear from the output,
> but please also make sure that your import path points to the druntime
> import folder from git, not the folder of a released dmd.

Hmm so that means I need to modify sc.ini? (On my laptop, the released dmd is in C:\dmd)

--
October 12, 2014
https://issues.dlang.org/show_bug.cgi?id=13604

--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> ---
>Hmm so that means I need to modify sc.ini?
> (On my laptop, the released dmd is in C:\dmd)

The version of dmd used to build git druntime and phobos should be also current git. Most people do this by specifying the path to dmd when invoking make:

make -f win32.mak DMD=../dmd/src/dmd

assuming dmd, druntime and phobos are fetched into parallel folders.

In this case, you will also have to create an sc.ini in the dmd/src folder with appropriate settings (import and library search paths). You should also copy link.exe from the release folder into the same folder.

--
October 13, 2014
https://issues.dlang.org/show_bug.cgi?id=13604

--- Comment #4 from Andre Tampubolon <andre@lc.vlsm.org> ---
(In reply to Rainer Schuetze from comment #3)
> The version of dmd used to build git druntime and phobos should be also current git. Most people do this by specifying the path to dmd when invoking make:
> 
> make -f win32.mak DMD=../dmd/src/dmd
> 

I use a different approach here. After successfully building dmd from git, I copied all the executables to C:\dmd\bin (replacing the old ones).

So far, this works fine. Hopefully this won't cause any problem.

--
October 13, 2014
https://issues.dlang.org/show_bug.cgi?id=13604

--- Comment #5 from Andre Tampubolon <andre@lc.vlsm.org> ---
(In reply to Rainer Schuetze from comment #1)
> core/thread.di has been deleted some time ago. You will have to remove it from your druntime/import/core directory. It's not clear from the output, but please also make sure that your import path points to the druntime import folder from git, not the folder of a released dmd.
> 
> The deprecation messages are annoying, but should not stop the build.

I think I misunderstoodd your post. I deleted thread.di from existing (stable) dmd directory, and phobos can be built.

Case closed.

--