From unknown Fri Aug 15 21:22:43 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31329: (guix self) can silently miscompile modules Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 01 May 2018 10:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31329 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31329@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152516937616433 (code B ref -1); Tue, 01 May 2018 10:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 May 2018 10:09:36 +0000 Received: from localhost ([127.0.0.1]:44709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDSE3-0004Gy-Mq for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDSE1-0004Gl-PA for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDSDv-0001kP-2m for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDSDu-0001kG-Vf for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDSDt-0005bH-IL for bug-guix@gnu.org; Tue, 01 May 2018 06:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDSDo-0001i1-IX for bug-guix@gnu.org; Tue, 01 May 2018 06:09:25 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:40514) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDSDo-0001hO-Bx for bug-guix@gnu.org; Tue, 01 May 2018 06:09:20 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 34605124E4 for ; Tue, 1 May 2018 12:09:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NgIUj6Vi7zol for ; Tue, 1 May 2018 12:09:17 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 152FA12498 for ; Tue, 1 May 2018 12:09:16 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?UTF-8?Q?Flor=C3=A9al?= an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 01 May 2018 12:09:16 +0200 Message-ID: <87h8nrsn5f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -6.0 (------) Hi, Sometimes (guix self), used by =E2=80=98guix pull=E2=80=99, can silently mi= scompile modules as shown in : --8<---------------cut here---------------start------------->8--- compiling... 37.3% of 407 filesIn thread: unexpected syntax In thread: no code for module (guix licenses) .compiling... 37.6% of 407 filesIn thread: no code for module (guix licenses) .compiling... 37.8% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.1% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.3% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.6% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.8% of 407 filesIn thread: no code for module (guix build-system haskell) .compiling... 100.0% of 407 files @ build-succeeded /gnu/store/m5z6zk6898iiahslp6h5ji2jqgimqd14-guix-packages= .drv - --8<---------------cut here---------------end--------------->8--- The result in this case is a semi-broken set of .go files, which can additionally be distributed as substitutes by berlin. For instance, I get this: --8<---------------cut here---------------start------------->8--- $ guix build gimp -n Backtrace: 17 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 16 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 15 (_ #(#(#))) In guix/ui.scm: 1502:12 14 (run-guix-command _ . _) In ice-9/boot-9.scm: 829:9 13 (catch _ _ # =E2=80=A6) 829:9 12 (catch _ _ # =E2=80=A6) In guix/scripts/build.scm: 736:24 11 (_) 665:4 10 (options->derivations _ _) In srfi/srfi-1.scm: 679:15 9 (append-map _ _ . _) 592:17 8 (map1 (#)) In guix/scripts/build.scm: 670:30 7 (_ _) In guix/packages.scm: 839:14 6 (cache! # # =E2=80=A6) In unknown file: 5 (_ # # #) In guix/packages.scm: 1158:22 4 (thunk) 839:14 3 (cache! # # =E2=80=A6) In unknown file: 2 (_ # # #) In guix/packages.scm: 942:46 1 (thunk) In gnu/packages/gimp.scm: 152:5 0 (inputs) gnu/packages/gimp.scm:152:5: In procedure inputs: poppler-data: unbound variable --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and this is only because pdf.go is missing from ~/.config/guix/la= test and it ends up picking up an old and unrelated pdf.go. Compilation should abort on the first exception. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 01 09:39:09 2018 Received: (at control) by debbugs.gnu.org; 1 May 2018 13:39:09 +0000 Received: from localhost ([127.0.0.1]:44842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDVUr-0007GR-93 for submit@debbugs.gnu.org; Tue, 01 May 2018 09:39:09 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:47254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDVUo-0007GJ-Re for control@debbugs.gnu.org; Tue, 01 May 2018 09:39:07 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5493CF8F7 for ; Tue, 1 May 2018 15:39:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WFgnuadFzUgX for ; Tue, 1 May 2018 15:39:05 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id A3F5ADAF2 for ; Tue, 1 May 2018 15:39:05 +0200 (CEST) Date: Tue, 01 May 2018 15:39:05 +0200 Message-Id: <8736zbsdfq.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #31329 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) 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: -0.0 (/) severity 31329 serious From unknown Fri Aug 15 21:22:43 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31329: closed (Re: bug#31329: (guix self) can silently miscompile modules) Message-ID: References: <87y3h3qxsk.fsf@gnu.org> <87h8nrsn5f.fsf@gnu.org> X-Gnu-PR-Message: they-closed 31329 X-Gnu-PR-Package: guix Reply-To: 31329@debbugs.gnu.org Date: Tue, 01 May 2018 14:03:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1525183382-6171-1" This is a multi-part message in MIME format... ------------=_1525183382-6171-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31329: (guix self) can silently miscompile modules which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31329@debbugs.gnu.org. --=20 31329: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31329 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1525183382-6171-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31329-done) by debbugs.gnu.org; 1 May 2018 14:02:25 +0000 Received: from localhost ([127.0.0.1]:45756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDVrL-0001ac-9w for submit@debbugs.gnu.org; Tue, 01 May 2018 10:02:25 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:47652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDVrK-0001aV-7D for 31329-done@debbugs.gnu.org; Tue, 01 May 2018 10:02:22 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 9F940113A8 for <31329-done@debbugs.gnu.org>; Tue, 1 May 2018 16:02:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2MPOBrASWKu9 for <31329-done@debbugs.gnu.org>; Tue, 1 May 2018 16:02:20 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9FD32123D6 for <31329-done@debbugs.gnu.org>; Tue, 1 May 2018 16:02:20 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 31329-done@debbugs.gnu.org Subject: Re: bug#31329: (guix self) can silently miscompile modules References: <87h8nrsn5f.fsf@gnu.org> Date: Tue, 01 May 2018 16:02:19 +0200 In-Reply-To: <87h8nrsn5f.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 01 May 2018 12:09:16 +0200") Message-ID: <87y3h3qxsk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31329-done 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: -0.0 (/) ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Compilation should abort on the first exception. Done in 27e810c3e8707216c8b1b44e3d012cb0547b13d3. Ludo'. ------------=_1525183382-6171-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 May 2018 10:09:36 +0000 Received: from localhost ([127.0.0.1]:44709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDSE3-0004Gy-Mq for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDSE1-0004Gl-PA for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDSDv-0001kP-2m for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDSDu-0001kG-Vf for submit@debbugs.gnu.org; Tue, 01 May 2018 06:09:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDSDt-0005bH-IL for bug-guix@gnu.org; Tue, 01 May 2018 06:09:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDSDo-0001i1-IX for bug-guix@gnu.org; Tue, 01 May 2018 06:09:25 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:40514) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fDSDo-0001hO-Bx for bug-guix@gnu.org; Tue, 01 May 2018 06:09:20 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 34605124E4 for ; Tue, 1 May 2018 12:09:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NgIUj6Vi7zol for ; Tue, 1 May 2018 12:09:17 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 152FA12498 for ; Tue, 1 May 2018 12:09:16 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: bug-guix@gnu.org Subject: (guix self) can silently miscompile modules X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 01 May 2018 12:09:16 +0200 Message-ID: <87h8nrsn5f.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) 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: -6.0 (------) Hi, Sometimes (guix self), used by =E2=80=98guix pull=E2=80=99, can silently mi= scompile modules as shown in : --8<---------------cut here---------------start------------->8--- compiling... 37.3% of 407 filesIn thread: unexpected syntax In thread: no code for module (guix licenses) .compiling... 37.6% of 407 filesIn thread: no code for module (guix licenses) .compiling... 37.8% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.1% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.3% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.6% of 407 filesIn thread: no code for module (guix licenses) .compiling... 38.8% of 407 filesIn thread: no code for module (guix build-system haskell) .compiling... 100.0% of 407 files @ build-succeeded /gnu/store/m5z6zk6898iiahslp6h5ji2jqgimqd14-guix-packages= .drv - --8<---------------cut here---------------end--------------->8--- The result in this case is a semi-broken set of .go files, which can additionally be distributed as substitutes by berlin. For instance, I get this: --8<---------------cut here---------------start------------->8--- $ guix build gimp -n Backtrace: 17 (apply-smob/1 #) In ice-9/boot-9.scm: 705:2 16 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 15 (_ #(#(#))) In guix/ui.scm: 1502:12 14 (run-guix-command _ . _) In ice-9/boot-9.scm: 829:9 13 (catch _ _ # =E2=80=A6) 829:9 12 (catch _ _ # =E2=80=A6) In guix/scripts/build.scm: 736:24 11 (_) 665:4 10 (options->derivations _ _) In srfi/srfi-1.scm: 679:15 9 (append-map _ _ . _) 592:17 8 (map1 (#)) In guix/scripts/build.scm: 670:30 7 (_ _) In guix/packages.scm: 839:14 6 (cache! # # =E2=80=A6) In unknown file: 5 (_ # # #) In guix/packages.scm: 1158:22 4 (thunk) 839:14 3 (cache! # # =E2=80=A6) In unknown file: 2 (_ # # #) In guix/packages.scm: 942:46 1 (thunk) In gnu/packages/gimp.scm: 152:5 0 (inputs) gnu/packages/gimp.scm:152:5: In procedure inputs: poppler-data: unbound variable --8<---------------cut here---------------end--------------->8--- =E2=80=A6 and this is only because pdf.go is missing from ~/.config/guix/la= test and it ends up picking up an old and unrelated pdf.go. Compilation should abort on the first exception. Ludo=E2=80=99. ------------=_1525183382-6171-1--