I have a partial explanation. The critical variable is GCCINCDIR. Its value is too long. A shorter value does not kill DMD. I have entered this as a bug. - http://d.puremagic.com/issues/show_bug.cgi?id=1327