From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4DFDFHVbCWfuuAAAe85BDQ:P1 (envelope-from ) for ; Fri, 11 Oct 2024 17:08:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4DFDFHVbCWfuuAAAe85BDQ (envelope-from ) for ; Fri, 11 Oct 2024 19:08:05 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=jMHVsliu; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="eEMX/xbq"; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728666485; 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: 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=DrCTwqP0q0dHhFawmjlGaBS3Ra5tHvXDeqlqZmxugf4=; b=I2i6Q7NIgGrGZfkDLIc721lii75TZOGggETBH2n6Szei/0UagnqND+APHxQiorD9drm6LP DZV9Eg8q6Qnd35FiQnc5azg6m90ciremmL5nAACEjoQtyW5wTe+uZ8+t8Sa9lRvSsdRqb4 ytJLmN379JKu1JtRCo3R66an7Gh+/9fbKY6BVvQ2Gm7pqkEgunw3ficom5jIpW4BnIP0rz lTfeWhd6dJi+BSWGW/LL8hChFg6yTgNFSJyL38TbzGb04kBEg/vbnHdNKb6aDVQ30TLV7p 79lUTuHdUuFivfVg71XVL1vFFGLhcvws2OzdzJxnPvFFTjZoamftCC7hwAVMqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=jMHVsliu; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="eEMX/xbq"; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728666485; a=rsa-sha256; cv=none; b=HyWjhiVDwhlVpn2VX2GOPp9drktzpQTky6hsOhe8CuVlHbgutFjJ7AxAhfbNky21FMC6yN dTyMXUTOysLsP6n/XhrvbkNuzKAuj6T9IWOOTXK5Tc1cxaMX6mZoGUm/H1T97lomTmqc7C wpAJTS6NpZ0UOLNQACtm0MHyJScP/6waKdyyYQ81W0bVjBM68s8oYSzfjREAso4sW24yIO Oh0bRasIz/A/QR8Ey9dQ+Jf6Ajtr8WxWzpV0KxGZ69uR8MEvSadKYjtHYnBNtW12q+Q62e 8MRHEc7IK40uWfA/YeDYeAQqqzfhZvdsWlXbOf6q2mqS26zWCOAUT0mcekSSHg== 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 B88247D85E for ; Fri, 11 Oct 2024 19:08:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szJ48-0000qt-Tr; Fri, 11 Oct 2024 13:04:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szJ44-0000hu-TG for bug-guix@gnu.org; Fri, 11 Oct 2024 13:04:32 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szIZN-0006bL-OL for bug-guix@gnu.org; Fri, 11 Oct 2024 12:32:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=DrCTwqP0q0dHhFawmjlGaBS3Ra5tHvXDeqlqZmxugf4=; b=jMHVsliulwB33j8Yxaw3P4UeZ44vc3Fo3cNQXzRCDlQ/0c4tMXgghxQ9BORIptRSuBOYYnFwm/tp/OeFPUCM/y2fwDXgAJksmyIqW0UtW8t8JWnJSUmevIw5mzKpFJJ7RN+3FsY8i6tc+eaEjTImZu41k30rKJXhIUbqis2ulKmG39EPHKRG4nuj84VOwYoZFPlqI+2OMpp60PQ69bWv9mHn3PAPcmYoSfn4ZuTd8MGCizM1pPO7+itSoW28ep0VJKSdpMhgHdXfjBqo99O6h+OTWNvtRKZ2WsWzkYtLUXHq+M3boTKAAOgqQJOv1a2YwhuTiyuZy/8tqx5gKlgkWQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szIZa-00048U-JV for bug-guix@gnu.org; Fri, 11 Oct 2024 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#73602: bug#73601: failed to compute the derivation for Guix References: <41a1c033-9a87-4521-9a28-e0f254f3defd@univ-rennes1.fr> In-Reply-To: <41a1c033-9a87-4521-9a28-e0f254f3defd@univ-rennes1.fr> Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 11 Oct 2024 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73602 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Fabrice Tudoret Cc: 73602@debbugs.gnu.org, 73601@debbugs.gnu.org Received: via spool by 73602-submit@debbugs.gnu.org id=B73602.172866434415826 (code B ref 73602); Fri, 11 Oct 2024 16:33:02 +0000 Received: (at 73602) by debbugs.gnu.org; 11 Oct 2024 16:32:24 +0000 Received: from localhost ([127.0.0.1]:35078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szIYx-00047A-Ox for submit@debbugs.gnu.org; Fri, 11 Oct 2024 12:32:24 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:54661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szIYu-00046y-PZ; Fri, 11 Oct 2024 12:32:22 -0400 Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5c5b954c359so2618526a12.1; Fri, 11 Oct 2024 09:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728664266; x=1729269066; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DrCTwqP0q0dHhFawmjlGaBS3Ra5tHvXDeqlqZmxugf4=; b=eEMX/xbqK+wg1F+8q+7Kx6t3nMaBoe56r0e5phZxq4Yeb+kXm+e5VJsgO3kCiGSgRI AdfTkLyRYUSNFb5Gt1lMt1+LA/ag8/ZjID2U2HZ3LYqIC0dp+iGh/RuGtcmzO3Ec/lAU 7w6F498VR+bbFXaRFeKHzyFBRefckPX28jjoIUk92B8VTk/hbasyh2lHnWuiZvEKdKI+ YkxDsd4tqKa4UeklquagNQVbjLkDAyDLFxQc8NC9p2zVU3MAC7sHJdWxB1ks1WGPAvPL HW+tpBPH2h6n1ZM0adgIGFyawGMYMx/bqk25EGCUBJTgSh2ObQcF3iz/f3xjG5pp1pJL 3Y2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728664266; x=1729269066; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DrCTwqP0q0dHhFawmjlGaBS3Ra5tHvXDeqlqZmxugf4=; b=QUSN2ya/K7mPP4Ew8avg3skw6O4OAe4KsT4M5FJ5tWUuHUucLi5WOOMoqhR7BwZL+T Qb0pzx8CGzI3VYiWjksBIT5Ua3ivMbACQlKK/oEreGv9a8cAbZmt3iPiSkbHy0mffGeq ieso9lyU3g1g/WOGlZgStoOmZzqs/wjEdhawLFBkCrowr6lBlpwDn+Y1/IIjyfa0e9nR NYb8Xws9jt9B2lXylIgx+R6Bdo202CdJVcw4PemE7ePS20oSSr1ZU2x60CxKM5MUtOJA oA/VPtAuLnkZvzSfdgdV27ZJh3av3C1WUyUhxlqrCGMTjpBvy+/bvhJ96bOfRaPe7EFK 7hWw== X-Forwarded-Encrypted: i=1; AJvYcCX/okZmqcEOfka/dM4DYgutvjXFLEL+JToeZZnYQzlnRYlwt2yI4ro13rUeFnfs+8AgttMnbg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwluyWkNjGsnpLgKmwUwADwtUoTlWB2dgE0D+d+5MdF8KJzGCpW ZNUTwHC16zHQYR6Qfxjca3DGZ6Fu025cRC++4hNCKjeXwmE16/kBGhA7BA== X-Google-Smtp-Source: AGHT+IGyaKf8hcuSygtjB0z2EWnoXOuN3kKjghCXsm+Xh97jKFlTajSssys1lURLpIxUI9OhTrFf6w== X-Received: by 2002:a17:907:1b16:b0:a99:482c:b2b9 with SMTP id a640c23a62f3a-a99e3b757e9mr30532666b.29.1728664266338; Fri, 11 Oct 2024 09:31:06 -0700 (PDT) Received: from lili ([89.207.171.110]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7f27d6bsm228108966b.76.2024.10.11.09.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 09:31:05 -0700 (PDT) From: Simon Tournier Date: Fri, 11 Oct 2024 18:30:45 +0200 Message-ID: <87y12ufvpm.fsf@gmail.com> MIME-Version: 1.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 3.08 X-Spam-Score: 3.08 X-Migadu-Queue-Id: B88247D85E X-TUID: 0CAsNPwp/UuI Hi Fabrice, On Fri, 11 Oct 2024 at 15:13, Fabrice Tudoret wrote: > GUIX seem's to work fine with the root account and the local users but > not with ldap users. Ah, that doesn=E2=80=99t ring a bell but maybe it=E2=80=99s related. I don= =E2=80=99t know. > 1- Just to be sure and since you have reinstalled, what is your Guix revision? On a side note, since it seems fine for the root account and here you run it as root, I guess all is fine. :-) Although I don=E2=80=99t have the same=E2=80=A6 =F0=9F=A4=94 > [root@cluster24 ~]# cat /gnu/store/jc3vgcsplqsim3na80b0n2iilna5j6gx-Pytho= n-3.5.9.tar.xz.drv | sed 's/)/)\n/g' > Derive([("out","/gnu/store/cv4h89n30myf3nhjqnnahlbij2gaw21z-Python-3.5.9.= tar.xz","","") > ],[("/gnu/store/21c7pjahkh20mmzq2ivki57zwwvp6nwn-bootstrap-binaries-0.drv= ",["out"]) > ,("/gnu/store/5gf7f8awndhnf2gn2mzbfbqr3ix9aj80-module-import-compiled.drv= ",["out"]) > ,("/gnu/store/g08l2msvnivyi6x5nw52ak8n17sw9lzr-guile-bootstrap-2.0.drv",[= "out"]) > ,("/gnu/store/lb5b7svdmfj1ijnzrripsjcv0bhqzpwb-Python-3.5.9.tar.xz.drv",[= "out"]) > ],["/gnu/store/1s8jdafkyhz0p81l0j37yih9gbrb5gix-module-import","/gnu/stor= e/h58cvdcdak4d87lw0fkvmkhan95ssljx-Python-3.5.9.tar.xz-builder"],"x86_64-li= nux","/gnu/store/lgi9x15a0w35mcpd7g1kb9274r6wy4pv-guile-bootstrap-2.0/bin/g= uile",["--no-auto-compile","-L","/gnu/store/1s8jdafkyhz0p81l0j37yih9gbrb5gi= x-module-import","-C","/gnu/store/gz5rcilhcsc5amgxcgyxvn0s5px8sg80-module-i= mport-compiled","/gnu/store/h58cvdcdak4d87lw0fkvmkhan95ssljx-Python-3.5.9.t= ar.xz-builder"],[("guix properties","((type . origin) > (patches . 0) > ) > ") > ,("out","/gnu/store/cv4h89n30myf3nhjqnnahlbij2gaw21z-Python-3.5.9.tar.xz") > ]) > > > 2 -The script builder > /gnu/store/ykqckrxcmifvxz0nb58lv2drgd14l377-Python-3.5.9.tar.xz-builder > is well present in /gnu/store. Ouf. :-) Well, since it works as expected when run as root (#) and it fails when run as a regular ($), I propose to diff various files in order to spot what could be wrong. Some details about some internals =E2=80=93 well my understanding and I=E2= =80=99m perhaps missing important points =E2=80=93, then maybe they will explain the logic behind the exploration. :-) Roughly speaking, the items in the store look like: /gnu/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-foobar-1.2.3 where =E2=80=99foobar-1.2.3=E2=80=99 is a =E2=80=9Clabel=E2=80=9D correspon= ding to the package and =E2=80=99xxx=E2=80=A6=E2=80=99 is some hash. This hash is the core of the = content-addressed; the one that allow the substitution, i.e., download the artefacts. Basically, this hash is computed by hashing the inputs and the script builders. Therefore somehow it builds a chain and the roots are named fixed-outputs. Fixed-outputs are items for which we known beforehand the resulting hash. Else we cannot know the hash beforehand because it=E2=80=99s hard to know beforehand the checksum of the artefact since the artefact is the result of the build process (compilation, etc.). In other words, the expectation is: the same inputs and the same builder script returns the same store item. And the derivation captures that. Well, for sure the content of the store item on two machines is the same only if the process is fully deterministic; another story. ;-) All that to say: if we scrutinize the derivations and the builder scripts, then we will spot what introduces a difference. Aside, please note that two different derivations might produce the same store item, see for example [1]. Let=E2=80=99s go! :-) a) Both root and regular must use the exact same Guix revision. # As root # readlink -f (type -P guix) # guix describe $ As regular user $ readlink -f (type -P guix) $ guix describe b) If that=E2=80=99s not the case, it isn=E2=80=99t an issue for the follow= ing but it=E2=80=99s better to know. :-) c) Display the both derivations, as root and as regular user # guix build -e '(@@ (gnu packages commencement) python-boot0)' -S -d $ guix build -e '(@@ (gnu packages commencement) python-boot0)' -S -d The expected situation is: as root, # guix build -e '(@@ (gnu packages commencement) python-boot0)' -S it just downloads stuff but as regular user: $ guix build -e '(@@ (gnu packages commencement) python-boot0)' -S then it builds stuff and one build fails. Correct? d) Display the content of the both derivations, as root and and regular user. drv=3D$(guix build -e '(@@ (gnu packages commencement) python-boot0)' -d = -S) cat $drv | sed 's/),/\n),/g' Now we can try to find what can be wrong. :-) Roughly, the inputs are one fixed-output and these three others: /gnu/store/g08l2msvnivyi6x5nw52ak8n17sw9lzr-guile-bootstrap-2.0.drv /gnu/store/38951a2gcwb4jyrwlzg634jfwkdih7m2-bootstrap-binaries-0.drv /gnu/store/ff107pg13nkarix7k9hgxxwx9cnn4602-module-import-compiled.drv Well, please note that the hash of these derivations might vary but not their output. For instance, # sed 's/]/\n]/g' \ /gnu/store/38951a2gcwb4jyrwlzg634jfwkdih7m2-bootstrap-binaries-0.drv= \=20=20=20 | head -1 Derive([("out","/gnu/store/az8fi8xzgvkqw9aynxks98h29afal6i2-bootstrap-b= inaries-0","","") Here the hash =E2=80=993895=E2=80=A6=E2=80=99 might be different but not = =E2=80=99az8fi8=E2=80=A6=E2=80=99. The same derivation produces the same store item though. Ok, let consider each. I know that piping with =E2=80=9Csed=E2=80=9D is no= t handy and an extension [2] ]is still pending=E2=80=A6 Anyway, please pipe the derivat= ions in order to extract the relevant information. 1. /gnu/store/=E2=80=A6-guile-bootstrap: it only depends on fixed-outputs s= o the only source of variation comes from the script builder: in my case, /gnu/store/nmxl6qyj16bv4rx4irhg23r66gn752kd-build-bootstrap-guile.sh I expect you have the same. As root, you have because it=E2=80=99s the same derivation, namely /gnu/store/g08l2msvnivyi6x5nw52ak8n17sw9lzr-guile-bootstrap-2.0.drv. What about the regular user? 2. /gnu/store/=E2=80=A6-bootstrap-binaries: the inputs reads, /gnu/store/ff107pg13nkarix7k9hgxxwx9cnn4602-module-import-compiled.drv /gnu/store/g08l2msvnivyi6x5nw52ak8n17sw9lzr-guile-bootstrap-2.0.drv /gnu/store/nf9h1l2apgjq1gjdv1ynpgqrmaj1bawb-static-binaries.tar.xz.drv /gnu/store/sik0rp63q7hz4wry27v3ynljdmqvg194-xz.drv /gnu/store/zn60yim3km5qx8d0vzvf9izfxzfdy4x0-tar.drv Assuming #1 (identical guile-bootstrap) and the only non fixed-output is module-import-compiled. Or the script builder. Do you have the same script builder, namely /gnu/store/kv2vjnp7f75wnq8rp579ihz96knqp0sl-bootstrap-binaries-0-builder ? I guess you have the same. Therefore, I guess the issue is from module-import-compiled. 3. /gnu/store/=E2=80=A6-module-import-compiled: On my machine, it reads: --8<---------------cut here---------------start------------->8--- Derive ([("out","/gnu/store/j2r95mqfir1q6hsavm0r22k8z49nbvk1-module-import-compile= d","","")] ,[("/gnu/store/g08l2msvnivyi6x5nw52ak8n17sw9lzr-guile-bootstrap-2.0.drv",[= "out"])] ,["/gnu/store/jsxgc979x79h81kzqz9n6cpf5pk4z262-module-import","/gnu/store/= l36kgiw25r2a4vllwad18jg8jnkvmzda-build-utils.scm","/gnu/store/rn7b0dq6iqfmm= qyqzamix2mjmfygn31n-compile-modules"] ,"x86_64-linux","/gnu/store/lgi9x15a0w35mcpd7g1kb9274r6wy4pv-guile-bootstr= ap-2.0/bin/guile",["--no-auto-compile","/gnu/store/rn7b0dq6iqfmmqyqzamix2mj= mfygn31n-compile-modules"] ,[("GUILE_WARN_DEPRECATED","no") ,("extensions","") ,("module count","1") ,("modules","/gnu/store/jsxgc979x79h81kzqz9n6cpf5pk4z262-module-import") ,("optimization level","1") ,("out","/gnu/store/j2r95mqfir1q6hsavm0r22k8z49nbvk1-module-import-compi= led") ,("preferLocalBuild","1")]) --8<---------------cut here---------------end--------------->8--- I guess you also have the same build-utils.scm. Don=E2=80=99t you? Therefore, I guess the difference is either an environment variable (the list starting with GUILE_WARN_DEPRECATED) or the file /gnu/store/=E2=80=A6-qcompile-modules. Hum, it would be weird that it comes from compile-modules=E2=80=A6 Ah my train is at destination. To be continued=E2=80=A6 Let me know! Cheers, simon 1: Re: Derivations differ between computers? zimoun Fri, 26 Nov 2021 01:49:00 +0100 id:86lf1bspvn.fsf@gmail.com https://lists.gnu.org/archive/html/guix-devel/2021-11 https://yhetil.org/guix/86lf1bspvn.fsf@gmail.cmo 2: Guix extension to display derivation (and rewrite fixed-output) Simon Tournier Fri, 12 Apr 2024 20:28:11 +0200 id:87ttk6phac.fsf@gmail.com https://lists.gnu.org/archive/html/guix-devel/2024-04 https://yhetil.org/guix/87ttk6phac.fsf@gmail.com