From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EDHID8Pq81+zRAAA0tVLHw (envelope-from ) for ; Tue, 05 Jan 2021 04:27:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8DmTC8Pq81/6KQAA1q6Kng (envelope-from ) for ; Tue, 05 Jan 2021 04:27:47 +0000 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 57D239403D3 for ; Tue, 5 Jan 2021 04:27:46 +0000 (UTC) Received: from localhost ([::1]:36882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kwdwf-0001fl-AG for larch@yhetil.org; Mon, 04 Jan 2021 23:27:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kwdwW-0001fb-K6 for guix-devel@gnu.org; Mon, 04 Jan 2021 23:27:36 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:35600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kwdwU-00053o-NP for guix-devel@gnu.org; Mon, 04 Jan 2021 23:27:36 -0500 Received: by mail-pj1-x1034.google.com with SMTP id b5so968120pjl.0 for ; Mon, 04 Jan 2021 20:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=t7cGINH4sb2ONjKizd8g3wMXNzoeUyCszY4nXSFaJFw=; b=Cc1v0TzZYiSPqokxZvSQ5tT5B6rFCzkGiDvchaiHSVnuLs89zcvIZkCWQpkGnRvE8E Lzjpjy0JWiyYSg09UvvSHFwQHLzlLTSsjIVI4McUHlyoEEgo6ZAuPAOPd2UdEPwdZjGJ XOUBflFeLBTxzCzRGVcaqg7iApUh/a072zHFnEva0uVslr2OeyuuJZ2PqkzyATUQ7Lfi cyjb8+vc0tgOXfsZ82JSIFiYEcEINWoFwLdBhFj0jPlPkqFz/fEfkXWNZT9u/+9Tdcvu ub/fgUJBGRF+1HCYBZEhRSdTQbLZ+MW7ykCb9symIKneeEOofgl2Edp2vkXAwxw1G7aA qyXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=t7cGINH4sb2ONjKizd8g3wMXNzoeUyCszY4nXSFaJFw=; b=ctBwiAJ/N8TMHP/P3lQ4JQQQtsxZVgRAqznHXaV0ErjLHd0C8qHZoWHK+w7tsR6FD8 VnTsjez2BVZJp+0hCyMqpTsIQT6YqTKUPNtH6mtzGDidpfQVDwhy2ECK33HLzFTgduVQ zxg7JZqchF4q1qsFGQ9/OajyJJULyGNaqH8it+wheAALoC8dnk612AR619YFQZNCDUPA TI7JbInl60MV81WN9e7mMZs13jkSXR6brRtkQ/AgP+etMeIt4kSxxrS0/Ui5sWpPuuHw C0iw6unvs654R2/uzxOttrJEjqIe9aYPfzui5/GdyXPHyBUmGslBrZx6pOtFHDq28oEs MRyg== X-Gm-Message-State: AOAM53195lRD5ZaWWRXoV2FrmYETdLiVWrkp1fGC0lX1BB35rquIPeFV 8HvWghSaeS2lwsiu8BazICJ7aLoMoukqTA== X-Google-Smtp-Source: ABdhPJz5+lL8bBHofiLjFczscQcUHO/2IN84CvxUkbJ376ankKMKrl0nx4zl3VDfC/46bwy6tN+NLw== X-Received: by 2002:a17:90a:f408:: with SMTP id ch8mr2233530pjb.222.1609820852930; Mon, 04 Jan 2021 20:27:32 -0800 (PST) Received: from garuda-lan ([2601:601:9d00:688::e6b]) by smtp.gmail.com with ESMTPSA id t25sm61786295pgv.30.2021.01.04.20.27.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 20:27:31 -0800 (PST) From: Chris Marusich To: guix-devel@gnu.org Subject: Re: guix build -d with a target causes many builds References: <87turwypuv.fsf@gmail.com> Date: Mon, 04 Jan 2021 20:27:30 -0800 In-Reply-To: <87turwypuv.fsf@gmail.com> (Chris Marusich's message of "Mon, 04 Jan 2021 20:22:48 -0800") Message-ID: <87pn2kypn1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=cmmarusich@gmail.com; helo=mail-pj1-x1034.google.com 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, 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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Cc1v0TzZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 57D239403D3 X-Spam-Score: -5.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: /2jQwv1enkwV --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Chris Marusich writes: > Hi, > > I've noticed that Guix builds many things when I ask it to instantiate a > derivation in the following way: > > [0] [env] marusich@garuda-lan:~/guix/repos/guix-worktrees/wip-ppc64 > $ guix build -d --target=3Dpowerpc64-linux-gnu -e '(@@ (gnu packages make= -bootstrap) %gcc-static)' > The following derivations will be built: > /gnu/store/i5wn3xl6p0zw1vglscgk0bs9dwc6hdh6-gcc-static-5.5.0.drv > /gnu/store/3h2sk37iim53fh7g9r3sd1q0xzhqwa51-gcc-cross-powerpc64-linux-= gnu-7.5.0.drv > /gnu/store/84k0j5jm316cwf7h66vrw1vmvkd4kbck-glibc-cross-powerpc64-linu= x-gnu-2.31.drv > /gnu/store/d36n7qy9xbgwpaw3nw8k9dj51hzmdnr4-gcc-cross-sans-libc-powerp= c64-linux-gnu-7.5.0.drv > /gnu/store/mqar9bnapfcfkna3rvy28awhlpd3q65q-binutils-cross-powerpc64-l= inux-gnu-2.34.drv > /gnu/store/pzp93dw3rr6sp2ybi3dzs6kd7gvigfsk-ld-wrapper-powerpc64-linux= -gnu-0.drv > /gnu/store/n7dhpsq41q4kdbqgniljbwrlawvmmlp6-linux-libre-headers-cross-= powerpc64-linux-gnu-5.4.20.drv > /gnu/store/9p5anrji5wgkf66k09jhbsr3fqwwi7cn-gcc-cross-powerpc64-linux-= gnu-7.5.0.drv > /gnu/store/r4ac80znwlrnh4jmj2sbczc4mn66mqdg-glibc-cross-powerpc64-linu= x-gnu-2.31.drv > /gnu/store/ap8ri9ddka13vyrsl72pzqslagi4v7vj-gmp-6.2.0.drv > /gnu/store/arxf2alzwf9rmz5hz8h11j4j12drxm3i-glibc-cross-powerpc64-linu= x-gnu-2.31.drv > /gnu/store/d127w5flv12s4bfmpf4nwrvg3sibvfya-linux-libre-headers-cross-= powerpc64-linux-gnu-5.4.20.drv > /gnu/store/j3d5kr7qlr6g3lq0dwc8z8jh6w814z9v-isl-0.18.drv > /gnu/store/j90wwahzd5ldw7ai11zf5lnp3kbbrmkh-mpfr-4.0.2.drv > /gnu/store/mz9fdir4avdda5cw1snyf8vhpq70c9na-libelf-0.8.13.drv > /gnu/store/q9x04y75mq2nfp2a6gwa0pvrgv60aah9-mpc-1.1.0.drv > /gnu/store/xk4yv7xj15qnl3zv2m8nnzrw0bdgjsx3-zlib-1.2.11.drv > 171.3 MB will be downloaded: > /gnu/store/ir3092v7657h6g4g2vlsw3zrli3rndb3-zlib-1.2.11.tar.gz > /gnu/store/amc0nizxsdcj212nk9a3ivr946hzhl6c-mpc-1.1.0 > /gnu/store/j4npmpn7dxmfknyfnhj4q4jmdwmk3klg-mpc-1.1.0.tar.gz > /gnu/store/0z3z3lhig0xyy817nv70p2hp1n1wqawa-libelf-0.8.13.tar.gz > /gnu/store/bkyiyc4hrjcd4ljx6jqf7z05hm4qxcwd-mpfr-4.0.2.tar.xz > /gnu/store/2jj3il6p5xrc4gkncj9303an81x2csc9-perl-5.30.2 > /gnu/store/n1yvkd7jk50qg1vv9cca6ywynkqvaqgq-ncurses-6.2 > /gnu/store/j709qpwy790bcra6w8kvyz1v5zcsw8df-texinfo-6.7 > /gnu/store/jk5k0sgqpj0sj4ymgq7m8g8617i0xji2-m4-1.4.18 > /gnu/store/57i37x74wz7ar703smykildzvhpdds1g-gmp-6.2.0 > /gnu/store/f2r1w8y7l3lpwh4i47nq2s1vqlqxq0jb-glibc-2.31 > /gnu/store/rgi1k6kx4v9m8449w00i6jfxvpgaz73g-glibc-2.31-static > /gnu/store/df1gdl0vwwbzv04snfha0g88rj02pni9-gcc-5.5.0 > /gnu/store/waz3iz17vlbpfc2fm9yiym6bgbsajghf-mpfr-4.0.2 > /gnu/store/hnsi8iaimgss3v81h7h1r8ck55c0968h-popt-1.18 > /gnu/store/vpy0bcjw0yzaj7j7qx8rfc88c7r357k3-rsync-3.1.3 > /gnu/store/0zcl1i3rbjc356138hx86b7yaz29g6fj-linux-libre-5.4.20-gnu.tar= .xz > /gnu/store/l788x07ska5vffayz0gayv4hsx5flxal-module-import-compiled > /gnu/store/lqz1pygx3x5dd6ad2l3n8ixm1vh6czj4-python-minimal-3.8.2 > /gnu/store/ba6s3g925nggb57b1gpj2jkhqsq24s4q-libstdc++-7.5.0 > /gnu/store/xaclbfx6rvnbsq5qmry0251r7y82rgnv-libstdc++-headers-7.5.0 > /gnu/store/j8b9i4czpzb298zwa15wpyr42471qfbm-module-import-compiled > > The Guix documentation ((guix) Additional Build Options) says the "-d" > option should just give me the derivation paths, not the output paths: > > =E2=80=98--derivations=E2=80=99 > =E2=80=98-d=E2=80=99 > Return the derivation paths, not the output paths, of the given > packages. > > So, I'm confused about why all these builds need to happen. Didn't I > only ask Guix to instantiate the derivation - not realize it? In other > words, I expected Guix to calculate the transitive closure of the > requested derivation's inputs (mainly other derivations, I think?) and > write them to the store, without actually executing any significant > builds. > > I suppose that Guix is building these things in order to do just that, > but I don't quite understand why this happens. Can someone explain it? This can also happen even if I don't include --target: [0] marusich@garuda-lan:~/guix/repos/guix-worktrees/wip-ppc64 $ guix build -d -e '(@@ (gnu packages make-bootstrap) %gcc-static)' substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivations will be built: /gnu/store/jx7frgnihxqn75sgxwb9md420dbrh6cg-gcc-static-5.5.0.drv /gnu/store/h3y11yg8g44ss2b02rlq7is4mxqd8qfs-isl-0.18.drv /gnu/store/wx5mmblp5p5q85g55ggpcpc2kh12dsbv-zlib-1.2.11.drv /gnu/store/xk149wji2hlx0ls404agj3is77kazxx6-libelf-0.8.13.drv 10.9 MB will be downloaded: /gnu/store/f2r1w8y7l3lpwh4i47nq2s1vqlqxq0jb-glibc-2.31 /gnu/store/rgi1k6kx4v9m8449w00i6jfxvpgaz73g-glibc-2.31-static /gnu/store/b1940pfi34sxd3h3gxzx1x5mzwc55flp-linux-libre-headers-5.4.20 substituting /gnu/store/b1940pfi34sxd3h3gxzx1x5mzwc55flp-linux-libre-header= s-5.4.20... downloading from https://ci.guix.gnu.org/nar/lzip/b1940pfi34sxd3h3gxzx1x5mz= wc55flp-linux-libre-headers-5.4.20 ... linux-libre-headers-5.4.20 1.0MiB = 291KiB/s 00:00 [# ] 6.2%^C =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl/z6rIACgkQ3UCaFdgi Rp0+ThAAyUJhZcBRCZSmGFLhxhzmZ9mXfspZVdqSXZ69SW4bA/ddnwo4AZGsLMuP XTFcFYt+v/2//NacdVOmFrXofgyCSORod6XLu+YnNkeECOue2+ZdDj4OABh+CMC6 6kp32EsVQIdUrpRjIk/6dM+3KQrrd4CwDZ8D2pr0BT3gttvWnKHbC9/97jb/BA8P 7+OotoQi2WZ5wfgsitwesjdk9fvl1h6ECrNe+3bhRDWs4sPKPnk7XUVM30YjlP6p ZZEQ0lt3ism7iYS0MK8LG+9/RffUnx+BLdW1PPjSasuXea7ybE57KaIgsvgxSZSY qkihJs8f1MosIkXBV6a5e4CLr0fkJVGZ0HD2nMShkjI9pMg50CtPe/h7HIQZhItR tn4QerQzmGk2DtfvM5W69qDTG6GoHPGezHiezs+ZZ6r+hMy5WgByfXiKQvUnKCKM ywPF0pLJ8xdLX2BHcXmRqlR8GxtXO91lBDHNufZqvRK9CLo8tqw7RAG/yZ5rR3X9 dLsVYnWsike9EQB/UqmDKlkg/0V048hmIbqaa2K3vE7wmdVnw3fdCtgYJRfIGocc SGejujrqLxg/2gkJ9e6lzQvDklou8fYygLW6Y7zLTOd0xc3e0Be47GqLYR4oqFmE ZG0y4+mpDPeVvgXclbV/hO3a/PH3f/OWNdjEPLo1pGfOf3yutk8= =6iPX -----END PGP SIGNATURE----- --=-=-=--