From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37051 invoked by alias); 29 Aug 2016 07:47:46 -0000 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 Received: (qmail 37037 invoked by uid 89); 29 Aug 2016 07:47:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:802, debugger, our X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Aug 2016 07:47:44 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 99A41116D94; Mon, 29 Aug 2016 03:47:42 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4mTUbe5G2iWZ; Mon, 29 Aug 2016 03:47:42 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 657A9116955; Mon, 29 Aug 2016 03:47:42 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 0724542910; Mon, 29 Aug 2016 09:47:40 +0200 (CEST) Date: Mon, 29 Aug 2016 07:47:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: Glenn Burkhardt , gdb@sourceware.org Subject: Re: MinGW build target Message-ID: <20160829074739.GA4547@adacore.com> References: <5772c318-60ea-7728-5fd2-4706e38f46f8@gmail.com> <83vaykbvgv.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83vaykbvgv.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2016-08/txt/msg00055.txt.bz2 > > What's the correct build target for MinGW-w64? I tried using > > > > --build=x86_64-w64-mingw64 > > > > with gdb-7.11.1 and x86_64-6.1.0-release-posix-seh-rt_v5-rev0, and > > it's trying to compile ser-unix.c. That doesn't seem right, and, of > > course, MinGW doesn't include . > > Why do you need an explicit argument? Doesn't config.guess guess > correctly? If not, maybe your uname needs and update/upgrade? To answer the question of "why" - on Windows, the config.guess output is not always what you want, as it depends on how you execute that script. In our case, we build using a cygwin environment, so config.guess returns a cygwin triplet. So, when you actually want to build a MinGW debugger, you have to pass the MinGW triplet explicitly. -- Joel