<div dir="ltr">Looks like a packaging issue. In Archlinux there is one extra directory level for the compiler (e.g. `/usr/include/dlang/<compiler>/`) to prevent such things.<br><br>Looking at the file list for both libraries:<br>- GDC: <a href="https://packages.debian.org/sid/amd64/libphobos-4.9-dev/filelist">https://packages.debian.org/sid/amd64/libphobos-4.9-dev/filelist</a><br>- LDC: <a href="https://packages.debian.org/fr/sid/amd64/libphobos2-ldc-dev/filelist">https://packages.debian.org/fr/sid/amd64/libphobos2-ldc-dev/filelist</a><br><br>It seems that indeed GDC is picking LDC's libphobos.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-10 17:51 GMT+01:00 John Colvin via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sunday, 10 January 2016 at 16:23:24 UTC, Russel Winder wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Iain,<br>
<br>
Playing with the SCons tests, I am heading to the hypothesis that, at least on Debian Sid, if both gdc and ldc packages are installed, then gdc picks up the D source files from the ldc package in preference to the ones from the gdc package.<br>
<br>
<br>
scons: Building targets ...<br>
gdc -I. -c -o foo.o foo.d<br>
scons: building terminated because of errors.<br>
<br>
STDERR =========================================================================<br>
/usr/include/d/core/stdc/config.d:28:3: error: static if conditional cannot be at global scope<br>
static if( (void*).sizeof > int.sizeof )<br>
^<br>
scons: *** [foo.o] Error 1<br>
<br>
<br>
|> dpkg -S /usr/include/d/core/stdc/config.d libphobos2-ldc-dev: /usr/include/d/core/stdc/config.d<br>
</blockquote>
<br></span>
I think this is the same problem I have on OS X.<br>
</blockquote></div><br></div>