From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: Segfault while building on 64-bit Cygwin Date: Sun, 16 Feb 2020 15:23:34 -0800 Message-ID: <20200216232334.GA2448000@spikycactus.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> <87wo90kmw9.fsf@pobox.com> 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="58070"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Wingo , 39118@debbugs.gnu.org, Ludovic =?iso-8859-1?Q?Court=E8s?= , John Cowan , guile-devel@gnu.org To: Charles Stanhope Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Mon Feb 17 00:24:02 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 1j3TGb-000EzA-6I for guile-devel@m.gmane-mx.org; Mon, 17 Feb 2020 00:24:01 +0100 Original-Received: from localhost ([::1]:37824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TGa-0000fy-7B for guile-devel@m.gmane-mx.org; Sun, 16 Feb 2020 18:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56457) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3TGN-0000fl-OQ for guile-devel@gnu.org; Sun, 16 Feb 2020 18:23:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3TGM-0007L4-Nv for guile-devel@gnu.org; Sun, 16 Feb 2020 18:23:47 -0500 Original-Received: from sonic310-25.consmr.mail.ne1.yahoo.com ([66.163.186.206]:41386) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3TGM-0007JW-Ja for guile-devel@gnu.org; Sun, 16 Feb 2020 18:23:46 -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/LSSluq0jowjHqgt5nYFPhu7dUY9aNpblqYFNqP5SogqTjniHm3daKt5NfSF8OP1jING2qRPB2TriniTMTdN8VXcFcwYgQ1EYdNVJCGF3LSAm5ZRxiknJ/b1dR/6LyIsUjQyyNC1OV+DuMJ7Kt1iXcWInO2d/4Ccqpu1MYQ0z20Cahz15Vr+ei1wJa42R147D5GoK+pb1viEGhuYcP5ib2fB0zRTnDWXQw7Ye7p2m5SrfOkxbiPFrYliwhLVD7iIdSik/tNSfkz3DleZf/9fQXLQ1Hs87zqkNLwbNytJ2GDFyw5dFad9uUABSZ1er8gpFA== X-YMail-OSG: ngNv9icVM1meioG9.t8w645vdTDjUZCk.Nx6hJ8QxALzKPZSrXJObN6Rr6uvcMy jBMVloBw3cVXT7buE4GHNUI._niYkphug4qM2NH3Kg_msEfKEhp6OAB.C89sXJng8TtmC68KwPXx 5_12YLoa1ekfZTWY78uV9_mKboYZxONWSUVJ59Cxg70qW.Ez1gjXu6PXGVDJ.b1Hkxsa5RVujIe4 5T_KU8.PZlBC8QuCMv1ER5Kq0p.K8ljILoZZc2m2j9lqdFZB8BboUW5ncB3CEsgU8vJQDDwUcOuy qp90DW77laTlWvgYqVf8eCDo14vPxjfLFlIm9Yu.AIt5daR4oL7wpAi6oGFVUK8GRmt6eHH6axB4 Ivx4daOVo2MNeJorPdLS_I3z_F3CJMyfohairn_ugmtGrdu7_xgXFhUmr7HgvqSn.Nwr.gMKtN4e PCSjXXCYIPvyv9uvQGYlGj1zGkIB9b3DrPrXeNnSXbhi_bljwrUQ5ZJlkt.Gzz2T_59XBKyePfab Q_WxADaMUgzKXv3uiKb5iOXGWfA2zFbWBzEOXBvJVvs7YstsTJl17o2bXvdeQgebgB95gBXM9i98 s7Uvh9tmkZpI707Zas.9TzGxnqz5GNzlmWY_Uayf06defr40YFbdr9SDkpdXQjyihuBCVXiPJOSb ABPNVZNvBK25GBNUQZFE9PVW31.32Y_0tj5oVib6vFBtnjQ.PFZhVWgq9Bn7UgL2fkw3haH_Z_OO x_BUMRFhpUrJRBW99Mng0Ukuqt0ajdYrF_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-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 66.163.186.206 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:20418 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