From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 01 22:09:22 2024 Received: (at submit) by debbugs.gnu.org; 2 Jul 2024 02:09:22 +0000 Received: from localhost ([127.0.0.1]:35265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOSxO-0007pk-2F for submit@debbugs.gnu.org; Mon, 01 Jul 2024 22:09:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:45812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOSxM-0007pc-CH for submit@debbugs.gnu.org; Mon, 01 Jul 2024 22:09:21 -0400 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 1sOSxL-0007OC-6E for bug-guile@gnu.org; Mon, 01 Jul 2024 22:09:19 -0400 Received: from defaultvalue.org ([45.33.119.55]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOSxI-00054J-Gv for bug-guile@gnu.org; Mon, 01 Jul 2024 22:09:18 -0400 Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id C2CC020182 for ; Mon, 1 Jul 2024 21:09:12 -0500 (CDT) Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 5790114E081; Mon, 1 Jul 2024 21:09:12 -0500 (CDT) From: Rob Browning To: bug-guile@gnu.org Subject: 3.0.10 may be broken on 32-bit architectures Date: Mon, 01 Jul 2024 21:09:12 -0500 Message-ID: <87r0ccsfxz.fsf@trouble.defaultvalue.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) First noticed via https://buildd.debian.org/guile-3.0 on armel, armhf and i386: https://buildd.debian.org/status/fetch.php?pkg=guile-3.0&arch=armel&ver=3.0.10-1&stamp=1719706962&raw=0 https://buildd.debian.org/status/fetch.php?pkg=guile-3.0&arch=armhf&ver=3.0.10-1&stamp=1719706478&raw=0 https://buildd.debian.org/status/fetch.php?pkg=guile-3.0&arch=i386&ver=3.0.10-1&stamp=1719703034&raw=0 They all failed to build like this: GUILE_BOOTSTRAP_STAGE=stage1 ../meta/build-env guild compile --target="i686-pc-linux-gnu" -W1 -O2 -Ono-cross-module-inlining -L "/<>/module" -o "ice-9/calling.go" "../module/ice-9/calling.scm" Backtrace: In ice-9/boot-9.scm: 1755:12 19 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In system/base/compile.scm: 69:11 18 (_) 190:11 17 (_ #) 309:6 16 (read-and-compile # #:from _ #:to _ #:env _ #:optimization-level _ #:warning-level _ #:opts _) 352:28 15 (compile # ?) 265:44 14 (_ # ?) 261:33 13 (_ # #) In language/cps/optimize.scm: 136:2 12 (_ _ #) 111:3 11 (optimize-first-order-cps _ _) In language/cps/switch.scm: 414:6 10 (optimize-branch-chains _) In language/cps/intmap.scm: 519:6 9 (visit-branch #(#(#(# (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent) (absent) (absent) (absent) (absent) (absent) #((absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) # ?) ?) ?) ?) 519:6 8 (visit-branch #((absent) (absent) #((absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) # (absent) (absent) (absent) (absent) (absent) (absent) (absent) #f) (absent) (absent) #((absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) # ?) ?) ?) 519:6 7 (visit-branch #((absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) # (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) (absent) #f) _ 3680 _) 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 * module/language/cps/specialize-numbers.scm (logand/immediate): Define 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 trips 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 also found some other issues I have patches for that I'll propose separately, e.g. test-hashing needs a 32-bit "expected", etc. Hope this helps, and happy to assist if I can. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 01 10:29:06 2024 Received: (at control) by debbugs.gnu.org; 1 Sep 2024 14:29:07 +0000 Received: from localhost ([127.0.0.1]:35904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sklZi-0001WM-Ms for submit@debbugs.gnu.org; Sun, 01 Sep 2024 10:29:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sklZh-0001Vk-RY for control@debbugs.gnu.org; Sun, 01 Sep 2024 10:29:06 -0400 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 1sklWY-0003bA-N4 for control@debbugs.gnu.org; Sun, 01 Sep 2024 10:25:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=C9y5RisGsEFbp5mly3qgcqTKGQK1yxF3BaV42iqrmFQ=; b=nmJ8YDYyVnHZ9k UqfgSm09t371hKlOFg7sX0TMF5/uTnawSrlTrW4cYu80WXoKiNImP8Xt+SRkeEGO3WLQlbDUyIM1y AvYFys1eF3VoUG/wLtUn7aqO+0LfZTH2kuyvGzGjwzIYp2Cmsn2semx8zv+Itzj1U7y5mRcJOS+71 9epi3RoaOfC3oqH0tYAQBVTyFCdj9KCuB+YtY4P8J3YnMruna20qJTrHViVgzPHIfRWey+YClsQCf jp+3kZmUO8UqqzRIt/BAy8+nf2y1K467RE8bwvjfshAE09M2d69S5SHVdDhbudrf7do1wgIZp60+5 pNXeHYiCAjVetF057fxg==; Date: Sun, 01 Sep 2024 16:25:48 +0200 Message-Id: <87h6aze9hv.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #71891 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 71891 72215 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 01 10:29:58 2024 Received: (at control) by debbugs.gnu.org; 1 Sep 2024 14:29:58 +0000 Received: from localhost ([127.0.0.1]:35916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sklaY-0001Y1-IK for submit@debbugs.gnu.org; Sun, 01 Sep 2024 10:29:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sklaX-0001Xh-1v for control@debbugs.gnu.org; Sun, 01 Sep 2024 10:29:57 -0400 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 1sklXN-0003gC-Hx for control@debbugs.gnu.org; Sun, 01 Sep 2024 10:26:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=0NxGCbUWzcx6Xx7/v0A+RiSdaqxCuwAFVeaBXuLSBCQ=; b=KVNT18RkwRp7Sx spxXs4N4EkiCEeYtxt50mhKxdsJzw/+vDsYjss4TMbWlwRyYDOxVbL0lbaXL4ZwokRx/MMHI6n9Da dbWvSSE8DH2NRbAd39dL0u2eBA8KA97leiVyQul9NZvwhf+QiYfoZN39R3B0rG4MTQCHfTYEUgTOh tfkUOo36glf8afZWaYHcfJ1TKg9F4k2kluZrGJWyAYwH30MN70Uu/e0eKY4YDsrE3Hz6w+MHUT7wG FBzHPdL3tDS6bBKVjEHQwIoykRmhiP6YtpB7Zh16MyN+YGqI8fhVlJFbBiS9eqN7fd/iMA+MfSwfH dyRYjAAcNyKZU/XZkkzA==; Date: Sun, 01 Sep 2024 16:26:01 +0200 Message-Id: <87frqje9hi.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #71891 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 71891 72913 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 27 16:37:18 2024 Received: (at control) by debbugs.gnu.org; 27 Sep 2024 20:37:18 +0000 Received: from localhost ([127.0.0.1]:54820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suHiH-0008CJ-Qf for submit@debbugs.gnu.org; Fri, 27 Sep 2024 16:37:18 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:29120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suHiF-0008Bp-Px for control@debbugs.gnu.org; Fri, 27 Sep 2024 16:37:16 -0400 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.11,159,1725314400"; d="scan'208";a="185610932" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2024 22:35:40 +0200 Date: Fri, 27 Sep 2024 22:35:40 +0200 Message-Id: <87tte0ltr7.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #72913 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) retitle 72913 Compiler error building 3.0.10 on 32-bit platforms quit From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 27 17:10:21 2024 Received: (at control) by debbugs.gnu.org; 27 Sep 2024 21:10:21 +0000 Received: from localhost ([127.0.0.1]:56846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suIEG-0002D5-J7 for submit@debbugs.gnu.org; Fri, 27 Sep 2024 17:10:21 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:36162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1suHrR-0000U6-TE for control@debbugs.gnu.org; Fri, 27 Sep 2024 16:46:46 -0400 Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludo@gnu.org; dmarc=fail (p=none dis=none) d=gnu.org X-IronPort-AV: E=Sophos;i="6.11,159,1725314400"; d="scan'208";a="185611019" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2024 22:37:01 +0200 Date: Fri, 27 Sep 2024 22:37:01 +0200 Message-Id: <87setkltoy.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #72913 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) severity 72913 important quit From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 27 17:10:50 2024 Received: (at 71891-done) by debbugs.gnu.org; 27 Sep 2024 21:10:51 +0000 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 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 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==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Rob Browning Subject: Re: bug#72913: Guile 3.0.10 fails to build for powerpc-darwin (3.0.9 built earlier) In-Reply-To: <87r0ccsfxz.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Mon, 01 Jul 2024 21:09:12 -0500") References: <87r0ccsfxz.fsf@trouble.defaultvalue.org> Date: Fri, 27 Sep 2024 22:40:01 +0200 Message-ID: <87ikugltjy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71891-done Cc: 71891-done@debbugs.gnu.org, 72913-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Sat Jun 14 18:57:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 26 Oct 2024 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator