From: Dmitry Smirnov <divis1969@mail.ru>
To: gdb@sourceware.org
Subject: Build GDB 7.0 with Cygwin -mno-cygwin option.
Date: Wed, 07 Oct 2009 16:30:00 -0000 [thread overview]
Message-ID: <E1MvZOs-00075i-00.divis1969-mail-ru@f13.mail.ru> (raw)
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
next reply other threads:[~2009-10-07 16:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 16:30 Dmitry Smirnov [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1MvZOs-00075i-00.divis1969-mail-ru@f13.mail.ru \
--to=divis1969@mail.ru \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox