From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#39118: Segfault while building on 64-bit Cygwin Date: Thu, 06 Feb 2020 11:53:10 +0100 Message-ID: <87wo90kmw9.fsf__12301.8755040661$1580986454$gmane$org@pobox.com> References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <20200120172253.GA1112065@spikycactus.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="12768"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 39118@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , guile-devel@gnu.org To: Mike Gran Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Thu Feb 06 11:54: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 1izenR-0003DX-Gp for guile-bugs@m.gmane-mx.org; Thu, 06 Feb 2020 11:54:09 +0100 Original-Received: from localhost ([::1]:35362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izenQ-0002UD-Hb for guile-bugs@m.gmane-mx.org; Thu, 06 Feb 2020 05:54:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48869) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izenL-0002SD-Rp for bug-guile@gnu.org; Thu, 06 Feb 2020 05:54:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izenK-0007Qd-IC for bug-guile@gnu.org; Thu, 06 Feb 2020 05:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izenK-0007OM-EK for bug-guile@gnu.org; Thu, 06 Feb 2020 05:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1izenK-0002UL-Bg for bug-guile@gnu.org; Thu, 06 Feb 2020 05:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 06 Feb 2020 10:54: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.15809864109527 (code B ref 39118); Thu, 06 Feb 2020 10:54:02 +0000 Original-Received: (at 39118) by debbugs.gnu.org; 6 Feb 2020 10:53:30 +0000 Original-Received: from localhost ([127.0.0.1]:47079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izemo-0002Tb-FI for submit@debbugs.gnu.org; Thu, 06 Feb 2020 05:53:30 -0500 Original-Received: from fanzine.igalia.com ([178.60.130.6]:37326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1izeml-0002TN-Pv for 39118@debbugs.gnu.org; Thu, 06 Feb 2020 05:53:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=K0rrwZWLyXdXZDWBjNfQK/jWJLMsZUhBCowHie4egYQ=; b=T+spDBthsIrVmarKy1FlteyKcmTqGwUzePdG9v8ntKB8GDJLv7mADiD+QAEBDQl86uOde9SuYs4F69CyLPdajZyNGpLriQ7qVTl8Zj0cUcj81F/Hx+hNZjd01oreCozdgukLjEeJ98kx8/q8zk/adVvgtMLruGLScOBrqly4S1PSrC/yqtJXMq54ru3FGrCSt/LW07mx7LVxTSe+N5+UhYuYL9E8WB0Cfpj4Ht6G1HPtRLd5OIVkgQ4pNue/Yx1QFiStYF2AxTD8/UK22byRioMGFBNUnyMPF6GDlYGyY9EUUyrBbNThbwg1Bx0HKNuTwISGYEAWIyXJhLv3YVo+FA==; Original-Received: from lfbn-ann-1-376-195.w86-200.abo.wanadoo.fr ([86.200.91.195] helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1izeme-0005HX-Es; Thu, 06 Feb 2020 11:53:20 +0100 In-Reply-To: <20200120172253.GA1112065@spikycactus.com> (Mike Gran's message of "Mon, 20 Jan 2020 09:22:53 -0800") 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:9563 Archived-At: On Mon 20 Jan 2020 18:22, Mike Gran writes: > On Mon, Jan 20, 2020 at 11:38:35AM -0500, John Cowan wrote: >> Yes, gladly, but I don't know how to get one in this context. Do I need to >> add some flags to the Makefile, and if so, where? (It's a twisty maze of >> passages, all different.) . Note that this *is* a build with JIT enabled; >> when I disable it using the env variable, there are no errors and 3.0.0 >> works fine. >> >> Also, it may take some time, as I have to rebuild my Windows system. > > I also tried building Guile 3.0.0 on Cygwin 3.1.x. The failure comes from > trying to parse compiled .go files. > > The last time that I had this sort of problem, it was because the > O_BINARY flag was dropped or missing when writing .go files, leading > to CR+LF characters in the compiled files. And I diagnosed it by > byte-comparing Linux-compiled .go files with Cygwin-compiled .go > files, and by looking for CR+LF combinations in the compiled .go > files. > > I don't know if that is what is happening here, but, I'll check that > next time I have a chance. Given that John said that compilation went fine with GUILE_JIT_THRESHOLD=-1, I think perhaps this problem may have been fixed in the past. My suspicions are that this issue is an ABI issue with lightening that could perhaps be reproduced by: git co https://gitlab.com/wingo/lightening cd lightening make -C tests test-native Of course any additional confirmation is useful and welcome! Cheers, Andy