From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24716 invoked by alias); 7 Oct 2009 16:30:16 -0000 Received: (qmail 24697 invoked by uid 22791); 7 Oct 2009 16:30:13 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,SARE_FREE_WEBM_RuMail,SPF_PASS X-Spam-Check-By: sourceware.org Received: from f13.mail.ru (HELO f13.mail.ru) (217.69.129.70) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 16:30:08 +0000 Received: from mail by f13.mail.ru with local id 1MvZOs-00075i-00 for gdb@sourceware.org; Wed, 07 Oct 2009 20:30:02 +0400 Received: from [212.92.145.7] by win.mail.ru with HTTP; Wed, 07 Oct 2009 20:30:02 +0400 From: Dmitry Smirnov To: gdb@sourceware.org Subject: Build GDB 7.0 with Cygwin -mno-cygwin option. Mime-Version: 1.0 Date: Wed, 07 Oct 2009 16:30:00 -0000 X-Mru-Data: 3471:1:1:79:79:0 Reply-To: Dmitry Smirnov Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00131.txt.bz2 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