From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: fixing --check saying outputs not valid Date: Fri, 08 Sep 2017 22:56:23 +0200 Message-ID: <87wp589afc.fsf@gnu.org> References: <87bmmlpm8m.fsf@albion.it.manchester.ac.uk> 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]:51424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqQKD-0007zJ-JE for help-guix@gnu.org; Fri, 08 Sep 2017 16:56:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqQKC-0001Zs-R5 for help-guix@gnu.org; Fri, 08 Sep 2017 16:56:29 -0400 In-Reply-To: <87bmmlpm8m.fsf@albion.it.manchester.ac.uk> (Dave Love's message of "Fri, 08 Sep 2017 10:34:33 +0100") 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: Dave Love Cc: help-guix@gnu.org Dave Love skribis: > I ran build --check on a new package and it complained that some output > of the derivation aren't valid. Then I checked hwloc, which also has a > "lib" output and it has the same problem: > > guix build: error: build failed: some outputs of `/gnu/store/bsafscmmaw= 43ssb0lhnri3vdi0wi0chx-hwloc-1.11.7.drv' are not valid, so checking is not = possible > > With --verbosity=3D4, it looks as if that's due to > > | | path `/gnu/store/fsch2h9r8jp3c5ahs0b0mr8pr4yp4l3q-hwloc-1.11.7-= lib' is required, but there is no substituter that can build it > > How could I fix that? To run --check, you must first already have the store item(s) available. So you would first run: guix build hwloc which will ensure both hwloc and hwloc:lib are in your store, possibly by downloading substitutes. Then you can run =E2=80=9Cguix build hwloc --check -L --no-grafts=E2=80=9D,= which will build hwloc locally and raise an error if hwloc:{out,lib} are not bit-identical to what you had in store. Makes sense? (The =E2=80=9C--no-grafts=E2=80=9D part is because what you care about is t= he actual build of hwloc, not the grafting derivation.) Ludo=E2=80=99.