This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Build GDB 7.0 with Cygwin -mno-cygwin option.
- From: Dmitry Smirnov <divis1969 at mail dot ru>
- To: gdb at sourceware dot org
- Date: Wed, 07 Oct 2009 20:30:02 +0400
- Subject: Build GDB 7.0 with Cygwin -mno-cygwin option.
- Reply-to: Dmitry Smirnov <divis1969 at mail dot ru>
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