From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mike Gran via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" Newsgroups: gmane.lisp.guile.bugs Subject: bug#39118: Segfault while building on 64-bit Cygwin Date: Sun, 16 Feb 2020 15:23:34 -0800 Message-ID: <20200216232334.GA2448000__342.640157190033$1581895454$gmane$org@spikycactus.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> Reply-To: Mike Gran Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="58785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Wingo , 39118@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , John Cowan , guile-devel@gnu.org To: Charles Stanhope Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Feb 17 00:24:10 2020 Return-path: Envelope-to: guile-bugs@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 1j3TGj-000FAX-Sz for guile-bugs@m.gmane-mx.org; Mon, 17 Feb 2020 00:24:09 +0100 Original-Received: from localhost ([::1]:37842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TGi-00015m-Uh for guile-bugs@m.gmane-mx.org; Sun, 16 Feb 2020 18:24:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56552) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TGd-00013W-LS for bug-guile@gnu.org; Sun, 16 Feb 2020 18:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3TGc-0007bH-Oz for bug-guile@gnu.org; Sun, 16 Feb 2020 18:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60114) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3TGc-0007b0-MH for bug-guile@gnu.org; Sun, 16 Feb 2020 18:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3TGc-0002PV-Im for bug-guile@gnu.org; Sun, 16 Feb 2020 18:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Gran Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 16 Feb 2020 23:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39118 X-GNU-PR-Package: guile Original-Received: via spool by 39118-submit@debbugs.gnu.org id=B39118.15818954339242 (code B ref 39118); Sun, 16 Feb 2020 23:24:02 +0000 Original-Received: (at 39118) by debbugs.gnu.org; 16 Feb 2020 23:23:53 +0000 Original-Received: from localhost ([127.0.0.1]:37853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3TGS-0002Ov-MJ for submit@debbugs.gnu.org; Sun, 16 Feb 2020 18:23:52 -0500 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:43947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3TGQ-0002OS-PC for 39118@debbugs.gnu.org; Sun, 16 Feb 2020 18:23:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1581895425; bh=0G9YEI9qiSTMyGBLJu6c/E9K+yjE8EnBpFoqKxbx1B8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=J8xfdnRg4vn2Z+SBSQbO/LSSluq0jowjHqgt5nYFPhu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JRBW99Mng0Ukuqt0ajdYrF_DoJBqEpZhM0hXRhS9B1MKkUZpfQ1.__Xt_9cXMWZ1f 3Dz46qnSdtfcKGehfvgkKuEzxFzm6V_I3neLx3VliY Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sun, 16 Feb 2020 23:23:45 +0000 Original-Received: by smtp420.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID da425b0e979e8cb4e9b6cfdccc49845f; Sun, 16 Feb 2020 23:23:40 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.15199 hermes Apache-HttpAsyncClient/4.1.4 (Java/1.8.0_181) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9582 Archived-At: On Fri, Feb 14, 2020 at 09:46:04AM -0800, Charles Stanhope wrote: > Andy, I don't know if you'd want to continue this here or on > lightening's gitlab page, but I looked into this a little bit a few > minutes here and there this past weeek. The x86 "fast-call" calling > convention used on Windows x64[0] and shared by Cygwin[1] requires > that the caller reserve 32 bytes of memory on the stack for the callee > to spill the register parameters (even if the callee takes fewer than > four parameters). I think lightening is currently missing that for the > x64 case for Cygwin. > > To test the idea, I made a small modification (patch attached) that is > *not* intended as a solution as it doesn't work for the general case, > but it does allow the tests to pass on Cygwin 64. I can confirm that Charles's patch, plus another one line patch to define CPU_SETSIZE, is enough to get Guile 3.0.x to build and run on my box. All tests pass except strptime in French, and the absence of crypt. This is a 64-bit build. -Mike Gran