[Nix-dev] What does "output is not allowed to refer to path ..." mean?
Florian Friesdorf
flo at chaoflow.net
Wed Dec 28 23:00:28 CET 2011
On Sat, 17 Dec 2011 00:48:17 +0100, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> On 17/12/11 00:38, Peter Simons wrote:
>
> > why does nixos-rebuild generate an error message such as the following one?
> >
> > output is not allowed to refer to path `/nix/store/qccjhn063cfv171rcaxvxh0yk96zf7l2-cryptsetup-1.4.1'
> > cannot build derivation `/nix/store/svqdc9jf8qqn89lv93pxqwgky00cylj2-stage-1-init.sh.drv': 1 dependencies couldn't be built
> > cannot build derivation `/nix/store/k9lgzyb92qq3hjy1bqxxf1mmjqbsgxpr-initrd.drv': 1 dependencies couldn't be built
> > killing process 7263
> > cannot build derivation `/nix/store/xyjdb6yvxi32lkf0amm84i50742y6rx3-system.drv': 1 dependencies couldn't be built
> > error: build of `/nix/store/xyjdb6yvxi32lkf0amm84i50742y6rx3-system.drv' failed
> >
> > What does that error mean?
>
> This probably comes from extraUtils in nixos/modules/system/boot/stage-1.nix,
> specifically the line
>
> allowedReferences = [ "out" modulesClosure ]; # prevent accidents like glibc
> being included in the initrd
>
> This says that the output of the extraUtils derivation can only refer to itself
> or to ‘modulesClosure’. So it's not allowed to depend on cryptsetup.
>
> Not sure why this happens. The extraUtils builder calls the nuke-refs function
> to get rid of external references, so the copied cryptsetup binaries (in
> luksroot.nix) shouldn't cause a problem.
The problem were pkgconfig .pc files that luksroot.nix copied - fixed
now.
--
Florian Friesdorf <flo at chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20111228/3d3041b6/attachment.bin
More information about the nix-dev
mailing list