From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 3F2eHXmG8l7leAAA0tVLHw (envelope-from ) for ; Tue, 23 Jun 2020 22:47:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ED0NGXmG8l55UQAAbx9fmQ (envelope-from ) for ; Tue, 23 Jun 2020 22:47:21 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D6AF09401CB for ; Tue, 23 Jun 2020 22:47:20 +0000 (UTC) Received: from localhost ([::1]:33432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnrhF-0006zy-Vm for larch@yhetil.org; Tue, 23 Jun 2020 18:47:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnrh1-0006zD-Ni for bug-guix@gnu.org; Tue, 23 Jun 2020 18:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jnrh0-00036R-4f for bug-guix@gnu.org; Tue, 23 Jun 2020 18:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jnrh0-0000Oc-3O for bug-guix@gnu.org; Tue, 23 Jun 2020 18:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42009: package.cache not deterministic Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 23 Jun 2020 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42009 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marinus , 42009@debbugs.gnu.org Received: via spool by 42009-submit@debbugs.gnu.org id=B42009.15929523751471 (code B ref 42009); Tue, 23 Jun 2020 22:47:02 +0000 Received: (at 42009) by debbugs.gnu.org; 23 Jun 2020 22:46:15 +0000 Received: from localhost ([127.0.0.1]:37383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnrgF-0000Nf-GS for submit@debbugs.gnu.org; Tue, 23 Jun 2020 18:46:15 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnrgC-0000NP-8L for 42009@debbugs.gnu.org; Tue, 23 Jun 2020 18:46:14 -0400 Received: by mail-wm1-f52.google.com with SMTP id u26so3190310wmn.1 for <42009@debbugs.gnu.org>; Tue, 23 Jun 2020 15:46:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=h8yBNrNO/0f0dTWJdR5ohlgjUPiuxZNhS8rMClnmIFI=; b=DeM52RfYpZyvGqsjJurbHChVgWBG34S0YEAMrPMaE+T61Dug95YHe/MVi/VORqm9Pa fRBpHZw9epYGkq+g4XTjpllYWOb/G7lheI4UT8n/AJOJTlDEIT4qftbgYn5kP4VhRKAu MFAKz6tRJIVXzGx357u29kePr7jfRGN5FV9fI4i9o8WMwsmYAQGtT8EjdWt0tXcGjkTS 9Izp2FWDmf+XNpM1YomBnehIFxb7XQCteWi468TGYHj6mS5Dnf65lrvwilCol82hOcOD 345QZ3r5zWqiR1eU6abGhUQdG5wp371lIdY4K/tKvNrPouSU+MeqZmMSkan8biljz4ta wSGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=h8yBNrNO/0f0dTWJdR5ohlgjUPiuxZNhS8rMClnmIFI=; b=AKCJloQ7UM3lK1ik6c2EfyrfL6X9ElXVbK0Ooie4LSqeAXMbbq7/7LD8rZZTWjctpx g0OB59qhNKO7H94ylqCn2vGJuRMjx1HrC1BpCkgFCcyU3H3V3jMgYO0vqzYJggbLeU9B FKyg0XNtBg1H4n+4dktJx+h2zIjNq8D6PcDO6BhbsSkphpsci5+CUWfZ+bfU60dKQvB3 MRzEwN4oxDYrAsxDisBS+0O86OZQWfF1m7z66TfxB5cU8B8KYyJBkEX/B/BkJMOGbdQQ XGNoEi5eJCtuvm6GOumXDycX8D0lal5/37TSUxanVTtaSNVIvEyt5Eyu7g1wP1XerEpS awAQ== X-Gm-Message-State: AOAM5302G0ZkwVaMoi/vhwp+heK5ZSnArRAe+glmCbg6CBEDLmx6ED8U wPS9jv57Rb9IgIDuUfyblHuQ6SpP+MY= X-Google-Smtp-Source: ABdhPJx4SKSqhWCTBKt71c9mUyCbwOzW/Dhxvut5uxQjNprBZQEElLl4SwezqH8s23ZuWZ+/ZzYIBQ== X-Received: by 2002:a7b:cd83:: with SMTP id y3mr25972544wmj.5.1592952365662; Tue, 23 Jun 2020 15:46:05 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id s5sm5581226wmj.18.2020.06.23.15.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 15:46:05 -0700 (PDT) From: zimoun In-Reply-To: <20200622190742.04a62732@disroot.org> References: <20200622190742.04a62732@disroot.org> Date: Wed, 24 Jun 2020 00:46:04 +0200 Message-ID: <86ftalqu37.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=DeM52RfY; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: rZ/6a4q3Kw2W Dear, Thank you for the bug report. It is something already noticed [1] but without a clean bug report to track it. :-) 1: http://issues.guix.gnu.org/issue/39258#86 On Mon, 22 Jun 2020 at 19:07, Marinus wrot= e: > Run into a determinism problem today with guix pull. > I run guix pull --rounds=3D3 but guix ended in error that the result > wasn't the same. For reproducing, the simplest is: --8<---------------cut here---------------start------------->8--- $ guix build --check --no-grafts -K \ $(guix gc --derivers \ $(readlink -f ~/.config/guix/current/lib/guix/package.cache)) The following profile hooks will be built: /gnu/store/l50sinckbl1y0fz2y4yk4vvfdvay9c8l-guix-package-cache.drv /gnu/store/h69hdf14c11q7dip0gssfd4cv0qw8j7k-guix-package-cache.drv building package cache... (repl-version 0 1 1) Generating package cache for '/gnu/store/67zi87xwv2d90kx8pzxsbw2q7qkh11ns-p= rofile'... (values (value "/gnu/store/0009whxhfz00lm027wbars8q4wb3rvia-guix-package-ca= che/lib/guix/package.cache")) guix build: error: derivation `/gnu/store/h69hdf14c11q7dip0gssfd4cv0qw8j7k-= guix-package-cache.drv' may not be deterministic: output `/gnu/store/0009wh= xhfz00lm027wbars8q4wb3rvia-guix-package-cache' differs --8<---------------cut here---------------end--------------->8--- Then the usual "diffoscope": --8<---------------cut here---------------start------------->8--- diffoscope \ /gnu/store/0009whxhfz00lm027wbars8q4wb3rvia-guix-package-cache/lib/guix/pac= kage.cache \ /gnu/store/0009whxhfz00lm027wbars8q4wb3rvia-guix-package-cache-check/lib/gu= ix/package.cache\ | head -n50 --8<---------------cut here---------------end--------------->8--- outputs something like: --8<---------------cut here---------------start------------->8--- --- /gnu/store/0009whxhfz00lm027wbars8q4wb3rvia-guix-package-cache/lib/guix= /package.cache +++ /gnu/store/0009whxhfz00lm027wbars8q4wb3rvia-guix-package-cache-check/li= b/guix/package.cache =E2=94=9C=E2=94=80=E2=94=80 readelf --wide --file-header {} =E2=94=82 @@ -6,15 +6,15 @@ =E2=94=82 OS/ABI: =E2=94=82 ABI Version: 0 =E2=94=82 Type: DYN (Shared object file) =E2=94=82 Machine: None =E2=94=82 Version: 0x1 =E2=94=82 Entry point address: 0x0 =E2=94=82 Start of program headers: 64 (bytes into file) =E2=94=82 - Start of section headers: 4900296 (bytes into file) =E2=94=82 + Start of section headers: 4900456 (bytes into file) =E2=94=82 Flags: 0x0 =E2=94=82 Size of this header: 64 (bytes) =E2=94=82 Size of program headers: 56 (bytes) =E2=94=82 Number of program headers: 3 =E2=94=82 Size of section headers: 64 (bytes) =E2=94=82 Number of section headers: 20 =E2=94=82 Section header string table index: 17 =E2=94=9C=E2=94=80=E2=94=80 readelf --wide --program-header {} =E2=94=82 @@ -1,16 +1,16 @@ =E2=94=82=20=20 =E2=94=82 Elf file type is DYN (Shared object file) =E2=94=82 Entry point 0x0 =E2=94=82 There are 3 program headers, starting at offset 64 =E2=94=82=20=20 =E2=94=82 Program Headers: =E2=94=82 Type Offset VirtAddr PhysAddr = FileSiz MemSiz Flg Align =E2=94=82 - LOAD 0x000000 0x0000000000000000 0x0000000000000000 = 0x286a68 0x286a68 R 0x10000 =E2=94=82 - LOAD 0x290000 0x0000000000290000 0x0000000000290000 = 0x21c5c8 0x21c5c8 RW 0x10000 =E2=94=82 - DYNAMIC 0x286a08 0x0000000000286a08 0x0000000000286a08 = 0x000060 0x000060 R 0x8 =E2=94=82 + LOAD 0x000000 0x0000000000000000 0x0000000000000000 = 0x286b78 0x286b78 R 0x10000 =E2=94=82 + LOAD 0x290000 0x0000000000290000 0x0000000000290000 = 0x21c668 0x21c668 RW 0x10000 =E2=94=82 + DYNAMIC 0x286b18 0x0000000000286b18 0x0000000000286b18 = 0x000060 0x000060 R 0x8 =E2=94=82=20=20 =E2=94=82 Section to Segment mapping: =E2=94=82 Segment Sections... =E2=94=82 00 .rodata .rtl-text .dynamic=20=20 =E2=94=82 01 .data=20 =E2=94=82 02 .dynamic =E2=94=9C=E2=94=80=E2=94=80 readelf --wide --sections {} =E2=94=82=E2=94=84 stderr from `readelf --wide --sections {}`: =E2=94=82=E2=94=84 readelf: Warning: [ 5]: Link field (0) should index a st= ring section. =E2=94=82 @@ -1,29 +1,29 @@ =E2=94=82 -There are 20 section headers, starting at offset 0x4ac5c8: =E2=94=82 +There are 20 section headers, starting at offset 0x4ac668: --8<---------------cut here---------------end--------------->8--- Well, I do not know what should the next step. I mean this "package.cache" file is created by the function gnu/packages.scm:(generate-package-cache) which reads: --8<---------------cut here---------------start------------->8--- ;; Store the cache as a '.go' file. This makes loading fast and redu= ces ;; heap usage since some of the static data is directly mmapped. (put-bytevector port (compile `'(,@exp) #:to 'bytecode #:opts '(#:to-file? #t))))) --8<---------------cut here---------------end--------------->8--- Then it is on the Guile side, isn't it?=20 All the best, simon