From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: *** TRYING TO INSTALL GUIXSD v0.15.0 FOR DAYS *** Date: Thu, 01 Nov 2018 03:35:35 -0400 Message-ID: <874ld1p7vh.fsf@netris.org> References: <33017962-EFD3-4931-A7FA-22EC3E25B073@inskydata.com> <87y3ae6k0y.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gI7Wq-0002RR-FW for help-guix@gnu.org; Thu, 01 Nov 2018 03:36:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gI7Wi-0007xW-Pf for help-guix@gnu.org; Thu, 01 Nov 2018 03:36:32 -0400 Received: from world.peace.net ([64.112.178.59]:39722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gI7Wh-0007ru-0c for help-guix@gnu.org; Thu, 01 Nov 2018 03:36:24 -0400 In-Reply-To: (Brian Woodcox's message of "Wed, 31 Oct 2018 12:47:33 -0600") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Brian Woodcox Cc: help-guix@gnu.org Brian Woodcox writes: > Just to avoid me having to search, what command would I use to get the > tail of the build log file. If you know the file name in /gnu/store of one of the build's outputs, you can pass that file name, e.g.: guix build --log-file /gnu/store/1mr5izrbxwd7cbq8m1xrqm45rzkibpsj-guile-2= .2.3 If you know the file name of the derivation (/gnu/store/=E2=80=A6.drv) of t= he build you're looking for, then you can use "guix build --log-file /gnu/store/=E2=80=A6.drv". If you built the package locally, another useful trick is to look for the newest files in /var/log/guix/drvs/*/*, which you can list by running "ls -ltr */* | tail" or "ls -ltr */*-guile-* | tail" from /var/log/guix/drvs. In some cases, it is sufficient to pass the package name with optional version, e.g. "guix build --log-file guile@2.2.3", but not always. Roughly, that command finds the log for the derivation that would have been built right now if you ran the same command without "--log-file". Note that this won't be the build you're looking for if you've run "guix pull" since the relevant build was fresh, if either the package or one of its transitive dependencies have changed. Passing a simple package name also won't work if the derivation you're looking for is a special variant package which is hidden or not bound to a public variable. For example, 'guile-final' in gnu/packages/commencement.scm is one such variant. It is one of the products of the early bootstrap, and the Guile variant used to build most of the other packages in Guix. This is not the same guile that you get by running "guix build guile". 'guile-final' is a "hidden" package, but it can be specified using the more general "--expression=3D" syntax: guix build --log-file --expression=3D"(@@ (gnu packages commencement) \ guile-final)" Also note that there is a very simple mapping between build log file names and derivation file names, perhaps best shown by example: __/var/log/guix/drvs/wc/47q5cw4b23gy9hzzhxp09b804nippx-guile-2.2.3.drv.bz2 ___________/gnu/store/wc47q5cw4b23gy9hzzhxp09b804nippx-guile-2.2.3.drv Mark