From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 20 05:37:57 2021 Received: (at submit) by debbugs.gnu.org; 20 Sep 2021 09:37:57 +0000 Received: from localhost ([127.0.0.1]:41008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSFkK-00046B-LI for submit@debbugs.gnu.org; Mon, 20 Sep 2021 05:37:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:47220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSFkF-00045z-BV for submit@debbugs.gnu.org; Mon, 20 Sep 2021 05:37:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSFkF-0000Ul-4R for bug-guix@gnu.org; Mon, 20 Sep 2021 05:37:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54510) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSFkE-0002UL-QX for bug-guix@gnu.org; Mon, 20 Sep 2021 05:37:50 -0400 Received: from host-37-191-236-102.lynet.no ([37.191.236.102]:37856 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSFkE-0007ar-EE for bug-guix@gnu.org; Mon, 20 Sep 2021 05:37:50 -0400 From: Marius Bakke To: bug-guix@gnu.org Subject: [core-updates-frozen] Wrong output hashes computed since cb06f7c61e4b839 Date: Mon, 20 Sep 2021 11:37:48 +0200 Message-ID: <87a6k78u4z.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) 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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On the 'core-updates-frozen' branch, attempting to pull 'master' gives a backtrace along the lines of ... Computing Guix derivation for 'x86_64-linux'... |Backtrace: In ice-9/boot-9.scm: 152:2 19 (with-fluid* _ _ _) 152:2 18 (with-fluid* _ _ _) In ./guix/store.scm: 2108:24 17 (run-with-store # # ?) In ./guix/self.scm: 1313:2 16 (_ #) In ./guix/packages.scm: 1548:17 15 (_ #) 1177:16 14 (cache! # # ("x86_64-linux" . #t) #) 1495:22 13 (thunk) 1428:25 12 (bag->derivation # #< name: "guile-3.0.7" system: "x86_64-l?> ?) In srfi/srfi-1.scm: 586:17 11 (map1 (("source" #) ?)) In ./guix/packages.scm: 1239:5 10 (failure) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In ./guix/packages.scm: 1244:18 8 (_) In ./guix/store.scm: 2108:24 7 (run-with-store # # ?) 1945:8 6 (_ #) /In ./guix/gexp.scm: 275:18 5 (_ #) In ./guix/packages.scm: 1603:5 4 (_ #) In ./guix/store.scm: 1980:38 3 (_ #) In ./guix/derivations.scm: 955:17 2 (derivation # "guile-3.0= .7.tar.xz" "builtin:download" () #:system ?) In ./guix/store.scm: 1058:9 1 (_ # "guile-3.0.7.tar.xz= .drv" #vu8(68 101 114 105 118 101 40 91 ?) ?) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: ERROR: 1. &store-protocol-error: message: "derivation `/gnu/store/szv5fh043rrqq01xpycp7xci4y7myqfk-gui= le-3.0.7.tar.xz.drv' has incorrect output `/gnu/store/qwjhql8lqw40fqhaqw40j= wqs0hc0248w-guile-3.0.7.tar.xz', should be `/gnu/store/0zliqv8lcw13f9iasy14= kmwsqj3d309w-guile-3.0.7.tar.xz'" status: 1 I bisected it down to cb06f7c61e4b: commit cb06f7c61e4b8393abf38f1f5891e03c33d53b9b Author: Ludovic Court=C3=A8s Date: Thu Sep 9 23:22:10 2021 +0200 base32: Provide an open-coded 'bit-field'. This improves the throughput of 'bytevector->base32-string' a bit. * guix/base32.scm (bit-field): New macro. It can be reproduced with a two-dimensional time machine: $ guix time-machine --branch=3Dcore-updates-frozen -- time-machine \ --commit=3Dcb06f7c61e4b8393abf38f1f5891e03c33d53b9b -- build hello ...or by pulling 'core-updates-frozen' and attempting to pull 'master'. The commit was merged to 'core-updates-frozen' in 5c3cb22c9b281066, so pulling core-updates-frozen -> core-updates-frozen also fails in a similar manner (albeit on a different derivation). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYUhWbA8cbWFyaXVzQGdu dS5vcmcACgkQ6HGLpZEUEHfo2wEA15kQ+Xmp3vl7zTDiwy8CoCBQW2IxNEYD+sdL sMgL04ABAMXKMW232089qcppaf6X8bf8MvuxsUMVvcU53CXl7LAM =yvI8 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 20 10:22:09 2021 Received: (at control) by debbugs.gnu.org; 20 Sep 2021 14:22:09 +0000 Received: from localhost ([127.0.0.1]:43772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSKBN-0003vK-Jd for submit@debbugs.gnu.org; Mon, 20 Sep 2021 10:22:09 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:3127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSKBM-0003un-EX for control@debbugs.gnu.org; Mon, 20 Sep 2021 10:22:08 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AkbSHY69GodKzTGCiJLVuk+C8I+orL9Y04lQ7?= =?us-ascii?q?vn2ZLiY0TiVCraGTdZsgviMc5Ax8ZJny8ervBED/exnhHPdOiOEs1NyZMzUO1l?= =?us-ascii?q?HEEL1f?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="393486094" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2021 16:22:01 +0200 Date: Mon, 20 Sep 2021 16:22:00 +0200 Message-Id: <874kafpbsn.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #50696 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 50696 important quit From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 20 17:38:24 2021 Received: (at 50696) by debbugs.gnu.org; 20 Sep 2021 21:38:24 +0000 Received: from localhost ([127.0.0.1]:44166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSQzX-0007bf-N1 for submit@debbugs.gnu.org; Mon, 20 Sep 2021 17:38:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSQzW-0007bR-Nt for 50696@debbugs.gnu.org; Mon, 20 Sep 2021 17:38:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47838) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSQzR-0004f3-HP for 50696@debbugs.gnu.org; Mon, 20 Sep 2021 17:38:17 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=35920 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSQzR-0003LY-8N; Mon, 20 Sep 2021 17:38:17 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Marius Bakke Subject: Re: bug#50696: [core-updates-frozen] Wrong output hashes computed since cb06f7c61e4b839 References: <87a6k78u4z.fsf@gnu.org> Date: Mon, 20 Sep 2021 23:38:14 +0200 In-Reply-To: <87a6k78u4z.fsf@gnu.org> (Marius Bakke's message of "Mon, 20 Sep 2021 11:37:48 +0200") Message-ID: <87wnnbnd15.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: 50696 Cc: 50696@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 Marius, Marius Bakke skribis: > On the 'core-updates-frozen' branch, attempting to pull 'master' gives a > backtrace along the lines of ... > > Computing Guix derivation for 'x86_64-linux'... |Backtrace: [...] > 1. &store-protocol-error: > message: "derivation `/gnu/store/szv5fh043rrqq01xpycp7xci4y7myqfk-g= uile-3.0.7.tar.xz.drv' has incorrect output `/gnu/store/qwjhql8lqw40fqhaqw4= 0jwqs0hc0248w-guile-3.0.7.tar.xz', should be `/gnu/store/0zliqv8lcw13f9iasy= 14kmwsqj3d309w-guile-3.0.7.tar.xz'" > status: 1 > > I bisected it down to cb06f7c61e4b: > > commit cb06f7c61e4b8393abf38f1f5891e03c33d53b9b > Author: Ludovic Court=C3=A8s > Date: Thu Sep 9 23:22:10 2021 +0200 > > base32: Provide an open-coded 'bit-field'. > > This improves the throughput of 'bytevector->base32-string' a bit. > > * guix/base32.scm (bit-field): New macro. The problem is that at -O1 with Guile 3.0.7 (which is the default for imported modules on =E2=80=98core-updates-frozen=E2=80=99 since 331a09654eb7e9f6212b7e8469077fa7393e8b11), that code gets miscompiled: --8<---------------cut here---------------start------------->8--- $ rm guix/base32.go $ guild compile -O1 guix/base32.scm -o guix/base32.go wrote `guix/base32.go' $ ./pre-inst-env guile GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use(guix base32) scheme@(guile-user)> (nix-base32-string->bytevector "0wqd8sjmxfskrflaxywc7g= qw7sfawrfvdxd9skxawzfgyy0pzdz6") $1 =3D #vu8(230 180 126 128 240 207 124 168 250 212 169 244 186 92 228 202 = 232 206 240 60 140 248 170 168 200 83 184 90 164 64 13 112) scheme@(guile-user)> (bytevector->nix-base32-string $1) $2 =3D "000d0080l00k00h0l00c0h00w00a0hq0lh090hl0hh0g0000wh06" --8<---------------cut here---------------end--------------->8--- Long story short: the =E2=80=9Cbaseline compiler=E2=80=9D (-O0 and -O1) wou= ld erroneously translate (ash x N) to (ash x (- N)) when N is a literal: --8<---------------cut here---------------start------------->8--- scheme@(guix base32)> (compile '(lambda (x) (ash x -2)) #:to 'value #:env (= current-module) #:optimization-level 1) $46 =3D # scheme@(guix base32)> (compile '(lambda (x) (ash x -2)) #:to 'value #:env (= current-module) #:optimization-level 2) $47 =3D # scheme@(guix base32)> ($47 4) $48 =3D 1 scheme@(guix base32)> ($46 4) $49 =3D 16 --8<---------------cut here---------------end--------------->8--- Fixed upstream: https://git.savannah.gnu.org/cgit/guile.git/commit/?id=3D74abae04aa68dc18= 676bd84c4a73324b0613475d However I=E2=80=99m not sure how to work around the bug, other than by reve= rting the change. I=E2=80=99ll think a bit more about it. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 21 04:14:10 2021 Received: (at control) by debbugs.gnu.org; 21 Sep 2021 08:14:10 +0000 Received: from localhost ([127.0.0.1]:44800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSauo-0006Ow-Dx for submit@debbugs.gnu.org; Tue, 21 Sep 2021 04:14:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSaum-0006Of-BW for control@debbugs.gnu.org; Tue, 21 Sep 2021 04:14:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33464) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSauh-0003BU-4e for control@debbugs.gnu.org; Tue, 21 Sep 2021 04:14:03 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47288 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSaug-0001C5-Ro for control@debbugs.gnu.org; Tue, 21 Sep 2021 04:14:03 -0400 Date: Tue, 21 Sep 2021 10:14:00 +0200 Message-Id: <87v92uny5z.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #50696 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 (---) retitle 50696 base32.scm is miscompiled at -O1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 21 04:16:06 2021 Received: (at 50696-done) by debbugs.gnu.org; 21 Sep 2021 08:16:07 +0000 Received: from localhost ([127.0.0.1]:44805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSawg-0006T0-Nd for submit@debbugs.gnu.org; Tue, 21 Sep 2021 04:16:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSawf-0006SF-HD for 50696-done@debbugs.gnu.org; Tue, 21 Sep 2021 04:16:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33622) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSawa-0004od-4y for 50696-done@debbugs.gnu.org; Tue, 21 Sep 2021 04:16:00 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=47290 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSawP-0001QG-2y; Tue, 21 Sep 2021 04:15:58 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Marius Bakke Subject: Re: bug#50696: [core-updates-frozen] Wrong output hashes computed since cb06f7c61e4b839 References: <87a6k78u4z.fsf@gnu.org> <87wnnbnd15.fsf@gnu.org> Date: Tue, 21 Sep 2021 10:15:44 +0200 In-Reply-To: <87wnnbnd15.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 20 Sep 2021 23:38:14 +0200") Message-ID: <87r1diny33.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: 50696-done Cc: 50696-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 (---) Ludovic Court=C3=A8s skribis: > Fixed upstream: > > https://git.savannah.gnu.org/cgit/guile.git/commit/?id=3D74abae04aa68dc= 18676bd84c4a73324b0613475d And here=E2=80=99s the clever workaroud, in all modesty: https://git.savannah.gnu.org/cgit/guix.git/commit/?h=3Dcore-updates-froze= n&id=3D68933659cb191774872d8ff71503844b92dc7355 :-) Ludo=E2=80=99. From unknown Sun Aug 10 02:41:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 19 Oct 2021 11:24:09 +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