From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thomas Thiriez via General Guile related discussions Newsgroups: gmane.lisp.guile.user Subject: 64-bit Guile on Windows Date: Mon, 27 Jun 2022 15:56:14 +0200 Message-ID: Reply-To: Thomas Thiriez Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17291"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 28.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Jun 27 16:38:57 2022 Return-path: Envelope-to: guile-user@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 1o5pt9-0004Cn-TE for guile-user@m.gmane-mx.org; Mon, 27 Jun 2022 16:38:57 +0200 Original-Received: from localhost ([::1]:59946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5pt8-0004gX-Ls for guile-user@m.gmane-mx.org; Mon, 27 Jun 2022 10:38:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5pEG-0002DS-92 for guile-user@gnu.org; Mon, 27 Jun 2022 09:56:43 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:33371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5pEC-0005rn-BA for guile-user@gnu.org; Mon, 27 Jun 2022 09:56:39 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 199C1320070D for ; Mon, 27 Jun 2022 09:56:32 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 27 Jun 2022 09:56:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twistedwave.com; h=cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t= 1656338191; x=1656424591; bh=XnpqOecaL1w5Dbxp4zfXL7Mnd6/EB377IVU JEqoyzgI=; b=bqdfvSkgRcRxD5Zqqb++Vr2ajJFu1nbMRiDuWEJDouJFRpPK5Pp /U9BncQPHNNePCKi2MRhFOWespAmQjgA/HoQ6kGiO71G+3kdOwVuQ5uP8XfxJX8u Z+wZK7pfpKjPQkxORJz1dwWz/60lHrm6iPwJJluVCaDrzzXbK1Ej8derLcAUdhhU 2wviQxUscKTqKKQD+nod/9X8PgHipdvMcKozEcOuwcc9xEpo/FUQSBrm1bLRxc+v 8eyQWRyWrHNJ6l9FSPlx0oxbw8a5kNKYY4cDNrjrsk2DT3bIS2sOmilnkh6A46PW yodn8e9ErcNjQKT3l/FkRRcveMNe8ypFOEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656338191; x= 1656424591; bh=XnpqOecaL1w5Dbxp4zfXL7Mnd6/EB377IVUJEqoyzgI=; b=r Ht8OYEL2fsnWvBBmkwwyzUluIatGWz3hgegkMaeIYYtrH0IOiiKFBtEiSxX1KdvZ 8sXrBwarENIxS//Rjr9zkP8ocxOeZrIETCNO5/sRawEXCYZoikNdJDDlDfTxps/R mZ+kQmRuZ+1rG8UTeOJxml22CghEIw28TW7TehajdjcedGMxCrpT564BGdParCPc ABbZp9pQydMlNyy2yBvRq/oMahV/oK3ykSd2SO40VmYs4Ng6HSuOhqX5CylN7/LL CQ5fu/1+rgBWIhhFiwtQa7T+2rLVK5oHPdTpQsRVBuXixqPDitEX7MQUW0gUgjX6 43M6qRgid8edRQCI5S1/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeghedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomhepvfhhohhmrghsucfvhhhirhhivgiiuceothhhohhmrghssehtfihi shhtvggufigrvhgvrdgtohhmqeenucggtffrrghtthgvrhhnpefggeeltdfhfeduueevge egudffvdelgffhtefgjeehteehfedvheetieegudeiudenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesthifihhsthgvugifrg hvvgdrtghomh X-ME-Proxy: Feedback-ID: i65b94586:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 27 Jun 2022 09:56:31 -0400 (EDT) Received-SPF: pass client-ip=64.147.123.24; envelope-from=thomas@twistedwave.com; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 27 Jun 2022 10:31:43 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:18350 Archived-At: Hi, I am currently porting a macOS application to Windows, and need to have libguile working. I can see GnuCash works with Guile. I could borrow their libguile.dll, but it is a 32-bit build, and I am making a 64-bit application. I tried building Guile 3, but had more success with Guile 2.2, so I will keep that version. I have cross compiled it on my mac with mingw, and it kind of works. The only thing is that if I compile my .scm files to .go, then my fixnums are not automatically converted to big nums, and I get things like that: (* 999 999 999) -> -76738825 My fix is to keep the .scm files, and avoid compiling to .go. I believe this has something to do with the fact that, on that platform, we have: sizeof(SCM) == 8 sizeof(long) == 4 Is there something to do about that problem? Is there something I can do to have a working 64-bit Guile on Windows? Thanks a lot for any help you could provide. Regards, Thomas Thiriez