https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88431
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> --- Added some debug prints in the boilerplate check. configure:12017: Checking compiler boilerplate from: $CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5 configure:12018: module mod; extern(C) int main() { return 0; } configure:12019: Boilerplate = d21: warning: command line option '-Wlogical-op' is valid for C/C++/ObjC/ObjC++ but not for D d21: error: cannot find source code for runtime library file 'object.d' d21: note: dmd might not be correctly installed. Run 'dmd -man' for installation instructions. d21: note: config file: not found import path[0] = /usr/include/d So the D boilerplate in the initial test does not match the warnings in latter tests. This is the problem here.