From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by sourceware.org (Postfix) with ESMTPS id B1C0C3851C31 for ; Wed, 22 Jul 2020 17:48:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B1C0C3851C31 Received: by mail-qt1-x841.google.com with SMTP id d27so2461593qtg.4 for ; Wed, 22 Jul 2020 10:48:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+VfTp15FzVjPM2S7nORiakcxxKrKwqUa9hJj9Wes3Sc=; b=IOxDhGWXgAn2ZRMsMEbR2KdlQRuiQs/tLNse1MM7CgrMly8KSD/NYQIqyBxXNrr3oe +d010RWRM6B+j92qhSAeQ3zUvDEggy5BFMlwNvmDC6l3nZ5j+/fNagE9BYYa/9W1qx7I SDQPrvkCrrVoHbnzeQ6I3GEMqsdIm5ot4FnGs0pto2pwlwS5s4s8AHYojBUHsqk9LSUa DEB4tkJV6HdrOGiFPxIy35fxiFScEk0bv2uT1dBBhQeMKaE/ZpIVrXOTkt8SzqflFEth bH3yHDUNm5BFKVCwYHj4pg7OOF9/Uw65jxOT67mu3+95lh8G5mONgB3yY5ZtbcnuKYdj kXTA== X-Gm-Message-State: AOAM530M4YSrOMNiNodDWCor9UqdCprYwGaE+Szw6pRYnzmwKM8NQBXY BHURatLW+xiXjAM08mhxGa2cUG7OP/djfQfGI5wKxWslHbA= X-Google-Smtp-Source: ABdhPJzCv0pIitaumKNuGb12+rTftfNY4sejYUiYFWFpbqXQsNQazraNY1m4QnUXzHXwGl8y9LEeHm4yi2xFEO8fbrI= X-Received: by 2002:ac8:6c5d:: with SMTP id z29mr521653qtu.244.1595440092999; Wed, 22 Jul 2020 10:48:12 -0700 (PDT) MIME-Version: 1.0 References: <83a6zrfq7l.fsf@gnu.org> In-Reply-To: <83a6zrfq7l.fsf@gnu.org> From: Christian Biesinger Date: Wed, 22 Jul 2020 12:47:36 -0500 Message-ID: Subject: Re: Cross-compiling a MinGW GDB To: Eli Zaretskii Cc: gdb-patches , Keith Marshall Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.5 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 17:48:15 -0000 On Wed, Jul 22, 2020 at 11:51 AM Eli Zaretskii wrote: > > Does anyone build their MinGW GDB by cross-compiling it on GNU/Linux? > If so, could you please share your experience with specifying the > Python tree during the build, such that the built GDB will be able to > use Python features on the target Windows systems? > > I'm asking because Kieth Marshall is trying to build a recent GDB this > way, to update the binaries offered by the MinGW site, and he bumps > into all kinds of annoying problems, see, for example, the discussion > starting here: > > https://osdn.net/projects/mingw/lists/archive/users/2020-July/000607.html > > If someone could provide practical advice how to avoid these > annoyances, It would probably make Keith's job much more pleasant and > less time-consuming. I haven't done this myself but I am aware of two things: - https://sourceware.org/gdb/wiki/CrossCompilingWithPythonSupport - The patch discussed at https://sourceware.org/legacy-ml/gdb-patches/2012-12/msg00754.html claims to improve cross-compiling with python (Debian used to carry that patch, though they've since dropped it) Christian