From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19850 invoked by alias); 8 Oct 2009 21:33:37 -0000 Received: (qmail 19841 invoked by uid 22791); 8 Oct 2009 21:33:36 -0000 X-Spam-Check-By: sourceware.org Received: from pool-173-76-48-2.bstnma.east.verizon.net (HELO cgf.cx) (173.76.48.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Oct 2009 21:33:32 +0000 Received: from ednor.cgf.cx (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 2B3663B0002; Thu, 8 Oct 2009 17:33:23 -0400 (EDT) Received: by ednor.cgf.cx (Postfix, from userid 201) id 23DAB2B352; Thu, 8 Oct 2009 17:33:23 -0400 (EDT) Date: Thu, 08 Oct 2009 21:33:00 -0000 From: Christopher Faylor To: Dmitry Smirnov , Joel Brobecker , gdb@sourceware.org, Pedro Alves Subject: Re: Build GDB 7.0 with Cygwin -mno-cygwin option. Message-ID: <20091008213323.GA2170@ednor.casa.cgf.cx> Mail-Followup-To: Dmitry Smirnov , Joel Brobecker , gdb@sourceware.org, Pedro Alves References: <200910071814.01611.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00166.txt.bz2 On Thu, Oct 08, 2009 at 03:01:27PM +0400, Dmitry Smirnov wrote: >>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=i686-pc-mingw32 _and_ CC="gcc >>-mno-cygwin". A real mingw gcc would be better. > >Thank you, Pedro, this works well. I had used ./configure --with-x=no >--disable-tui --build=i686-pc-mingw32 CC="gcc -mno-cygwin" A heads up: The latest C compiler for Cygwin no longer supports the -mno-cygwin option. It just generates too much confusion. We will have a MinGW "cross compiler" at some point which should take the place of that option but it is not available yet. cgf