From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id EDDFF3858C52 for ; Fri, 15 Sep 2023 21:00:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDDFF3858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 2A4173037D1B; Fri, 15 Sep 2023 23:00:56 +0200 (CEST) Date: Fri, 15 Sep 2023 23:00:56 +0200 From: Mark Wielaard To: "McAllister, Colin" Cc: Ulf Hermann , "elfutils-devel@sourceware.org" Subject: Re: Building Elfutils with Mingw32 Message-ID: <20230915210056.GA5558@gnu.wildebeest.org> References: <05996b4f-8464-ffdf-8629-c1e94aa73052@qt.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-3028.5 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Colin, Hi Ulf, On Thu, Sep 14, 2023 at 07:44:08PM +0000, McAllister, Colin via Elfutils-devel wrote: > I did see that there were quite a few patches sent to the ML toward the end of 2022 that attempted to add Windows support. > https://sourceware.org/pipermail/elfutils-devel/2022q4/005449.html > https://sourceware.org/pipermail/elfutils-devel/2022q4/005667.html > > It looks like some of the patches were merged, but quite a few were never applied. I'm wondering if it'd be possible to finish adding support upstream such that a fork would no longer be needed? > > I would be happy to help contribute however I can. Thanks. It would be nice if elfutils was a bit more portable. The trouble is that not many people have that much experience with Windows. At least I have none. When reviewing these patches I always get really confused. And I don't fully understand the use case. Given that Windows doesn't even use ELF why would you even want elfutils on such a platform? And why aren't people simply using cygwin for such a port. Without it you don't even have a normal POSIX like system. And when using mingw do people still use a normal gcc compiler (to cross build)? Or is the goal to build with some alternative windows compiler? But all that really is my confusion. It does make reviewing these change proposals really hard though. Because I often don't know whether some abstraction is really needed. And I do worry about unnecessary abstractions/ifdefs/code because it is unclear how to maintain them long term if I am not sure why. But if there is consensus (among the Windows hackers) about using one common target for the port then maybe we should have an official branch on sourceware? Also there is a mingw container setup on builder.sourceware.org which we might use for doing CI on the port? https://sourceware.org/cgit/builder/tree/builder/containers/Containerfile-fedora-mingw Thanks, Mark