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.
Looking at the file list for both libraries: - GDC: https://packages.debian.org/sid/amd64/libphobos-4.9-dev/filelist - LDC: https://packages.debian.org/fr/sid/amd64/libphobos2-ldc-dev/filelist It seems that indeed GDC is picking LDC's libphobos. 2016-01-10 17:51 GMT+01:00 John Colvin via Digitalmars-d < digitalmars-d@puremagic.com>: > On Sunday, 10 January 2016 at 16:23:24 UTC, Russel Winder wrote: > >> Iain, >> >> 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. >> >> >> scons: Building targets ... >> gdc -I. -c -o foo.o foo.d >> scons: building terminated because of errors. >> >> STDERR >> ========================================================================= >> /usr/include/d/core/stdc/config.d:28:3: error: static if conditional >> cannot be at global scope >> static if( (void*).sizeof > int.sizeof ) >> ^ >> scons: *** [foo.o] Error 1 >> >> >> |> dpkg -S /usr/include/d/core/stdc/config.d libphobos2-ldc-dev: >> /usr/include/d/core/stdc/config.d >> > > I think this is the same problem I have on OS X. >