From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EAe3E1vYGGMMsgAAbAwnHQ (envelope-from ) for ; Wed, 07 Sep 2022 19:43:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sOiUE1vYGGMSdQEAauVa8A (envelope-from ) for ; Wed, 07 Sep 2022 19:43:55 +0200 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 ADEB9F917 for ; Wed, 7 Sep 2022 19:43:54 +0200 (CEST) Received: from localhost ([::1]:38764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVz5d-0002ah-In for larch@yhetil.org; Wed, 07 Sep 2022 13:43:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVz0x-0000X5-91 for bug-guix@gnu.org; Wed, 07 Sep 2022 13:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39170) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVz0w-0004tY-Gd for bug-guix@gnu.org; Wed, 07 Sep 2022 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVz0w-0006WK-5W for bug-guix@gnu.org; Wed, 07 Sep 2022 13:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57593: Racket 8.6 is not reproducible Resent-From: "Philip McGrath" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 07 Sep 2022 17:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57593 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 57593@debbugs.gnu.org Received: via spool by 57593-submit@debbugs.gnu.org id=B57593.166257230825024 (code B ref 57593); Wed, 07 Sep 2022 17:39:02 +0000 Received: (at 57593) by debbugs.gnu.org; 7 Sep 2022 17:38:28 +0000 Received: from localhost ([127.0.0.1]:56102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVz0O-0006VX-5o for submit@debbugs.gnu.org; Wed, 07 Sep 2022 13:38:28 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:43087) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVz0L-0006VJ-HE for 57593@debbugs.gnu.org; Wed, 07 Sep 2022 13:38:26 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B5D663200919; Wed, 7 Sep 2022 13:38:19 -0400 (EDT) Received: from imap52 ([10.202.2.102]) by compute4.internal (MEProxy); Wed, 07 Sep 2022 13:38:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm2; t=1662572299; x=1662658699; bh=9CKC3g+qHVLR26uKq67bKYq5W Q3ON7QIhOU0lQX8kQE=; b=Y/PYGsFrV6Y47oQZ1xafOQ+m7dYr8/jImFvbS9t7y 2XLgMbXZLh+osn2lgr2UWgG3iXxSMZy8JRwZLWvOcojGPx/m0K3DQtEiWfP+arm8 lmJWSoljXGGbTwYnQw+k1EOWyMwKiK4wOkHl4sC4juhRHNOzHvBcTP8EiFe75QyR jfTGhPFVS9qQKFMrTjPEgra6vrKWhVXM5rQhfJ7qc7L5sfnJ+BO5bwEZSlS9ZNFJ Az9eC3Wr6nM4F194BZaOGrWB5R6mlkOc6S9I5ZjGT44kuIqB58oR6Ayp2LQDSGo5 nxb5TjVLGv/8iAPrB96xSsAQv2wKKZZtAQfDg5A9Z2Nwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1662572299; x=1662658699; bh=9 CKC3g+qHVLR26uKq67bKYq5WQ3ON7QIhOU0lQX8kQE=; b=UME6kDjUjNma/zU2w 2zrJRua3Dx7DKYfjWoqznetZ8SQQdXTyx/x6z3SJofkUTI+rUfH6kWnsmE6XQxJw LVMuDHDMZ3G+KFiEAjHOA6xa090d3vGG4xrUqEtV0hKDYq17txrJc92gF+a3fr5e ghkqJsn0Iy7tJY0z71TTkkvKHfVkWggTTuWpLODZlQjB4oyhv/Jw6396Tih8xaRt /vVtarQ5hrU+TvTYXtelZ24yKwpWRPLtPGZO72pIWCBdvU2vWRWc2k4ZWsZp2esz nN6JDDcjLNelAbpFdOXge3ISjOlBplRJCo/c2AHAGt9k38a1VEhFQgUQQ+g1qEky tbnbA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedttddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfr hhhilhhiphcuofgtifhrrghthhdfuceophhhihhlihhpsehphhhilhhiphhmtghgrhgrth hhrdgtohhmqeenucggtffrrghtthgvrhhnpeefuedtgeffvdffgeeuveejgfejkedvieej jeffvdelkefhtdeiudelieegkeegkeenucffohhmrghinhepghhnuhdrohhrghdpghhith hhuhgsrdgtohhmpdhrvghprhhoughutghisghlvgdqsghuihhlughsrdhorhhgnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhihhlihhpse hphhhilhhiphhmtghgrhgrthhhrdgtohhm X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EE83AC60091; Wed, 7 Sep 2022 13:38:18 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: <5f6e754e-1a0e-4f23-866d-08dcd7a111a3@www.fastmail.com> In-Reply-To: <87pmga3zot.fsf@inria.fr> References: <87pmga3zot.fsf@inria.fr> Date: Wed, 07 Sep 2022 13:36:33 -0400 From: "Philip McGrath" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662572635; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9CKC3g+qHVLR26uKq67bKYq5WQ3ON7QIhOU0lQX8kQE=; b=XFa52CktV3xhuN0XMSRbWhBugY8tq0zS/Gt3HaCodWjjuEaZ7oGqgs0sArWfjis+MjC8Uw zkZReppJilkpCax5DAFbBPXUg2bYLk6QmNywt/vts2NoHwGy+WGEYqx3kiagJBML922lCl 9Og7UQ8e2IlxDYfEt+6eARlPBMG92F671nAsysxP7KOISc3L6O0a0ytnLSU82KTrM7w06t ZU6ecEHg7WbvlI/aYY8N9/jxCQeYkw2Yd3yknB+Tzn/HEkSlepzhzSwI40xUA7PdD4EnL6 g75zLLmCLXH4ksjwOBBmaGhCeLtmveWgECEWOU1cqeCslKcvNgnlJJ8jvPgW5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662572635; a=rsa-sha256; cv=none; b=ifBwI8ibY4X8iugvFCK1vt5Ft0Fgq2vAWngI82hZ2SxdR6iXa66HQQcZTJw3qPdOUrkqJ7 vfrJeTEcqoiytEd9yCga7mdKRthVPQfeHAstRx2EmMF4AJ7MPtZNV21Xk4r1u2fCYgLMqH sQDjZFNTRLkZMoblRZaGySbH/7yj3vv5hrsTdYNcJ5FVHq4C04WRYt+mOd94UmkgFJ4OEw 8ypc8b5O1jWiUtCs9aH6LfYeGBSRp4oTACye0pC+3umteCwQHEWjRaaQlQhKtY41zlb65Y HQ9/gOmEa6jxdRlWJzTb/iyX9YstVmR+Pl/V3YGun0UnZFOD8Y9LiIvU5Cm2QQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="Y/PYGsFr"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=UME6kDjU; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm2 header.b="Y/PYGsFr"; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=UME6kDjU; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ADEB9F917 X-Spam-Score: 2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6YVNXAto2eB5 Hi, On Mon, Sep 5, 2022, at 6:04 AM, Ludovic Court=C3=A8s wrote: > Hey, > > Just noticed that Racket does not build in a reproducible fashion: > > --8<---------------cut here---------------start------------->8--- > $ guix describe > Generation 227 Sep 04 2022 23:39:52 (current) > guix aae98c2 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: aae98c297214f87eb45302863adb021078c41a6f > $ guix challenge racket | head -40 > /gnu/store/av255rh362283i1zaiq9rz4rpli69j59-racket-8.6 contents differ: > local hash: 1w4dnkvpbbrgfasyq8x1cbqw58jzqsny17ms5l1fb1h6iid38bs1 > =20 > https://ci.guix.gnu.org/nar/lzip/av255rh362283i1zaiq9rz4rpli69j59-rack= et-8.6:=20 > 1lnxklizpnc599w7n2svb1jaw595wranm9aagd2928fcbiaavbr6 > differing files: > /lib/racket/pkgs/2d-doc/scribblings/compiled/2d_scrbl.dep > /lib/racket/pkgs/2d-doc/scribblings/compiled/2d_scrbl.zo Unfortunately, this is a known issue upstream. One part of the problem is the way that Chez Scheme uses "type 4" (rando= m) UUIDs to implement 'gensym'. There's some upstream discussion at , including an idea from me = about "type 5" UUIDs as part of a possible solution. That may well be the only issue with the core compiler for Racket CS. I = know effort has been taken to make Racket's front-end deterministic, and= Kent Dybvig says that: > Chez Scheme compiles are reproducible modulo the globally unique > names of generated symbols (gensyms), assuming macros don't do > things like introduce time stamps or random expressions into their out= put. > Because of differences in gensym names, the files produced by multiple > runs are not byte-by-byte identical but should compare equal via > the system primitive $fasl-file-equal? See, for example, the use > of $fasl-file-equal? in the s/Mf-base checkboot target. In the output you sent, the ".zo" files contain Chez machine code with a= Racket-specific wrapper, and the ".dep" files contain hashes of depende= ncies (so they differ when the ".zo" files they track differ). Debian reports at , discussing Racket 8.2+dfsg1-2: > Build path captured in html documentation. docindex.sqlite > contains content in arbitrary order. strings in binaries in > arbitrary order. Those issues don't appear to affect Guix: some might be caused by Debian= conflating "build" and "install" for Racket packages, and, in any case,= they seem related to the "scribble" and/or "racket-index" packages, not= the core compiler. IIRC, there were some reproducibility issues with the Racket BC bytecode= compiler. If we can build reproducibly with CS but not BC, it might wor= k out to disable compilation for the bootstrapping BC compilers, or mayb= e to configure them to use the machine-independent format (basically, a = serialized form of what the front-end would hand off to the back-end), a= t the cost of some performance. I hope to work on these issues, but I plan to work on a 'racket-build-sy= stem' first. Among other things, I hope it will be easier to investigate= issues when Racket packages can be built independently. -Philip