From patchwork Tue Nov 17 18:39:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Matthias_Wei=C3=9Fer?= X-Patchwork-Id: 545725 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 74829141420 for ; Wed, 18 Nov 2015 05:39:28 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=qKiaKUmX; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; q=dns; s=default; b= aMVP5i7qPUklOLq31kBs9bnasvoPuHyeN/PYLWegP6hRrSzdsj0PX8oyRX/++MbC N3iusYof75sv68obqjHaGvrdFTcUnTImNth3HEqGigjOU4Kqqvq6YGi4ED7E5NhZ lyMy1d0M0+yR2PmcYv8egH6sDJyctDABw2Bj3IOQHTI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; s=default; bh=fzBHk JWPHLSHzILTak+oBYfk9LE=; b=qKiaKUmXuonKpG7tW/QqixiFXm8VXw1d6Bj// mgU89KBzowqyJjFIKjl2CcdXBvoC7eLDyWrYK+YJ9z9/+m47ZW7Tmzszp3x5pkCp tEpMg7hPBD0uw3l+3p0OKIUqA+z1UbkDhnG5awL2cFCqlWFBqzD49UQlYxgWthqu aPfh5I= Received: (qmail 87723 invoked by alias); 17 Nov 2015 18:39:21 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 87711 invoked by uid 89); 17 Nov 2015 18:39:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 17 Nov 2015 18:39:19 +0000 Received: by wmdw130 with SMTP id w130so167782060wmd.0 for ; Tue, 17 Nov 2015 10:39:16 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.28.138.148 with SMTP id m142mr4613308wmd.2.1447785556543; Tue, 17 Nov 2015 10:39:16 -0800 (PST) Received: by 10.27.22.199 with HTTP; Tue, 17 Nov 2015 10:39:16 -0800 (PST) In-Reply-To: <20151117161957.GA23681@hp2000d> References: <20151117135246.GA7570@hp2000d> <20151117161957.GA23681@hp2000d> Date: Tue, 17 Nov 2015 19:39:16 +0100 Message-ID: Subject: Re: Native GDB for i686-w64-mingw32 toolchain From: =?UTF-8?Q?Matthias_Wei=C3=9Fer?= To: Bryan Hundven Cc: "crossgcc@sourceware.org" , Thomas.Tamandl@wittmann-group.com X-IsSubscribed: yes 2015-11-17 17:19 GMT+01:00 Bryan Hundven : > The build failure is happening with native-gdb, not cross-gdb, correct? Right. > So native=build, not target or host. Wrong. It seems to me that "Native gdb" in crosstools-ng context means a gdb that runs on the target system. See also the help text in config/debug/gdb.in.native "Build and install a native gdb for the target, to run on the target." And actually this step creates a file named gdb.exe which makes me even more confident that this is a gdb to run on the target ;-) Where cross gdb means "Build and install a cross-gdb for the target, to run on host." > Since it is on the build system, the build system should provide > libexpat development files. So, as it is a gdb that should run on the target it needs an expat library build for the target. And crosstools-ng builds and installs such a variant. But gdb configure fails to find it. I got a private message from Thomas Tamandl which lead me to a solution: If you think this is a working solution (for me it is) feel free to merge it. The only problem left is then that striping the gdbserver executable fails in internals.sh as its name contains .exe > P.S. Please don't top post. Outlook disease ;-) Sorry. Regards Matthias --- For unsubscribe information see http://sourceware.org/lists.html#faq diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh index c025458..e577e33 --- a/scripts/build/debug/300-gdb.sh +++ b/scripts/build/debug/300-gdb.sh @@ -198,6 +198,7 @@ do_debug_gdb_build() { --target=${CT_TARGET} \ --prefix=/usr \ --with-build-sysroot="${CT_SYSROOT_DIR}" \ + --with-libexpat-prefix="${CT_SYSROOT_DIR}/usr" \ --without-uiout \ --disable-tui \ --disable-gdbtk \