From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#31329: (guix self) can silently miscompile modules Date: Tue, 01 May 2018 12:09:16 +0200 Message-ID: <87h8nrsn5f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDSEZ-0005cL-Kq for bug-guix@gnu.org; Tue, 01 May 2018 06:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDSEU-0001xP-LX for bug-guix@gnu.org; Tue, 01 May 2018 06:10:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDSEU-0001xF-HS for bug-guix@gnu.org; Tue, 01 May 2018 06:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDSEU-0004Hk-BL for bug-guix@gnu.org; Tue, 01 May 2018 06:10:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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) 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) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31329@debbugs.gnu.org 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.