From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wPDSDfii/WUlTwAAqHPOHw:P1 (envelope-from ) for ; Fri, 22 Mar 2024 16:25:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id wPDSDfii/WUlTwAAqHPOHw (envelope-from ) for ; Fri, 22 Mar 2024 16:25:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mS1KfZ4y; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711121144; 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:dkim-signature; bh=Ag9Pj28yiBjYXx01nOgFzciC9JsyIUpABcq5GfOc+fw=; b=bF5vqzYd/rVIjCtCoCNcUjVZF4F+O6aIsP7D0PoXsiVKshQWlqsAXoEl0JG9rs45w7iJYE zwQfF5ySWKPQ3sTDYZQUZa8g44B4NP4RAVcJ+bgGyzt8nf2VmgH04PNe2h6C9TuxpWsDeT srQ7RYCjKYtk0xx+GMKG6W1jaTE9maXbrvLY8Ul6L1YbMc2yQhaKxUZ7byqXpYMuMeq2cX zqEvz2mc1X/v+dpjp6tTiKSpoq1P1dGWo/F9YW7dsglstVfBgLiaeQp8tR1FnPssQHeuuW FAhrbBjj5IWJ4NYdyC8EBZ0uaGrctQk1XXC+WWddWY7kQzw3x6G2xTM56ZLn3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mS1KfZ4y; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711121144; a=rsa-sha256; cv=none; b=ddSZBkuMIIzth4HjdzC9PuJQjEEwmXahCUXiur6J3sXJoqGZL1qh90pB9MSqO4dotS48ax hTJNMK/7wCekCZLusOYWqKXebA8EngjvLJrMVIUeYSBOmsVTnHKl4lEt7RNIQJjTe9HoYD QZqC0kT6qKxGhROHcqGUMU/MH100nen3WW49MugbGas4woWU2YSBCsiDf7DdLqSXBXxqO6 2xYhFpj2S39R3RbcKyG2WTcu3L/CSVfU8RfmzUJBuyIilVpKbJTaslYmsDWP8ADPrjv0Xl +Ibixaz7sAFo4ni4IhL+3zCjO/gEPv7fr9gbRc+A8HiU3IKKv+Q3x9Tfrl70xw== 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 CCCCE8069 for ; Fri, 22 Mar 2024 16:25:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnglw-0005UN-Dq; Fri, 22 Mar 2024 11:25:32 -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 1rnglu-0005T9-1V for guix-science@gnu.org; Fri, 22 Mar 2024 11:25:30 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnglr-0004ts-HL for guix-science@gnu.org; Fri, 22 Mar 2024 11:25:29 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4146fcb3559so3991725e9.1 for ; Fri, 22 Mar 2024 08:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711121125; x=1711725925; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ag9Pj28yiBjYXx01nOgFzciC9JsyIUpABcq5GfOc+fw=; b=mS1KfZ4ygGmxwwn7PvBlMHRbUBNhl3ryguDCGBUvSiNKW/qdPUgdaGEMiRPyoAygRt qKdCVvMl3dEbMlLbFS04AtFoae1Ih168cZWINQxkSKo9qG8xorl9KbbOaCA3BZuTdoli g9paKxiZa6GuqUBFk3WqqfsisKwfF1EhakUmmAk2A8e7kVfyHpCP6Zvs10vWJp0hcmAv ssUzEOR0e8BgO5b6hYDiYNBtCFu36PUlhEjiSkXWsViYX2CjO9tfsO1aTjqhN/ancIk0 ZJ6s6l0DSGRmxH+Amp/yj05cBfRsVjY5QktaaL9xGdk6K2qYu7kaKtNJVneorPH5u2t6 ZXHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711121125; x=1711725925; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Ag9Pj28yiBjYXx01nOgFzciC9JsyIUpABcq5GfOc+fw=; b=BenOQ550nxZH5hLNj+TOaAc8HxWgLjSzVbuIAycv+RgogQpCwbcS1ILxmWEgbi1v2G gV09lZGLRgiIz2XCIwvqpGcESQJ/Hdwo87ni7FcSgJp4nTLC8QpNqvsbPSp1wm0y2M7X hgrfWNe1iJwmExuQcAjWpUH1sidDVwWZmC2x+Kdf/i591zuoGGoxBAjpLuOPq6sBxuFJ 10N47x1HQvQMdODX2b/w+Vw9QP0F4TuJY2GoAVRBfMMTDOZRDLXAlmYEguleR/RHZzI2 mzVqCdKLEjFjBte3IkVXd8R9cg9vRSpfMQ5ZmBhTJEnNKw4M5eLh084/F8PV56ZRc1lP SGtw== X-Forwarded-Encrypted: i=1; AJvYcCUOOsrOm3yJHb0xd2RBhDqdN0jOsYWbkXqRSqIbIG35EF3JcUemtHwToB1/yYOV18dfSs+V3ivdtZEB/fRieDl8yq0z7w== X-Gm-Message-State: AOJu0YxAWxyKLB9qz8qGUr8LLuScvI6GMC95TxrQYvHCTp5RzmJl005C 44+0Z90TCQ9xN7WRdToBgbxH5Edo+lGwhbz+swnbVJsmClqLX7kHbYE3LJpp X-Google-Smtp-Source: AGHT+IGWc4uDa1hAUbEcsAY+VZuYEP6eylc9Y8SRIl0FFru1lNNXOusokAinC1WzIi5ZR/dtfTN6rg== X-Received: by 2002:a05:6000:ccf:b0:341:9073:e9d with SMTP id dq15-20020a0560000ccf00b0034190730e9dmr1524571wrb.2.1711121125337; Fri, 22 Mar 2024 08:25:25 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-44.net.univ-paris-diderot.fr. [194.254.61.44]) by smtp.gmail.com with ESMTPSA id o17-20020a05600c4fd100b004146b00cd9csm9161547wmq.11.2024.03.22.08.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:25:24 -0700 (PDT) From: Simon Tournier To: Emmanuel Medernach , guix-science@gnu.org Subject: Re: Problem with guix copy In-Reply-To: <89e1cd35-3d37-4d5a-bf72-cc2147fa7118@iphc.cnrs.fr> References: <87jzlyikl2.fsf@gmail.com> <89e1cd35-3d37-4d5a-bf72-cc2147fa7118@iphc.cnrs.fr> Date: Thu, 21 Mar 2024 23:19:26 +0100 Message-ID: <87il1ftehd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Migadu-Queue-Id: CCCCE8069 X-Spam-Score: -9.61 X-Migadu-Spam-Score: -9.61 X-Migadu-Scanner: mx10.migadu.com X-TUID: 8t6vzOZTJONB 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= =20 > --no-grafts tensorflow -d > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > > Machine_A # md5sum=20 > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > c7833f974f217ada62b3eb6cdccee11f=20 > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > > Machine_B # guix time-machine -q -C ~/.config/guix/channels.scm -- build= =20 > --no-grafts tensorflow -d > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > > Machine_B # md5sum=20 > /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv > c7833f974f217ada62b3eb6cdccee11f=20 > /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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 2.13.1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 out=20 > /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 ten= sorflow -d > Machine_B # guix copy --from=3D tensorflow --dry-run [=E2=80=A6] > /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv [...] > Without dry-run he would try to recompile tensorflow on Machine_B which=20 > results in a memory crash. Yeah, that=E2=80=99s expected because it needs the non-grafted item. > Why 'guix copy' derivation is=20 > /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv=20 > instead of=20 > /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 =E2=80=9Cguix copy --no-grafts=E2=80=9D? 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 =E2=80=9Cguix copy=E2=80=9D 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, =E2=80=9Cguix gc=E2=80=9D c= an be helpful for tracking the derivations, I guess. Cheers, simon