https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91595
--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject dot org> --- (In reply to Brecht Sanders from comment #6) > The patch for gcc/config/i386/t-cygming added a line: > winnt-d.o: config/winnt-d.c > I changed it to: > winnt-d.o: config/i386/winnt-d.c > > Then I got one step further. > > Output is now: > libtool: compile: /R/winlibs64_stage/gcc-10-20210320/build_mingw/./gcc/gdc > -B/R/winlibs64_stage/gcc-10-20210320/build_mingw/./gcc/ > -L/R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/lib > -L/R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/mingw/lib -isystem > /R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/include > -isystem /R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/mingw/include > -B/R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/bin/ > -B/R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/lib/ > -isystem > /R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/include > -isystem > /R/winlibs64_stage/inst_gcc-10-20210320/share/gcc/x86_64-w64-mingw32/sys- > include --sysroot=/R/winlibs64_stage/gcc-10-20210320/build_mingw/mingw-w64 > -DDLL_EXPORT -Wall -frelease -O2 -g -nostdinc -I > ../../../../libphobos/libdruntime -I . -c > ../../../../libphobos/libdruntime/core/demangle.d -fversion=Shared -o > core/.libs/demangle.o > r:\winlibs64_stage\gcc-10-20210320\libphobos\libdruntime\core\stdc\wchar_.d: > 134:5: error: undefined identifier 'FILE' > 134 | int fwprintf(FILE* stream, in wchar_t* format, ...); > | ^ What predefined versions are added by the compiler? ./gcc/d21 -v 2>&1 | grep predefs