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 oLnzNPix+WU1HgEAqHPOHw:P1 (envelope-from ) for ; Tue, 19 Mar 2024 16:40:41 +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 oLnzNPix+WU1HgEAqHPOHw (envelope-from ) for ; Tue, 19 Mar 2024 16:40:40 +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=1710862840; 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=I4ZP0T7wynz0cfzulIS+cszyo0uy+pSO4m5nZTHblHE=; b=b4MXdKhux1q79PQZBQaWCJVYbe9vi6x9UOpWlXepDPWU3qUFRs8kQvZxfPmw/TsUqanJyT QvNhf9WesLq4h+dCOv402ySVGJlnvWxOo2wAKl8TahMFBAOYNBV12B5RTX7bmeqlNtjWTw GXgQoQzjiYcB8wf9SHDyqZPegsvjMFhae4PSD7C6ntdxoeTcxDP7o93/0G5+i3+jKHTx7w YNztVyv2b1qzh4+JKMEYMMUbOJQALFSuc5p9Jg3E9P4Slfpy1jTcnQ3YH53EkkqBkUtAWx /hJjpEVooFVB9bRb8mBhiW9pkPmoP2wMa0j1HByuFCjDY4W6ahXMr256VTFMpA== 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=1710862840; a=rsa-sha256; cv=none; b=V6aw0fv9WbzMuR9Q9hPQXrdLQY6QEx2dc8FGh+0z64XJCSNqHW39xDFBExGdpRsQPNjxvm QkiqIXyKSdX6aTQCgNIu8CAZnGybTuIqEPrxZHGVnzzFi3dr5q+0Chxqu4I02HzVryaSNT 4etKYbZqCfuL/ya1cmo+UsZhcyUNnWXxYBhnFLxWtV7FoW4OBdsQrolZ3UX7flTnNahEJm ZUnr+YOX/lJshbcpPBzPDW/OITwmysWBWO9womcO2Nj7Wb5+Qrywm3VVYyRtNF5wasM49p MJ15kykPKaeWCiynRXiD2l4DXI8CVLm42YUa+G6EJMG3ky4+P8cgc11rOPbipA== 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 8730C15715 for ; Tue, 19 Mar 2024 16:40:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmbZY-0003Zr-7I; Tue, 19 Mar 2024 11:40:16 -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 1rmbZT-0003XF-SM for guix-science@gnu.org; Tue, 19 Mar 2024 11:40:12 -0400 Received: from cczrelay01.in2p3.fr ([134.158.66.141]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmbZQ-000493-KB for guix-science@gnu.org; Tue, 19 Mar 2024 11:40:11 -0400 Received: from [192.168.1.11] (88-170-139-253.subs.proxad.net [88.170.139.253]) (authenticated bits=0) by cczrelay01.in2p3.fr (8.14.4/8.14.4) with ESMTP id 42JFe0pe028407 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Tue, 19 Mar 2024 16:40:00 +0100 Message-ID: <89e1cd35-3d37-4d5a-bf72-cc2147fa7118@iphc.cnrs.fr> Date: Tue, 19 Mar 2024 16:40:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Problem with guix copy Content-Language: en-US To: Simon Tournier , guix-science@gnu.org References: <87jzlyikl2.fsf@gmail.com> From: Emmanuel Medernach In-Reply-To: <87jzlyikl2.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=134.158.66.141; envelope-from=Emmanuel.Medernach@iphc.cnrs.fr; helo=cczrelay01.in2p3.fr X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.30 X-Spam-Score: -6.30 X-Migadu-Queue-Id: 8730C15715 X-Migadu-Scanner: mx13.migadu.com X-TUID: Id5QgEUVHnry Le 19/03/2024 à 11:26, Simon Tournier a écrit : > Hi Emmanuel, > >> Machine_B # guix copy --from=Machine_A bazel --dry-run >> The following derivation would be built: >>   /gnu/store/0lscmi07b2y0aw6hscbgm2h7nqwc6sb1-bazel-6.4.0.drv > Could you share this derivation file? And the one from Machine A? > > To be precise, on Machine B, you should get: > > $ guix time-machine -q -C channels.scm -- build --no-grafts bazel -d > /gnu/store/dnwdzl84cxgk232cwh8843f3dhqmyd69-bazel-6.4.0.drv > > And on Machine A, you get another one, right? Hi Simon, Bazel is now compiled on both machines, but I have similar issue with tensorflow Both have the same derivation file: 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 derivation file and channels are both the same on both machines. But I cannot copy tensorflow from Machine_A to Machine_B: Machine_A # guix package --list-installed | grep tensorflow tensorflow              2.13.1          out /gnu/store/jghvlb5dz4sy1p0cd1qx552r1ldj33wi-tensorflow-2.13.1 Machine_B # guix copy --from= tensorflow --dry-run substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0% The following derivations would be built: /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv /gnu/store/g90vfnx128ifhgy0n1zmlscjrn57l8xm-tensorflow-2.13.1-bazel-deps.tar.xz.drv /gnu/store/h3zcigb52z7m6yyjl785w3a5ls1cjjc7-python-jax-0.4.20.drv /gnu/store/h9m0ix80glph19k4pfqh130nmkil8f39-python-jaxlib-0.4.20.drv /gnu/store/m4icdavpvbryliz34ai8817bb1d3l3xr-python-jaxlib-0.4.20.drv Without dry-run he would try to recompile tensorflow on Machine_B which results in a memory crash. Am I doing something wrong ? Why 'guix copy' derivation is /gnu/store/4g2whbzgn5nqs55x9iqgg23jdapf1srk-tensorflow-2.13.1.drv instead of /gnu/store/s6fm43503ra6yxclqvk80gfiw4zxbp91-tensorflow-2.13.1.drv ? Cheers, Emmanuel > For instance, run this command on both machines: > > cp \ > $(guix time-machine -q -C channels.scm -- build --no-grafts bazel -d) \ > /tmp/machine-X.drv > > where X is A or B, respectively. > > These files track exactly how the item is built (derived). Therefore, > since the hash of the output differs, you should differ somewhere. > Previously, you checked about the inputs, now we need to compare the > complete derivation. > > > Cheers, > simon > > PS: Please note that the content of two store items might be bit-to-bit > identical with different store item paths (hash). > > Consider the example with the exact same source where the difference > is just one comment somewhere in the code. Then, their hashes are > different. However, once compiled the binaries are identical > (compiler usually removes comments). > > Since the hash of one input (source) differs, then the store item > paths are different but the content of these both store items are > bit-to-bit identical. > > The machinery to track down the origin of the difference is all > these derivation .drv files.