From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#71891: bug#72913: Guile 3.0.10 fails to build for powerpc-darwin (3.0.9 built earlier) Date: Fri, 27 Sep 2024 22:40:01 +0200 Message-ID: <87ikugltjy.fsf@gnu.org> References: <87r0ccsfxz.fsf@trouble.defaultvalue.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13984"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71891-done@debbugs.gnu.org, 72913-done@debbugs.gnu.org To: Rob Browning Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri Sep 27 23:11:22 2024 Return-path: Envelope-to: guile-bugs@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 1suIFG-0003Tp-79 for guile-bugs@m.gmane-mx.org; Fri, 27 Sep 2024 23:11:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suIEb-0004UF-0A; Fri, 27 Sep 2024 17:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suIEV-0004T4-V9 for bug-guile@gnu.org; Fri, 27 Sep 2024 17:10:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suIEV-0008JP-M7 for bug-guile@gnu.org; Fri, 27 Sep 2024 17:10:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=RxWgYipc2c737K98K1kdfDZ5ynralrx5xFgm67iNUM0=; b=kxDZ/XWubNGKnQnkSQaHE5Hr6vzT75+Q1f5XGlnMBKiL2JvxP2CWHb4D59vwplIqEgrTF50xtETfnOaMXTKrhql5j8yave81ZsImo2uuykOfTPjk3+JtB2mJ8En/gT2Eaa0ciXT7e/v2WGVhaKs9JNoS9Uh2bYMBPV2l+qej8vQ3jYVSNIJCnm4EkjjhAteYGyf7x3c8bd0O/Wn91gqNyzYX9JfyqHRyvgZsw+cCI0fsD1R+3j1i6CfuK5VVuOI9ysBXNFpixF1QkBl6NLKitGlo5aDVDmjo7kJLokwtIb+Qtq8Vk4sPWq08lV6lpRaVno2lDLuxUjZyTp9BrbiDMA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1suIEy-0002Ny-Ky for bug-guile@gnu.org; Fri, 27 Sep 2024 17:11:04 -0400 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Fri, 27 Sep 2024 21:11:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71891 X-GNU-PR-Package: guile Mail-Followup-To: 71891@debbugs.gnu.org, ludo@gnu.org, rlb@defaultvalue.org Original-Received: via spool by 71891-done@debbugs.gnu.org id=D71891.17274714519100 (code D ref 71891); Fri, 27 Sep 2024 21:11:04 +0000 Original-Received: (at 71891-done) by debbugs.gnu.org; 27 Sep 2024 21:10:51 +0000 Original-Received: from localhost ([127.0.0.1]:56881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suIEk-0002Mb-BG for submit@debbugs.gnu.org; Fri, 27 Sep 2024 17:10:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suIET-0002DY-8n; Fri, 27 Sep 2024 17:10:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1suHkz-0004aJ-7N; Fri, 27 Sep 2024 16:40:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=RxWgYipc2c737K98K1kdfDZ5ynralrx5xFgm67iNUM0=; b=AqlsbnilTkw5EteFWqwu 6NXc3vHsFYlIpnXQQ5i9cv7ETBIppk2ygA+gfam3gPeaLacs+Dh3+UlpABj+bBovuZVsRGHVxIZ75 KPn5TU6Vv58CDHFy5Pew61k07WcQOEhdNc6AR4UrrKViX2DDM1IZKgDVie5+NifemevqyntHyDQTx pyORYaRB99PCYrYsQ/yHviIrFN1i7LfcDjjEJN9xF+FhbYBfriejnmRWawx2a0lpsoBC4/ZbCHDiv gjkFisvbSR7dA8OY7NfGl3PgQ1jQVp+a8fK42kQPtMB+8b/8hThM5gptVmOzTz+Vdi8Qx5mQqQiFt mX0KHhCXpvFtbg==; In-Reply-To: <87r0ccsfxz.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Mon, 01 Jul 2024 21:09:12 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10988 Archived-At: Hi, Rob Browning skribis: > In language/cps/switch.scm: > 99:36 6 (fold-branch-chains # _ _ # _) > 343:8 5 (optimize-branch-chain 3346 7427 (6771 6772 6773 6901 7029= 7157 7285) _) > In ice-9/boot-9.scm: > 260:13 4 (for-each # _) > In language/cps/switch.scm: > 340:32 3 (_ (u64-imm-< . 7428)) > In language/cps/guile-vm.scm: > 89:31 2 (target-symbol-hash _) > 41:18 1 (jenkins-lookup3-hashword2 "u64-imm-<") > In ice-9/boot-9.scm: > 1676:22 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1676:22: In procedure raise-exception: > Value out of range 0 to< 18446744073709551615: -505802029 > make[4]: *** [Makefile:2515: language/cps/guile-vm/reify-primitives.go]= Error 1 > > Investigation on an i386 host, and then a git bisect suggested that this > might be relevant (i.e. the "bad" commit bisect landed on): > > commit d579848cb5d65440af5afd9c8968628665554c22 > > Fix bug lowering logand/immediate to ulogand/immediate >=20=20=20=20=20 > * module/language/cps/specialize-numbers.scm (logand/immediate): Defi= ne > a sigbits handler. > (specialize-operations): Require logand/immediate operand to be u64 to > lower to ulogand/immediate. Shouldn't be necessary but even if only = u64 > bits are used, negative fixnums will have the sign bit set, which tri= ps > up further unboxed uses which error if the operand to `scm->u64` is > negative. > * module/language/cps/type-fold.scm (rem): Emit logand/immediate. I believe this was fixed by (see the neat explanation at ). Confirmed by CI: . Thanks, Ludo=E2=80=99.