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.devel Subject: Re: Segfault while building on 64-bit Cygwin Date: Thu, 06 Feb 2020 11:53:10 +0100 Message-ID: <87wo90kmw9.fsf@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="10668"; 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?= , John Cowan , guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Feb 06 11:53:43 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 1izen0-0002gA-Rt for guile-devel@m.gmane-mx.org; Thu, 06 Feb 2020 11:53:42 +0100 Original-Received: from localhost ([::1]:35352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izemz-0001mX-U3 for guile-devel@m.gmane-mx.org; Thu, 06 Feb 2020 05:53:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48422) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izeml-0001hw-MB for guile-devel@gnu.org; Thu, 06 Feb 2020 05:53:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izemk-0001lX-HN for guile-devel@gnu.org; Thu, 06 Feb 2020 05:53:27 -0500 Original-Received: from fanzine.igalia.com ([178.60.130.6]:56315) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izemj-0001Ct-V0; Thu, 06 Feb 2020 05:53:26 -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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 178.60.130.6 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:20395 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