Hello, I assume I should be able to build GDB 6.8 for native (ie: non-Cygwin) WinVista SP2 support using a mingw version og gcc. I was trying to diagnose a problem I encountered with an environment that used the original official release of GDB 6.8 for i686-pc-cygwin that came with Aonix/AdaCore's GNU GNAT. Thought I'd try a standalone command-line version built for mingw32. I wasn't able to build it, unfortunately. It appears to be a problem with the use of USE_WIN32API. First error seen was:
jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ ../gdb-6.8.0.20090727/configure --target=powerpc-unknown-eabi --build=i686-pc-mingw32 ... (appears to complete successfully) jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ make ... gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5 -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO -D__USE_MINGW_FSEEK -I. -I../../../../sim/ppc -I../../../../sim/ppc/../../include -I../../bfd -I../../../../sim/ppc/../../bfd -I../../gdb -I../../../../sim/ppc/../../gdb -I../../../../sim/ppc/../../gdb/config -I../../intl -DHAVE_COMMON_FPU -I../common -I../../../../sim/ppc/../common ../../../../sim/ppc/emul_netbsd.c gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5 -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO -D__USE_MINGW_FSEEK -I. -I../../../../sim/ppc -I../../../.. /sim/ppc/../../include -I../../bfd -I../../../../sim/ppc/../../bfd -I../../gdb -I../../../../sim/ppc/../../gdb -I../../../../sim/ppc/../../gdb/config -I../../intl -DHAVE_COMMON_FPU -I../common -I../../../../sim/ppc/../common ../../../../sim/ppc/emul_unix.c ../../../../sim/ppc/emul_unix.c: In function `do_unix_mkdir': ../../../../sim/ppc/emul_unix.c:734: error: too few arguments to function `mkdir' make[3]: *** [emul_unix.o] Error 1 make[3]: Leaving directory `/cygdrive/C/Users/jboucher/Documents/gdb/gdb-6.8.0.20090727/gdb/build/s im/ppc' make[2]: *** [all] Error 1 make[2]: Leaving directory `/cygdrive/C/Users/jboucher/Documents/gdb/gdb-6.8.0.20090727/gdb/build/s im' make[1]: *** [all-sim] Error 2 make[1]: Leaving directory `/cygdrive/C/Users/jboucher/Documents/gdb/gdb-6.8.0.20090727/gdb/build' make: *** [all] Error 2 jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ Tried to patch that in ./sim/ppc/emul_unix.c:733 with: #if 0 //def USE_WIN32API status = mkdir(path); #else status = mkdir(path, mode); #endif only to get: jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ make ... gcc -c -g -O2 -I. -I../../gdb-6.8.0.20090727/gdb -I../../gdb-6.8.0.20090727/gd b/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb-6 .8.0.20090727/gdb/../include/opcode -I../../gdb-6.8.0.20090727/gdb/../readline/. . -I../bfd -I../../gdb-6.8.0.20090727/gdb/../bfd -I../../gdb-6.8.0.20090727/gdb/ ../include -I../libdecnumber -I../../gdb-6.8.0.20090727/gdb/../libdecnumber -I./ ../intl -DMI_OUT=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wforma t-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror ../../gdb-6.8. 0.20090727/gdb/solib-svr4.c gcc -c -g -O2 -I. -I../../gdb-6.8.0.20090727/gdb -I../../gdb-6.8.0.20090727/gd b/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb-6 .8.0.20090727/gdb/../include/opcode -I../../gdb-6.8.0.20090727/gdb/../readline/. . -I../bfd -I../../gdb-6.8.0.20090727/gdb/../bfd -I../../gdb-6.8.0.20090727/gdb/ ../include -I../libdecnumber -I../../gdb-6.8.0.20090727/gdb/../libdecnumber -I./ ../intl -DMI_OUT=1 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wforma t-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Werror ../../gdb-6.8. 0.20090727/gdb/ser-base.c In file included from ../../gdb-6.8.0.20090727/gdb/gdb_select.h:28, from ../../gdb-6.8.0.20090727/gdb/ser-base.c:26: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 103:2: # warning "fd_set and associated macros have been defined in sys/types. This may cause runtime problems with W32 sockets" In file included from ../../gdb-6.8.0.20090727/gdb/gdb_select.h:28, from ../../gdb-6.8.0.20090727/gdb/ser-base.c:26: /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 109: error: redefinition of `struct timeval' /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 632: error: conflicting types for 'select' /usr/include/sys/select.h:31: error: previous declaration of 'select' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 632: error: conflicting types for 'select' /usr/include/sys/select.h:31: error: previous declaration of 'select' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 635: error: conflicting types for 'gethostname' /usr/include/sys/unistd.h:206: error: previous declaration of 'gethostname' was here /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h: 635: error: conflicting types for 'gethostname' /usr/include/sys/unistd.h:206: error: previous declaration of 'gethostname' was here make[2]: *** [ser-base.o] Error 1 make[2]: Leaving directory `/cygdrive/C/Users/jboucher/Documents/gdb/build4ppc/gdb' make[1]: *** [all-gdb] Error 2 make[1]: Leaving directory `/cygdrive/C/Users/jboucher/Documents/gdb/build4ppc' make: *** [all] Error 2 Obviously, this is more serious than I had anticipated. FYI: jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ uname -a CYGWIN_NT-6.0 Satellite 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ gcc -v Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /managed/gcc-build/final-v3-bootstrap/gcc-3.4.4-999/configure - -verbose --program-suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/s hare/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --wit hout-included-gettext --enable-version-specific-runtime-libs --without-x --enabl e-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-li bgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registr y --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) jbouc...@satellite /cygdrive/C/Users/jboucher/Documents/gdb/build4ppc $ Thought you might like to know. Jean. _______________________________________________ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb