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: Re: 64-bit Guile on Windows Date: Tue, 28 Jun 2022 16:41:44 +0200 Message-ID: References: Reply-To: Thomas Thiriez Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28499"; 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 Tue Jun 28 16:50:01 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 1o6CXQ-0007Ar-8d for guile-user@m.gmane-mx.org; Tue, 28 Jun 2022 16:50:01 +0200 Original-Received: from localhost ([::1]:39736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6CXO-0006qa-Rv for guile-user@m.gmane-mx.org; Tue, 28 Jun 2022 10:49:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6CX7-0006pb-Ny for guile-user@gnu.org; Tue, 28 Jun 2022 10:49:41 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55909) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6CX4-0000kM-56 for guile-user@gnu.org; Tue, 28 Jun 2022 10:49:41 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 012F93200AB4 for ; Tue, 28 Jun 2022 10:49:34 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 28 Jun 2022 10:49:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twistedwave.com; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1656427774; x= 1656514174; bh=+okzaa0hE4RQe2nj4psZkIzO4C/qtvWpCuHl436JR8E=; b=V Z0rTCQEqg9oPQXqtCq9YkD44zHAXqPgRbojM7GQYbX5kkanEM6pfOWIALP1IHCtZ 1nGgjxzhzob4uA07D7NFRABFo3reD4pRN9kwpK2BIP54CLGKVzxNgryHpW8MPYyw pMahhjBBEMDTgiebAOBrATB3Nj1nrfr975dltEFjKLmLbbvmfY6U12yngSqFa8UU 8aPyB1kqepT+JlOlLdUyTrTW4/zYXb0noFCdf4EfoiYNEx64jnl1AdWZF7+uCwbE p9GqGDlOQw9+kQ3EoNWxmE1prI7Q7y+0bDQIVKCMhI/ptKKhdS3Xu+g7BPnpUSJr Ew1EP3ggovJdtK/N3av1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :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=1656427774; x= 1656514174; bh=+okzaa0hE4RQe2nj4psZkIzO4C/qtvWpCuHl436JR8E=; b=I UzxYKskN8RahgEzy1adekXcjWDQDw8hBiv5WsyjsI3ewDLzVdv5jw9ZKie2s3dlc vsF6FLjxcmVsUYZDPcCWS7Vc/skvQMimztFIj/QxEHO7JBhB9JKIbHt5DfJXrob1 s+vLlPASpJaCc6Gx5Bzyj67wn1jWyk89nyHjFb6wRKKO3lDqFn+SjZpulMO4uMK3 MBLN1502PafUVP5KuT8gQiYfDexDnFJsuWndrFZcm0ePuH5tsYu+Af6AZvMs5nvA GushDe9ukAUn43xdcgqPr2x8PzXH5qejnhybFadr6xypo27fz4tGgmbGeNBcdUD3 4Fh7ECw245glpMQjc1ppQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegjedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtgfesth hqredttderjeenucfhrhhomhepvfhhohhmrghsucfvhhhirhhivgiiuceothhhohhmrghs sehtfihishhtvggufigrvhgvrdgtohhmqeenucggtffrrghtthgvrhhnpeetudejtdfgfe ejkeevudefveejgeelffdtkeehgfettdeuleefffeuveevhfelgeenucffohhmrghinhep ghhithhlrggsrdgtohhmpdguvghpvghnuggvnhgtihgvshdrphihpdhtvghsthdrlhihne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhm rghssehtfihishhtvggufigrvhgvrdgtohhm X-ME-Proxy: Feedback-ID: i65b94586:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 28 Jun 2022 10:49:34 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=64.147.123.25; envelope-from=thomas@twistedwave.com; helo=wout2-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-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:18356 Archived-At: Jean Abou Samra writes: > Le 27/06/2022 =C3=A0 15:56, Thomas Thiriez via General Guile related > discussions a =C3=A9crit=C2=A0: [...] >> (* 999 999 999) -> -76738825 [...] > > We had exactly the same problem at LilyPond, and this was the=20 > fix: > > https://gitlab.com/lilypond/lilypond/-/blob/master/release/binaries/lib/d= ependencies.py#L721 > > 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". > > HTH, > Jean Thanks for the info. I have tried this, but it doesn't appear to=20 be helping. I did a few tests with lilypond, and here is what I found. I have=20 a test.scm file containing: (display (* 999)) (newline) (display (* 999 999)) (newline) (display (* 999 999 999)) (newline) lilypond.exe -e '(load \"test.scm\")' test.ly GNU LilyPond 2.23.10 (running Guile 2.2) 999 998001 997002999 That is fine. Now, if I try compiling test.scm to test.go, I get: 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 That doesn't work, so I compile test.scm to test.go with guile on=20 my Mac. If I then try loading the generated test.go with lilypond,=20 I get: lilypond.exe -e '(load \"test.go\")' test.ly GNU LilyPond 2.23.10 (running Guile 2.2) 999 998001 -76738825 Now, it is possible that the problem is that I am trying to run a=20 .go file compiled on macOS on a Windows machine, and that the two=20 platforms are different enough that the .go file can't be reused.=20 And because I get that "Value out of range" error when compiling=20 on Windows, I am probably stuck with .scm files instead of=20 compiled .go files. Regards, Thomas Thiriez