gdc on linux does not install druntime's .d files?

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Thu Oct 17 03:58:35 PDT 2013


On 17/10/13 11:09, Johannes Pfau wrote:
> Wait - this is a different problem. It's not a path problem,
> it's really a .di/.d problem.
>
> DMD seems to ship .d include files for druntime now, they're no longer
> shipping the .di files. The archlinux packages even do this for gdc.
> Some stuff now depends on this, as having the source code available
> allows more stuff to work in ctfe.
>
> We have to fix this in our libdruntime makefile, we shouldn't
> generate the .di files anymore. Instead we should directly install
> the .d files.

I'm having a similar problem trying to build dub.

If you download the dub source from GitHub and try and build using GDC, you get 
this:

$ DC=gdmd ./build.sh
Generating version file...
Running gdmd...
/opt/gdc/include/d/4.8.2/x86_64-unknown-linux-gnu/core/time.di:224: error: this 
cannot be interpreted at compile time, because it has no available source code
/opt/gdc/include/d/4.8.2/std/net/curl.d:195: note: called from here: dur(2L)


More information about the D.gnu mailing list