I also had this error along with some strange sqrt can't be evaluated at compile-time stuff. Compiling manually works fine, but xfbuild also passes all phobos files to dmd while building. So there probably is some strange bug if you pass the files that way.