From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: Compiling guile-2.2.4 for mingw Date: Tue, 20 Nov 2018 07:59:44 -0800 Message-ID: <20181120155813.GA20667@joshua.dnsalias.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1542729493 23721 195.159.176.226 (20 Nov 2018 15:58:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2018 15:58:13 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: guile-devel@gnu.org To: Christoph Buck Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Nov 20 16:58:09 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gP8Pg-00063Z-W6 for guile-devel@m.gmane.org; Tue, 20 Nov 2018 16:58:09 +0100 Original-Received: from localhost ([::1]:34458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP8Rn-0001bl-Lp for guile-devel@m.gmane.org; Tue, 20 Nov 2018 11:00:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gP8Ri-0001Yu-4d for guile-devel@gnu.org; Tue, 20 Nov 2018 11:00:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gP8Rb-0003AR-C2 for guile-devel@gnu.org; Tue, 20 Nov 2018 11:00:13 -0500 Original-Received: from sonic302-21.consmr.mail.gq1.yahoo.com ([98.137.68.147]:38423) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gP8RY-0002oa-47 for guile-devel@gnu.org; Tue, 20 Nov 2018 11:00:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1542729596; bh=rN3sf9+Ia2ORdCPGOIRT44wiqyPcXf05ZL1kwf9tjwM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=AfiSRvmNNIHgiu1Etm8j5AMIgk5dVHME3Axj6myXSFQpvUH35sY5+wv6Sgfe8Qg/V3FCawPiNTBc4+QZUa3O7KjWfwdbGMRZ2sOFAxLR+IOv8jAy7uGI1doId4NXTIWzDOUQV3rwL8ILWqlhBs+xMU/4gNZv7/EZhBwXP/N4pX0h1m68LWHzb3SOZe5fTun1q1IVlKBuq/d6epMrtyfWtyyTRDlWB0Zq/Z667SEGDPNoBxPX3H0uKOHRtG0P5SDpKM0g0geJtKj+7tDoY5H380TQeq3G5j9A6IwCJZFkfcj/TOKMtLAyztx4QDQ+030jek0X2TMvMhAgE8J2H30IPw== X-YMail-OSG: Nq9sE.cVM1lTKJCcpiYyQnvFGFoHtsZjFEsyd_j659FwbhecEOCqIAwwsOZTV.K 6Ub7bMCVO1s2gjF15vOX3uSYUP4KcvrsQucayQ7_jirAoeiuTrhAOFALbv5WCmxgopzAyMZyVcyX tIs3nwo.wxVfCKTYJmGJqUy1IkWkNNap_uflI3MaGcGeoAAjGiNoRlsi6l70l_3KCSSbsYltWPb2 dr29jquCgQjqe_XTlGoqgO1vmM8.1oBs69btymbvhG2Fs7D7gx7y3umL.bi_4jhQ_.roBIE3g3u8 lm.JgFArbkR1.Zk.qpcH9JUpn8hzl_6p1GioPTX5dRPessE4xc0sny_jEahGdBDtaxkUUIAHQmVA 9cG12Xae7a6aBK_.fwzYoqAh8z7ofI.BsPVEbV8ZOO_z77w9jR9gCTZn1p4ocSOU77h_VgNwp7fH lrxH5aFL9z3F5rDXoddSc8zuY_vHH41CIR7m7M_IzKiE5sq3q9X_qexql7yBEAuLareIz36DylKT 25x.3I7MOPSVc2vkzCBjlsceQwsWv8UKz4dfmotPrI.OnbssOpuuQUuWMYQ3EuOMR5Hwnbon3Y5S zl3ghuBH7r7gnSM7ZGYIVH777rehU.m6rpTkwW0m6DvANUUED..U2FVc.8xLz6SWjaySInuXLnnX IAioUGRsBrxB0IgKRszqKE6l2BAjMTFERCixn_vPCGxwFyiqRqcvUmEIA1epWxOL.9KGTxfQhxzk nxLPK2S5K5NjuGQndxKYGFtMfJfsThP0LHya1e3DVafAia5xFO9nDIDLucqKPowqeNF1BjL545fz Uomb5NqayuPAYoZF4B..URD01uh14v3RSOwvBuRGO7 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Tue, 20 Nov 2018 15:59:56 +0000 Original-Received: from 162-197-224-133.lightspeed.irvnca.sbcglobal.net (EHLO joshua.dnsalias.com) ([162.197.224.133]) by smtp414.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID a236161c0ce4a6ab0f7c3270ea14cfbd; Tue, 20 Nov 2018 15:59:52 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 98.137.68.147 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19751 Archived-At: On Tue, Nov 20, 2018 at 03:31:25PM +0100, Christoph Buck wrote: > Hi! > > Now i am at the point where i have a working guile binary and the helper > scripts in the meta directory. But at this point the boostrapping fails > with the following error: > > > make[2]: Entering directory '/home/Christoph.Buck/guile-2.2.4/bootstrap' > > BOOTSTRAP GUILEC ice-9/eval.go ... > > 619:8 2 (_ #(#(#(#(#(#(#(#(#(#(#(???) ???) ???) ???) ???) ???) ???) ???) ???) ???) ???)) > > In unknown file: > > 1 (bytevector-u64-set! #vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 ???) ???) > > In ice-9/boot-9.scm: > > 752:25 0 (dispatch-exception _ _ _) ... > > I have no idea what might be wrong here or how to fix this problem. Does > anbody have an idea? Hey Chris, This is one of two errors. One problem is that Guile makes assumptions about the size of long vs the size of a pointer, as do some the libraries on which Guile depends. In practice, your Guile needs to be compiled under MinGW 32-bit where sizeof(void *) == sizeof(long) There is another error that causes similar problems to the one you are seeing. That error is because there is an error in Guile that under MinGW where it saves temporary files generated by 'mkstemp!' using the text encoding, so you end up with random carriage returns in your compiled scheme files. I do have a working mostly working MinGW Guile on my system. You can check out the patches I did on a branch of the repo called wip-mingw-guile-2.2 git.savannah.gnu.org/cgit/guile.git/log/?h=wip-mingw-guile-2.2 At the beginning of the year, I think I submitted the first of these patches upstream, but, I got around to submitting the rest of them. Also note that the MinGW threading library (winpthreads) almost works with garbage collection, but, it isn't 100%, so you may need to only compile the single-threaded version of Guile. Good luck, Mike