From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.bugs Subject: bug#39118: Segfault while building on 64-bit Cygwin Date: Sun, 16 Feb 2020 18:24:52 -0500 Message-ID: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> <20200216232334.GA2448000@spikycactus.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000994943059eb9bf12" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="67784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39118@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , guile-devel@gnu.org, Charles Stanhope To: Mike Gran Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Feb 17 00:26:09 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 1j3TIe-000HWJ-Vn for guile-bugs@m.gmane-mx.org; Mon, 17 Feb 2020 00:26:09 +0100 Original-Received: from localhost ([::1]:37862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TIe-0001ie-1v for guile-bugs@m.gmane-mx.org; Sun, 16 Feb 2020 18:26:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56742) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TIZ-0001iW-Cb for bug-guile@gnu.org; Sun, 16 Feb 2020 18:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3TIY-00011H-9M for bug-guile@gnu.org; Sun, 16 Feb 2020 18:26:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3TIY-000119-6Y for bug-guile@gnu.org; Sun, 16 Feb 2020 18:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3TIY-0002Sj-3T for bug-guile@gnu.org; Sun, 16 Feb 2020 18:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: John Cowan Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 16 Feb 2020 23:26: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.15818955129398 (code B ref 39118); Sun, 16 Feb 2020 23:26:02 +0000 Original-Received: (at 39118) by debbugs.gnu.org; 16 Feb 2020 23:25:12 +0000 Original-Received: from localhost ([127.0.0.1]:37858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3THk-0002RW-2I for submit@debbugs.gnu.org; Sun, 16 Feb 2020 18:25:12 -0500 Original-Received: from mail-qt1-f173.google.com ([209.85.160.173]:41235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3THh-0002RC-N0 for 39118@debbugs.gnu.org; Sun, 16 Feb 2020 18:25:10 -0500 Original-Received: by mail-qt1-f173.google.com with SMTP id l21so10866345qtr.8 for <39118@debbugs.gnu.org>; Sun, 16 Feb 2020 15:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZdbLz1OK6TN9uWcddVlYH/lh8P4qnNapeo2TLMR8GL4=; b=WUDBSCncrlhfP5UlJ1Qi3HYZiYZ+UhBleRjjOX6yAzkVVnlP+xKfVMuJYLSIDsQcNB OHcJn0wpznYO2979ozLQo7bHtuQgpShsuLn9IL/2dfPPoFf59POHB7NMKTxMxIZHeZ31 AghnF6owuvbO9Oeerfj9i3o7Dg7htQ1E/BCdiBYzCPPoYX8hen2CEmCNJfzyy1FBBtl1 VzWmcKmd5InVPMqf3eE3qroxrlkp2CmtINBtU0TuTADGt4DaQPgV18Mj5reVm5O5YmIN X8LJn4jfVKvNLVY/PlwuaZ/wcsX/NcaINB0eimhaSe30sLETUrE+rCA3hgM5GnHLDDce xKfA== 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=ZdbLz1OK6TN9uWcddVlYH/lh8P4qnNapeo2TLMR8GL4=; b=nPHyVAvR9I/hnxfIghh0Qva4xmt2g6qqzJhbKvnKG2QqLsZxMejH11TVJjUjfNNY5w S94N9x3aFmi8ni3kYraWlxzr4FLhAN2U/moo8ZFVweKLavaLFTVepFO3U/TqjePxeZwg sXuEw0j+rR02FjT4IJMgupbhzh37j68PUlMTEubJ0eC9JygxyNBxV1Ay6oS4yjV+kN8n 2ju7VjZ3SCL/ta6W95VPp/6/fk7nzK8tcZudYoiJQ+actBgnzjctI7yn5Ev5NJxgcmk7 8dniNPqyAc2UNpFsZGLnkx8Vgkf3epqGLX4spyOjeFcH6KVUoL+32YBpEj7OkPLvzWf+ ETPw== X-Gm-Message-State: APjAAAXG0UJ3+dhDxzVfeLGkqc8fN/1wzn6wCe2rgPnduLw3EXNRB0vF TEpJvEPUy2xkodDim3w9LZmNvQ99p6QlsDZu4BJBJA== X-Google-Smtp-Source: APXvYqwq5V24KUE87mosgVHvRIzbCmjQATbhk9Yrq670ngtZNLp2i6heaJTGfIRDNop+/rhAZVejxp3qa/EnMwiM3Mk= X-Received: by 2002:ac8:5410:: with SMTP id b16mr10939281qtq.45.1581895504175; Sun, 16 Feb 2020 15:25:04 -0800 (PST) In-Reply-To: <20200216232334.GA2448000@spikycactus.com> 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:9583 Archived-At: --000000000000994943059eb9bf12 Content-Type: text/plain; charset="UTF-8" Excellent, and thank you all! I've been WIndowsless for a few weeks, but that should change again soon. On Sun, Feb 16, 2020 at 6:23 PM Mike Gran wrote: > 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 > --000000000000994943059eb9bf12 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Excellent, and thank you all!=C2=A0 I've been WIndowsl= ess for a few weeks, but that should change again soon.

On Sun, Feb 16, 2020= at 6:23 PM Mike Gran <spk121@yahoo.= com> wrote:
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 fe= w
> 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<= br> > 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 ca= se,
> 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.=C2=A0 All tests pass except strptime in French, and the absence<= br> of crypt.=C2=A0 This is a 64-bit build.

-Mike Gran
--000000000000994943059eb9bf12--