From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1742 invoked by alias); 7 Oct 2009 17:14:11 -0000 Received: (qmail 1729 invoked by uid 22791); 7 Oct 2009 17:14:10 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Oct 2009 17:14:05 +0000 Received: (qmail 18462 invoked from network); 7 Oct 2009 17:14:03 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 7 Oct 2009 17:14:03 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Build GDB 7.0 with Cygwin -mno-cygwin option. Date: Wed, 07 Oct 2009 17:14:00 -0000 User-Agent: KMail/1.9.10 Cc: Joel Brobecker , Dmitry Smirnov References: <20091007165818.GG16338@adacore.com> In-Reply-To: <20091007165818.GG16338@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200910071814.01611.pedro@codesourcery.com> 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/msg00134.txt.bz2 On Wednesday 07 October 2009 17:58:18, Joel Brobecker wrote: > We build GDB under the same conditions all the time without any problem. > But our compiler is based on GCC 4.3.3, so you might want to try upgrading > your compiler. =A0Just a guess. Joel tells me on IRC that he condition he refers to, is the --build=3D... bit, not the use of -mno-cygwin. On Wednesday 07 October 2009 17:30:02, Dmitry Smirnov wrote: > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:1= 01: err > or: redefinition of `struct timeval' > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:6= 11: 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:6= 11: 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:6= 14: err > or: conflicting types for 'gethostname' Cygwin's gcc is pulling Cygwin headers, while the build is assuming a mingw= host. Things are expected to break this way. I would assume at least you'd need --host,build=3Di686-pc-mingw32 _and_ CC=3D"gcc -mno-cygwin". A real mingw = gcc would be better. --=20 Pedro Alves