From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32312 invoked by alias); 15 Jan 2015 04:46:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32298 invoked by uid 89); 15 Jan 2015 04:46:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 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 (AES256-SHA encrypted) ESMTPS; Thu, 15 Jan 2015 04:46:10 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1D4C4116618; Wed, 14 Jan 2015 23:46:09 -0500 (EST) 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 152S1C1SAbF8; Wed, 14 Jan 2015 23:46:09 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id AAA74116615; Wed, 14 Jan 2015 23:46:08 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 0A0C848E8B; Thu, 15 Jan 2015 08:46:05 +0400 (RET) Date: Thu, 15 Jan 2015 04:46:00 -0000 From: Joel Brobecker To: Zach Welch Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix gdbserver build with x86_64-w64-mingw32 -m32 Message-ID: <20150115044605.GO8167@adacore.com> References: <1420825778-8946-1-git-send-email-zwelch@codesourcery.com> <20150110041728.GQ5445@adacore.com> <54B40A39.5000106@codesourcery.com> <20150113091706.GB8167@adacore.com> <54B54EF2.3050901@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54B54EF2.3050901@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-01/txt/msg00404.txt.bz2 > Thus, the primary host for which I am building gdbserver is > x86_64-w64-mingw32 (--host=x86_64-w64-mingw32), but I am also using the > x86_64-w64-mingw32 toolchain to build a multilib for 32-bit windows > (--host=x86_64-w64-mingw32 CFLAGS="-m32") as a secondary host. gdbserver > runs on the target (and is not itself a cross compiler), so --host == > --target in both cases. > > The primary host gdbserver build (--host=x86_64-w64-mingw32) works, but > the secondary host build (--host=x86_64-w64-mingw32 CFLAGS="-m32") fails > without my provided patch. OK, IIUC, I think you want to use a 32bit mingw32 --host triplet in this case. The fact that the OS you'll be running gdbserver on is 64bit does matter, your gdbserver still going to be a 32bit executable, and therefore should be configured as such. -- Joel