Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Build GDB 7.0 with Cygwin -mno-cygwin option.
@ 2009-10-07 16:30 Dmitry Smirnov
  2009-10-07 16:58 ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Smirnov @ 2009-10-07 16:30 UTC (permalink / raw)
  To: gdb

Hi,

Is it possible to build GDB 7.0 using Cygwin (i686-pc-cygwin) but with Mingw compiler?
Usually, this requires -mno-cygwin option but I did not find this option in any file.

Should I use --build=i686-pc-mingw32 for configure? I had tried, but got the following error:

gcc -g -O2 -D__USE_MINGW_ACCESS   -I. -I. -I./common -I./config -DLOCALEDIR="\"/
usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../readline/
.. -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber  -I.
/gnulib -Ignulib  -DMI_OUT=1  -Wall -Wdeclaration-after-statement -Wpointer-arit
h -Wformat-nonliteral -Wno-unused -Wno-switch -Wno-char-subscripts -Wno-format
-c -o ser-base.o -MT ser-base.o -MMD -MP -MF .deps/ser-base.Tpo ser-base.c
In file included from gdb_select.h:30,
                 from ser-base.c:26:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:95:2: wa
rning: #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_select.h:30,
                 from ser-base.c:26:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:101: err
or: redefinition of `struct timeval'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:611: err
or: 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:611: err
or: 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:614: err
or: 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:614: err
or: 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/d/Install/GDB/gdb-7.0/gdb-7.0/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/cygdrive/d/Install/GDB/gdb-7.0/gdb-7.0'
make: *** [all] Error 2

WBR, 
Dmitry


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-08 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-07 16:30 Build GDB 7.0 with Cygwin -mno-cygwin option Dmitry Smirnov
2009-10-07 16:58 ` Joel Brobecker
2009-10-07 17:12   ` Joel Brobecker
2009-10-07 17:14   ` Pedro Alves
2009-10-08 11:01     ` Re[2]: " Dmitry Smirnov
2009-10-08 21:33       ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox