[Nix-dev] Cycle detected in references when building systemd

Daniel Peebles pumpkingod at gmail.com
Mon Oct 10 20:06:25 CEST 2016


See also https://github.com/NixOS/nix/issues/481

On Mon, Oct 10, 2016 at 8:57 AM, Eelco Dolstra <eelco.dolstra at logicblox.com>
wrote:

> Hi,
>
> On 10/10/2016 02:43 PM, Jan Synáček wrote:
>
> >> You can find the exact cause of these cycles using good old "grep -r".
> >
> > Pardon my ignorance, but I still can't see where the cycle is and how
> > you managed to figure it out. In this particular case, the cycle (at
> > least a part of it) is supposed to be somewhere in
> > '/nix/store/2ipa3ipr85ywzq61366cg7ymk7n6bqg6-systemd-master-lib'
> > according to the error message. But that's all what it says... Maybe
> > the message could be more helpful?
>
> It already is on Nix master, which prints both paths in the cycle, i.e.
>
>   cycle detected in the references of '/nix/store/<foo>' from
> '/nix/store/<bar>'
>
> so then you can do
>
>   grep -r <bar> /nix/store/<foo>
>
> to find which file has the reference. Obviously it would be nicer if Nix
> printed
> this automatically...
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20161010/ae3bc97d/attachment.html>


More information about the nix-dev mailing list