https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64640
Bug ID: 64640 Summary: Ada build failure on cygwin-32 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de I used r219767: /home/ED/gcc-build/./gcc/xgcc -B/home/ED/gcc-build/./gcc/ -B/home/ED/install/i686-pc-cygwin/bin/ -B/home/ED/install/i686-pc-cygwin/lib/ -isystem /home/ED/install/i686-pc-cygwin/include -isystem /home/ED/install/i686-pc-cygwin/sys-include -c -DIN_GCC -W -Wall -g -O2 -g -O2 -fexceptions -DIN_RTS -DHAVE_GETIPINFO \ -iquote . -iquote .. -iquote ../.. -iquote /home/ED/gcc-r219767/gcc/ada -iquote /home/ED/gcc-r219767/gcc -I/home/ED/gcc-r219767/include -I./../.. sysdep.c -o sysdep.o In file included from sysdep.c:138:0: sysdep.c: In function ‘__gnat_set_mode’: sysdep.c:170:35: error: ‘CurrentCCSEncoding’ undeclared (first use in this function) case 1 : WIN_SETMODE (handle, CurrentCCSEncoding); break; ^ sysdep.c:170:14: note: in expansion of macro ‘WIN_SETMODE’ case 1 : WIN_SETMODE (handle, CurrentCCSEncoding); break; ^ sysdep.c:170:35: note: each undeclared identifier is reported only once for each function it appears in case 1 : WIN_SETMODE (handle, CurrentCCSEncoding); break; ^ sysdep.c:170:14: note: in expansion of macro ‘WIN_SETMODE’ case 1 : WIN_SETMODE (handle, CurrentCCSEncoding); break; ^ sysdep.c:172:35: error: ‘_O_U8TEXT’ undeclared (first use in this function) case 3 : WIN_SETMODE (handle, _O_U8TEXT); break; ^ sysdep.c:172:14: note: in expansion of macro ‘WIN_SETMODE’ case 3 : WIN_SETMODE (handle, _O_U8TEXT); break; ^ sysdep.c:173:35: error: ‘_O_WTEXT’ undeclared (first use in this function) case 4 : WIN_SETMODE (handle, _O_WTEXT); break; ^ sysdep.c:173:14: note: in expansion of macro ‘WIN_SETMODE’ case 4 : WIN_SETMODE (handle, _O_WTEXT); break; ^ sysdep.c:174:35: error: ‘_O_U16TEXT’ undeclared (first use in this function) case 5 : WIN_SETMODE (handle, _O_U16TEXT); break; ^ sysdep.c:174:14: note: in expansion of macro ‘WIN_SETMODE’ case 5 : WIN_SETMODE (handle, _O_U16TEXT); break; ^ ../gcc-interface/Makefile:304: recipe for target 'sysdep.o' failed make[6]: *** [sysdep.o] Error 1 make[6]: Leaving directory '/home/ED/gcc-build/gcc/ada/rts' gcc-interface/Makefile:2750: recipe for target 'gnatlib' failed make[5]: *** [gnatlib] Error 2 make[5]: Leaving directory '/home/ED/gcc-build/gcc/ada' gcc-interface/Makefile:2858: recipe for target 'gnatlib-shared-win32' failed make[4]: *** [gnatlib-shared-win32] Error 2 make[4]: Leaving directory '/home/ED/gcc-build/gcc/ada' gcc-interface/Makefile:2911: recipe for target 'gnatlib-shared' failed make[3]: *** [gnatlib-shared] Error 2 make[3]: Leaving directory '/home/ED/gcc-build/gcc/ada' Makefile:113: recipe for target 'gnatlib-shared' failed make[2]: *** [gnatlib-shared] Error 2 make[2]: Leaving directory '/home/ED/gcc-build/i686-pc-cygwin/libada' Makefile:22345: recipe for target 'all-target-libada' failed make[1]: *** [all-target-libada] Error 2 make[1]: Leaving directory '/home/ED/gcc-build' Makefile:906: recipe for target 'all' failed make: *** [all] Error 2