I managed to exactly reproduce the error by setting gcc/d/lang.opt to CRLF line endings. You need to make sure everything is LF line endings. I've set a .gitattributes file which hopefully will fix this for future checkouts.