guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get the path of the logfile after an unsuccesful build?


From: Chris Marusich
Subject: Re: how to get the path of the logfile after an unsuccesful build?
Date: Fri, 23 Mar 2018 05:54:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Hartmut Goebel <address@hidden> skribis:
>
>> Am 09.03.2018 um 15:06 schrieb ng0:
>>> The daemon doesn’t keep logs for failed builds.
>>
>> I asked this a few month ago and was told this is a bug.
>
> It does keep build logs even for aborted and failed builds.  If you have
> evidence that it doesn’t, then please report it.  :-)

Can these be readily accessed via "guix build --log-file", or does one
have to go spelunking in one's file system to find them?

Mark H Weaver <address@hidden> writes:

> Then it corresponds to a grafted derivation, and you need to find the
> original ungrafted derivation.  In most cases this can be done by
> running "guix build --log-file /gnu/store/…-foo", passing the first file
> name from the "grafting" message.
>
> Alternatively, you could look in the .drv file of the grafting
> derivation, which will include the file name of the original ungrafted
> derivation among its input derivations.

In this case, you can actually just add --no-grafts to the invocation,
as in:

  guix build --no-grafts --log-file guile

This will show you the log of the build, before applying any grafts.

-- 
Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]