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

Stefan Frijters sfrijters at gmail.com
Thu Oct 17 04:21:55 PDT 2013


On Thursday, 17 October 2013 at 10:58:43 UTC, Joseph Rushton 
Wakeling wrote:
> 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)

Yeah, this is the same error that made me necro this thread.

Johannes: Is the libdruntime Makefile change going to be tricky, 
do you think? Or will stripping the -fintfc flags do?


More information about the D.gnu mailing list