From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aNVlNFov22HGKAEAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 19:54:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ODAaLVov22ESmgAAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 19:54:18 +0100 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 41D663DD19 for ; Sun, 9 Jan 2022 19:54:18 +0100 (CET) Received: from localhost ([::1]:56352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6dKb-0000hh-4y for larch@yhetil.org; Sun, 09 Jan 2022 13:54:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50938) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6dJB-0007sZ-Rs for help-guix@gnu.org; Sun, 09 Jan 2022 13:52:50 -0500 Received: from [2a02:c205:2020:6054::1] (port=40774 helo=tobias.gr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6dJ9-0003MM-BV for help-guix@gnu.org; Sun, 09 Jan 2022 13:52:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=ZOtuOOZfSgm5j jPIM+3lV1VF2ttMjb7rENOi0C30DWI=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=FWf7kV5ktxLQReVep27TmxvCS8ebrGPcDpdJU1 nI3rIIICZFS6tBRt1MLh9th/DqkZLqliKp5RJlQ28GzuvbVIGdGONRKuXOf48vgG3ec2xv taKU8L2jrQf++LXaNpG42vFBYCcpFy8H6AMhPcIAtoTNiUxyioVtLBZelDBnN0NREEWW1r UYK4UUdJ3Q+ea+POvCkgd4wTuZvk+M+puYoznxjaL23GLj9he6sMagD0Br2v/PQqcD2fIG Ls7A5CG8ZadZhB5pwoC6tqAU0VbxmpdzE93THTb/IOn8IeKf/TN7/DZ72qcMeabkMI3EU3 OcJnHfO4fuqNQwmjjiqPsj6w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 09bca771 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 9 Jan 2022 18:52:41 +0000 (UTC) References: <20220108151155.3pylqkxtrxjpu5yo@wzguix> <20220109175706.e75fbkahrnzajacv@wzguix> From: Tobias Geerinckx-Rice To: Wiktor =?utf-8?Q?=C5=BBelazny?= Cc: help-guix@gnu.org Subject: Re: "libc.so.6: version `GLIBC_2.33' not found" with guix time-machine --channels Date: Sun, 09 Jan 2022 19:09:21 +0100 In-reply-to: <20220109175706.e75fbkahrnzajacv@wzguix> BIMI-Selector: v=BIMI1; s=default; Message-ID: <874k6cspts.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:c205:2020:6054::1 (failed) Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641754458; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZOtuOOZfSgm5jjPIM+3lV1VF2ttMjb7rENOi0C30DWI=; b=sgSladOtQmDaWCEf0pw1TZZQr7/YerwAMsGJaZ/KwnIpSO2tChi8rIBKuSdWxzuVSEEPLv TJI3qGR8eJtIYRVrExn0AdFmOQzMbggVPL6Kx8bqLLNJjr6Q7pNVdypTVzLKCD2DAoKw3k oTR8Axyu1fdZyQVppHRMvKPVT46kZh9NbkXo/U33/GDJHPtOXAC0163kUvbsbfTjSQ04f6 PdwiB9PesmXiEfAKxLoWs+8N8v/ojJp4y9hJCNfIu53DrPlRcmOA9WcfVzNJswMgfDHS9D 6VJv/jO1n1pkCgtdjPlPNmCnXd5zFIw8KMChMnXBkY28e/zIoKdWQv1Ebz3jbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641754458; a=rsa-sha256; cv=none; b=Rx2tFIbqW59vCNHWdpv79ZRfI4gC3we7UkShU0CY7xYO8BGWajt6PERLHJ29lj7V8iJ3m3 UU2PeyPVljXm44iSlPdQs/XroNE8qlxSopuY6iy4Stz43rsgZWOfLHssBPFDPsQn50AUOl uwQhZ9uTBbd7q2zu+muR57TUHo8GBkZl7iZ1KExamWtzdd0Ciqqi+++ZrygaFFDx0iG8RM wbTNAQJ2DLA7XPyfCqbfi9CkR9KUlRF0hdJuATlWYIbQeyvZdh6D+QkCrVtwKsbKwA18AG V0B8ZqfrmM2DtdrKVT8TB6lgx84bN2k2dOBWHLa1vV5Oo3DF9WK7uJe44EcC8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=FWf7kV5k; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.91 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=FWf7kV5k; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 41D663DD19 X-Spam-Score: -5.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: PflelId02qtG --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Wiktor, Regarding only > in an attempt to force removal of old store items in hope that=20 > they > would be rebuilt and relinked to the new glibc. Unfortunately,=20 > the > problem persists. which reveals a fundamental misunderstanding about Guix that could=20 prevent you from grokking & fully enjoying it, which is why it's=20 so important to correct. I can't improve on Leo's excellent answer, but I can certainly=20 repeat it, poorly, using different words! Wiktor =C5=BBelazny =E5=86=99=E9=81=93=EF=BC=9A > Thank you for your prompt reply. What about a situation where=20 > glibc is > not an explicit package input? I suspect it is determined by the=20 > build > system definition in such a (common) scenario. I further assume=20 > that > when one runs > > guix time-machine --commit=3Dxxx -- environment pkg > > the pkg definition corresponding to the Guix version xxx is=20 > used, but a > *current* Guix binary is used to execute the environment. What you describe sounds less like Guix, than how the average=20 source-based package manager works today: using whatever random=20 components and GCC version it happens to find lying around on the=20 host system at build time. Guix package builds are completely self-contained, and specify=20 their complete build environment (like a closure). This=20 environment is in effect frozen in time and will never change. =E2=80=98guix time machine --commit=3DCOMMIT -- COMMAND=E2=80=99 builds gui= x@COMMIT,=20 and then everything to the right of the =E2=80=98--=E2=80=99 happens inside= =20 guix@COMMIT, i.e., =E2=80=98the past=E2=80=99. There is no link to the pre= sent. There is no way for an old package built with time-machine to link=20 to the new glibc because the new glibc didn't *exist* in =E2=80=98the=20 past=E2=80=99, which is all the build =E2=80=98sees=E2=80=99. Assuming pac= kage P is=20 bit-reproducible today, building it with guix time-machine in 25=20 years will produce a binarily-exact copy. > I=E2=80=99ve got this intuition that the current binary may assume the=20 > build > system involving a new glibc, whereas the cached xxx version of=20 > pkg > can be from the time when Guix defined a build system as using=20 > an old > glibc. Understandable intuition coming from other systems, but not valid=20 for Guix. Your kernel analogy is more accurate: somehow, once released from=20 its functionally pure build environment, package P is being fed a=20 glibc it was never compiled against. There are many ways this could happen and there's (obviously) a=20 bug here, which can be fixed, but rebuilding old packages in the=20 hopes to change them is a complete waste of time. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYdsvPw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15QDUA/j4mHT8gcz270IdudZ5i9k3oDK5HnaUAys1musTd /qhNAQDjGAqXrzkk1BP2mYdtaaOAs/OdmtHCDZ7nlujo9dEtBA== =oj73 -----END PGP SIGNATURE----- --=-=-=--