From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OFyXEEVOAWYatQAAqHPOHw:P1 (envelope-from ) for ; Mon, 25 Mar 2024 11:13:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id OFyXEEVOAWYatQAAqHPOHw (envelope-from ) for ; Mon, 25 Mar 2024 11:13:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=cnrs.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711361605; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=8AzIPsoIh8k85lZacI98AiPfvSR03KKpozSi4H+u7AM=; b=nDbJXtgmTvwuG9hsNBpdcvsXVYPOoNo6MyOwjZ6uxFBh9i9CCuoEtDECf4/AUsdWaSFdjT wegF8Lp7nHXuGTaD+ueLL+tx/38dsUDqp/j77X/wXIPQDDcrc4Rud/nFLVNNmtXwuRf9js Ko2Qsq+hzaMlyX4lBxirkKKj1xcyUnoDoqWPAh7WzhWU8+MItQErhImQcKl/Mo5SUjdAk8 GQSwcbxN9SDvbZCmm7VjpcA1jRGyIcWMpe0OsjNSjCDDSZA0h4kx16v7tOsRLpAHKjnWkV yeSc4f1HyRJoqsNss+qj/sJSKjR1qvJfRslMjqi67QQzvuujQLTg9MWiaa3wjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=cnrs.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711361605; a=rsa-sha256; cv=none; b=CCzQoMX9mtbdCE3/JuY2lZU/Pb9T2sTIGVFQpMxK9tbwljAClI0bPt6QZ63mjpa3KZiTiS lcc2xQiAOxzW0D1/Pi+aONKrcNwr5IU9+TSGOEzfKF3Ibac4fnZ0WktLBhSubTFmmddUHb Zb6V13iiBfrVBqVO7zfjJsgWxbtvEfxBG9xnfKeoOUq86LCdgXJoyKXp1c3afb2rXQPlFo 3Ir3/wcQoENujG8nysX4l25QeKxBh7uoyxxbpDGAgRrBN+g2yRE4sUtemSEsAmsbLS+Sxa DO8/sNhOzbOKXe1f6EUWZ+ncynSWK8sVUkhlFGy/Nu6+unEDZkVcuSOb20x6bw== 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 C74BF45FD5 for ; Mon, 25 Mar 2024 11:13:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rohKN-0003jx-Td; Mon, 25 Mar 2024 06:13:17 -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 1rohKK-0003jQ-Qq for guix-science@gnu.org; Mon, 25 Mar 2024 06:13:12 -0400 Received: from cczrelay02.in2p3.fr ([134.158.66.142]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rohKH-0004Ic-ME for guix-science@gnu.org; Mon, 25 Mar 2024 06:13:12 -0400 Received: from [193.48.89.201] (sbgat392.in2p3.fr [193.48.89.201]) (authenticated bits=0) by cczrelay02.in2p3.fr (8.14.4/8.14.4) with ESMTP id 42PAD0Wb023553 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 25 Mar 2024 11:13:01 +0100 Message-ID: <2527dd6a-854a-4ed2-990e-c337e6a18243@iphc.cnrs.fr> Date: Mon, 25 Mar 2024 11:13:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Problem with guix copy To: Simon Tournier , guix-science@gnu.org References: <87jzlyikl2.fsf@gmail.com> <89e1cd35-3d37-4d5a-bf72-cc2147fa7118@iphc.cnrs.fr> <87il1ftehd.fsf@gmail.com> Content-Language: en-US From: Emmanuel Medernach In-Reply-To: <87il1ftehd.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=134.158.66.142; envelope-from=Emmanuel.Medernach@iphc.cnrs.fr; helo=cczrelay02.in2p3.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, PDS_BTC_ID=0.499, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -1.42 X-Migadu-Queue-Id: C74BF45FD5 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.42 X-TUID: AcYXf/18AqiU Le 21/03/2024 à 23:19, Simon Tournier a écrit : > Hi Emmanuel, > > On mar., 19 mars 2024 at 16:40, Emmanuel Medernach wrote: > >> Machine_A # guix time-machine -q -C ~/.config/guix/channels.scm -- build >> --no-grafts tensorflow -d >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv >> >> Machine_A # md5sum >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv >> c7833f974f217ada62b3eb6cdccee11f >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv >> >> Machine_B # guix time-machine -q -C ~/.config/guix/channels.scm -- build >> --no-grafts tensorflow -d >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv >> >> Machine_B # md5sum >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv >> c7833f974f217ada62b3eb6cdccee11f >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > The 2 derivations are the exact same. Since they build tensorflow > without grafts, it means the issue comes from grafts, no? > > >> Machine_A # guix package --list-installed | grep tensorflow >> tensorflow              2.13.1          out >> /gnu/store/jghvlb5dz4sy1p0cd1qx552r1ldj33wi-tensorflow-2.13.1 > This information is useless, I think. What is needed is the derivation > for grafting. Something like: > > Machine_A# guix time-machine -q -C ~/.config/guix/channels.scm -- build tensorflow -d > > > >> Machine_B # guix copy --from= tensorflow --dry-run > […] >> /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv > [...] > >> Without dry-run he would try to recompile tensorflow on Machine_B which >> results in a memory crash. > Yeah, that’s expected because it needs the non-grafted item. > > >> Why 'guix copy' derivation is >> /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv >> instead of >> /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv ? > Well, on Machine_A, these > > # guix build tensorflow -d --without-grafts > # guix build tensorflow -d > > should produce two different derivations. Right? On my machine, I get: > > --8<---------------cut here---------------start------------->8--- > $ guix time-machine -q -C channels.scm -- build tensorflow@2 -d --no-grafts -n > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > > $ guix time-machine -q -C channels.scm -- build tensorflow@2 -d -n > /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv > --8<---------------cut here---------------end--------------->8--- > > > What does “guix copy --no-grafts”? > > > Well, to be sure we are on the same wavelength: there are 4 derivations, > > + Machine_A: the real build (--no-grafts) and the grafted > + Machine_B: idem and idem > > So the debug seems: > > + check the no-grafts derivations are the same on both machines > + check the grafted derivations are the same on both machines > + check that “guix copy” copy both (no-grafts and grafted) > > Emacs provides a mode for easing the manipulation of derivation and > Scheme builder files. If you do not use Emacs, “guix gc” can be helpful > for tracking the derivations, I guess. Hi Simon, Here are the results: Machine_A # guix time-machine -q -C ~/.config/guix/channels.scm -- build tensorflow -d --no-grafts /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv Machine_A # guix time-machine -q -C ~/.config/guix/channels.scm -- build tensorflow --no-grafts /gnu/store/3mq3q11ripx53xg60shbshk7cr470yfx-tensorflow-2.13.1 /gnu/store/qc234r07i3ndgrpa0fdkpkbg4d20h7i1-tensorflow-2.13.1-python Machine_A # guix time-machine -q -C ~/.config/guix/channels.scm -- build tensorflow -d /gnu/store/vivxpmrpkh1wq5pnw28vq9c51qd3vwf6-tensorflow-2.13.1.drv Machine_A # guix time-machine -q -C ~/.config/guix/channels.scm -- build tensorflow /gnu/store/jghvlb5dz4sy1p0cd1qx552r1ldj33wi-tensorflow-2.13.1 /gnu/store/1pzdf2rfifgwdw92g8438mhqvzx948s5-tensorflow-2.13.1-python For  all  of  this  store elements  guix  copy  on Machine B  tried to recompile tensorflow.  I ended up  to copy  the whole  profile, this  copy worked fine: Machine_B # guix copy --from=MachineA /gnu/store/...-profile Machine_B # guix package --list-installed | grep tensorflow tensorflow              2.13.1          out /gnu/store/3mq3q11ripx53xg60shbshk7cr470yfx-tensorflow-2.13.1 For now I will copy whole profile instead of store elements. Thanks for your help, Cheers, Emmanuel > Cheers, > simon