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.devel Subject: Re: 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="64280"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Wingo , 39118@debbugs.gnu.org, =?UTF-8?Q?Ludovic_Court=C3=A8s?= , guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Feb 17 00:25:19 2020 Return-path: Envelope-to: guile-devel@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 1j3THr-000Gcg-Bh for guile-devel@m.gmane-mx.org; Mon, 17 Feb 2020 00:25:19 +0100 Original-Received: from localhost ([::1]:37848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3THq-0001OK-Dy for guile-devel@m.gmane-mx.org; Sun, 16 Feb 2020 18:25:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56687) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3THe-0001OA-OM for guile-devel@gnu.org; Sun, 16 Feb 2020 18:25:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3THd-00006e-Hd for guile-devel@gnu.org; Sun, 16 Feb 2020 18:25:06 -0500 Original-Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]:46355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3THd-00005V-4w for guile-devel@gnu.org; Sun, 16 Feb 2020 18:25:05 -0500 Original-Received: by mail-qt1-x831.google.com with SMTP id i14so3661138qtv.13 for ; Sun, 16 Feb 2020 15:25:04 -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=oy+ehwgXEBrbbF7knq+2M8Y/zgoXJbv0soz6qIuSVLeM31XJFpxOh5l3ZMbSgu38ft ZLolDUky3FszxHdFSqSWQetXcZK4VGKZkr2/xFDvdYx6VJvaLuLUHNT15sJbwbEYtkv2 bXvZjjlvjiSMpfUwQvpiV0f+YcQrCPPwuwxUaKmgMKfnD3WcBj+XilBDr4y43BGV7Cs0 ul8zd2DN9FAcT7K0jIYyWFnby1cRyURQsnG6iYv7Pnyj9nfol/s4X//T5fXRWAfe/+df IjkfOMcVF8OorClFUdniZDs/QLDtMGOTpRp3cd0/IXPt8WRCpLrtQgx6YMqXxQtEqPi4 RCYw== X-Gm-Message-State: APjAAAWAH8Hq///s2h0CRdI/7vpZ4VY4SmbTN5cjjFqaDtrxG6DD6QS2 CvdUZOsapIM/NsU3bCuS3Eu4iFC0Wy3vpK5wPbhlmw== 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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::831 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20419 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--