From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.user Subject: Re: 64-bit Guile on Windows Date: Tue, 28 Jun 2022 18:14:22 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-q6YLyfIDs6zAF4gYNb4M" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15973"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 To: Thomas Thiriez , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Jun 28 18:19:29 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 1o6Dw1-00040P-0J for guile-user@m.gmane-mx.org; Tue, 28 Jun 2022 18:19:29 +0200 Original-Received: from localhost ([::1]:41944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Dvz-0005nj-Kn for guile-user@m.gmane-mx.org; Tue, 28 Jun 2022 12:19:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6DrE-0007fD-L1 for guile-user@gnu.org; Tue, 28 Jun 2022 12:14:32 -0400 Original-Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]:60666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6DrC-0006dd-2x for guile-user@gnu.org; Tue, 28 Jun 2022 12:14:32 -0400 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id ogES2700A4UW6Th06gEShM; Tue, 28 Jun 2022 18:14:27 +0200 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1656432867; bh=HGPSVsjAqj+h0r9cq5qa8k5ZAR/v66/pCVvYK4NWK7g=; h=Subject:From:To:Date:In-Reply-To:References; b=B1O8eDjdHs1DAoZagc5UCuKfU84aC/k/kn5wX02MdJMdpn/Wub5DePGxXiVysgzSv /qWvgD5JTDyDXuQeE0IjmDMPHci4GHb4KRFIOc8Pyrq1DQDgPyLCUczccr9XcchG7b OWWTx41vuHHVDb1oiYaYzcpr/ahUaephdgIXUXg7jE+hMVSynJoxywDIL6wAaxMm0P iU9bMAq0nXl/JYVIM0sNkfvVrgZ182YYU5UYBZVev2V9f6kZ3roFsBeXctzpOXCjer gKYsqiElO8ew5dFLSWwW20q8wGyqjeJfNUpSa6gnKK+VmghCUSt6AEehAGsU+CdQ0k A73iDIPIjzLeg== Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:18358 Archived-At: --=-q6YLyfIDs6zAF4gYNb4M Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thomas Thiriez via General Guile related discussions schreef op di 28- 06-2022 om 16:41 [+0200]: > Jean Abou Samra writes: >=20 > > Le 27/06/2022 =C3=A0 15:56, Thomas Thiriez via General Guile related > > discussions a =C3=A9crit=C2=A0: > [...] > > > (* 999 999 999) -> -76738825 > [...] > >=20 > > We had exactly the same problem at LilyPond, and this was the=20 > > fix: > >=20 > > https://gitlab.com/lilypond/lilypond/-/blob/master/release/binaries/lib= /dependencies.py#L721 > >=20 > > Namely, you need to patch libguile/conv-integer.i.c and > > conv-uinteger.i.c to replace "SIZEOF_TYPE < SIZEOF_SCM_T_BITS" > > with "SIZEOF_TYPE < SIZEOF_LONG". > >=20 > > HTH, > > Jean >=20 > Thanks for the info. I have tried this, but it doesn't appear to=20 > be helping. >=20 > I did a few tests with lilypond, and here is what I found. I have=20 > a test.scm file containing: >=20 > (display (* 999)) (newline) > (display (* 999 999)) (newline) > (display (* 999 999 999)) (newline) >=20 > lilypond.exe -e '(load \"test.scm\")' test.ly > GNU LilyPond 2.23.10 (running Guile 2.2) > 999 > 998001 > 997002999 >=20 > That is fine. Now, if I try compiling test.scm to test.go, I get: >=20 > lilypond.exe -e '(use-modules (system base compile))(compile-file=20 > \"test.scm\" #:output-file \"test.go\")' test.ly > GNU LilyPond 2.23.10 (running Guile 2.2) > ice-9/boot-9.scm:752:25: In procedure dispatch-exception: > In procedure bytevector-u64-set!: Value out of range: -149659645 You can find some possibly related bugs on debbugs: Possibly fixnum-related, so maybe: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42060 Maybe 32-bit <-> 64-bit related, so maybe: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D28920 Also, guile@2.2 is not developed anymore AFAICT. Greetings, Maixme. --=-q6YLyfIDs6zAF4gYNb4M Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYrso3hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mBWAQDaLIP6SomKnIu8NqPoniogqNpJ ZCpFyTYdgX4SuV8XHwD/XwmGa+OHU2i1dbHQPEvxqQPQtE6sKOhIY2f7ltjh/gM= =g+39 -----END PGP SIGNATURE----- --=-q6YLyfIDs6zAF4gYNb4M--