From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: [EXT] relocatable guile on windows Date: Thu, 8 Dec 2022 08:41:28 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29355"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: "Thompson, David" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Dec 08 17:42:23 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3JyY-0007VI-T8 for guile-user@m.gmane-mx.org; Thu, 08 Dec 2022 17:42:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Jxu-0007vf-HQ; Thu, 08 Dec 2022 11:41:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3Jxt-0007vW-LE for guile-user@gnu.org; Thu, 08 Dec 2022 11:41:41 -0500 Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3Jxr-0006bK-LT for guile-user@gnu.org; Thu, 08 Dec 2022 11:41:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670517695; bh=ML+3vGn0LG/Sr9dAKUaK6RcMuwZPlbwfMmLXB+EnhKk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=QHK6EluzLqzETdhbeIp1HqE4WxEPzqk3ZS5d4jPqljjpqITFJa+lwqZUQN0TxwDuFi1qO+53kCIwxzsDepVImPu1dNgkOduKGbMVj63Ak0t5UpYO+fcqc2dqS6eiwMVzLrumgbFxWZOYmFz5lHm8JyiYAUUCkZIkKW2pd/l5bWUGxNFUXL0qNY8x/+sgQxBdh7YB48Tu5a/nr6bpiEyluPs0b+eCHX/GEksgAaujxJfc32XIyK46UB6J8ChTrkZ5+nmHCQljfi8aQeA4OjhDzAIky44vLYxf3aGKyseRuAGTI6SVxF3sr1cp4DIwUjEqlESyru92YIqWwGdNBbIrOw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1670517695; bh=L5HLkWGtpb1Spkb67o+dmWRyUXFvUSUhmnOisGRVtTF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=dBAnRXO4h3DFrR4wq1Si0hdAIGjXElW/sZ242p1uzXlKMtMGb1egkF+PtmiGQeChBk/uZwwv3KGnfICK26ZAm/PNQ8NY4chvaJtl+QtuFz+3+i1BuDX6Yun2nnz8/u9GRhRHyYpYpyO6d3WJcqpcMtV4FJtBR+Yn1/XW55pWb6PMY4xv4WoxP+KmR1SQ6nsGY1fakiCal02AJUfUnhlJCQ6Aj5lSg1LzwGv+uqyNOJx+IYi02X0SaTLlHEfIA/X9/jfcmgn1LvH30gntS0rbjE55cIjD5jqiHk4/A8tuXWPdzv7/DvfKOBqaT4bL4qS7/YPOS26MQrtMCNVJsx7nTQ== X-YMail-OSG: IJMLUfoVM1lI9UBLBxkkHm0_CiFx9SYhxrLjdyJ2qCz0g7f16hURDIOknjlkuQT x484ij96DFJ9UGtS5UjRoyNel0sVQnT5cymX5LDHVP0bDStta241VMfN9vRdecWvPMjDbXA1s0VQ 10tT9iF8JioPwFjvRQSEFtZuQj4PMhgC0BnwCMhHgMgignHhQLoeJC9qjxl46lChubCS9zx2QfZ. NBUSCqvvW9WYUS0PK7Y4Y9MneFWwjTG4hidCZ9q1h7gz8S_2niArDaCYVwohZuqc2v7DdZiBUQN9 6GHoY3IrM5A113j3jQJfK.NfpXtO9zgq8f8d08w7_bm8GoIxOE3w6mUyQ2Fm57j7iaHSm8fpPByv D_ZwYuuuXU0U2s4rqosylHTjbd9SLM5_pyXARtA9W5TkovxYpQD00ofcjtfWlpJ0e775qPaRgki5 .e2h3uBapOFF5L__k1pwA4WbhRXydYi69NzuI.CihjwxQA7Hw2..94K81j2J0NxKgZXkKSfojnEM HiX6QxI.xz4zVVzLtA._G5V.CCnV46Mze90duYQky4e1R98cfkurkIFWzG0gWh8l8ZvOl2yHDau4 AKHxLxf_yFXh1uZv.khLjXSJtQ_lbnkEZxfI5YABxkRwXYUgtjxsbpQ_x_gmzTxwDxm9QEC_6Xni h534woS_fHy8SObNUUCu4VAS8AhjW5GLkeXWQdAcDcEiBsMd6nimL8el4MolA3i1yi17Vf0NrEZD Nh4PWdqc.VdpD7XwGfHhza24.aigrmctKOopV0hdtyzNgHk49q2Zm_hOjhZCa7.iCXfDQOnPf1L3 Q20oSdvnDrMIkDpKI072MZo.ZukTi5glq7UssiXZif X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Thu, 8 Dec 2022 16:41:35 +0000 Original-Received: by hermes--production-ne1-7b69748c4d-nmpxj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e3077add8e3ea140c5f4e78630e0e5ec; Thu, 08 Dec 2022 16:41:31 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.20926 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=74.6.134.123; envelope-from=spk121@yahoo.com; helo=sonic315-13.consmr.mail.bf2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18768 Archived-At: On Wed, Dec 07, 2022 at 08:55:10AM -0500, Thompson, David wrote: > Hi Mike, > > On Sat, Dec 3, 2022 at 9:49 PM Mike Gran wrote: > > > It would be really great if we could organize a bit around upstreaming > patches for proper Windows support and come up with some documentation > with official recommendations for how to build for Windows. I never > know what the best approach is: cygwin? mingw? native build (more work > than the other two)? A lot of other Scheme implementations run on > Windows, so Guile should, too. Cygwin is basically and emulated POSIX layer using a C library (newlib) that is fairly similar to GNU libc. Guile builds and works fine with Cygwin already. The disadvange to Cygwin is that graphical programs in cygwin require an X server, so they are a bit slow to run and quite difficult to package up without requiring a downstream user to get all of Cygwin. MinGW is basically GCC plus a C library that is definitely not POSIX: UCRT or MSVCRT, the native Windows libraries. The result is a native Windows app. It comes with just enough of a shell to run autotools. Native windows using Microsoft's C compiler is always tough because autotools doesn't support it without extreme gymnastics. It works better for CMake programs. I haven't attempted it. It has some quirks like the lack of #include_next that gnulib depends on. The long integer patch is the most important and most disruptive if we want 64-bit windows support. We have to start there, and everything descends from that. I'm not sure how to gather support for that. Regards, Mike Gran