Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable "cycle detected in the references of" check? #1741

Closed
nh2 opened this issue Dec 17, 2017 · 3 comments
Closed

How to disable "cycle detected in the references of" check? #1741

nh2 opened this issue Dec 17, 2017 · 3 comments

Comments

@nh2
Copy link
Contributor

nh2 commented Dec 17, 2017

I'm trying to build systemd with -O0 -g for debugging a problem.

I get the error

cycle detected in the references of ‘/nix/store/5h1ighmqw55q7xfz3hnwqlq54dfvx3v2-systemd-234’

How can I disable this feature?

@nh2
Copy link
Contributor Author

nh2 commented Dec 17, 2017

Btw, these are those references:

$ strings /tmp/nix-build-systemd-234.drv-0/systemd-ba777535a890c2a2b7677dfacc63e12c578b9b3f-src/.libs/systemd | grep nix/store | grep systemd

/nix/store/1i8qk9344s9jd3ka37imsvz5fp7dgf17-systemd-234/lib/systemd:/nix/store/lrzck68v5886ls739iq6qxm4mzl9wrjp-libgcrypt-1.8.1/lib:/nix/store/gjmwq6bmwx97mz5aspfay11ci5iz6fnf-libgpg-error-1.27/lib:/nix/store/1x4iyx53z4l2ps9yphaavrphf78i9jcp-libseccomp-2.3.2/lib:/nix/store/y6m437iyv3fmx0bp6xii2iixd9n7snz2-kmod-24/lib:/nix/store/l91kbjp2pdyd0cb5wbxga80n2x1miq4g-xz-5.2.3/lib:/nix/store/m8l6aimxyh7ly2szdp5d5hj1dpq3cmd9-libapparmor-2.10/lib:/nix/store/frs8wwc6g7hfc58cs9vqhlyfphm9dcsw-util-linux-2.31/lib:/nix/store/jg89xzmh7dfzc10hmpvw637dbw0ncg8q-systemd-234-lib/lib64:/nix/store/jg89xzmh7dfzc10hmpvw637dbw0ncg8q-systemd-234-lib/lib:/nix/store/v2spjxfwyn42w3wr3kbvhsgc1r1n8ljl-libcap-2.25-lib/lib:/nix/store/xsvvsmklx4lh3liy9h967y8hmg9zw8rb-linux-pam-1.2.1/lib:/nix/store/g59rddwz0hssyzhf8lsypwd2y24bij40-acl-2.2.52/lib:/nix/store/hrbd6nvr0askgma31k5dnydgb8r643wf-audit-2.7.7/lib:/nix/store/pyc9jq51ssksyvw0kw26qq9qdd723ass-lz4-131/lib:/nix/store/h1a1ncbkkhapzm0509plqjlfrgxw22f3-glibc-2.25-49/lib:/nix/store/lai5w1ri6qxkpih86sj543wfwbzl05yw-gcc-6.4.0-lib/lib
/nix/store/1i8qk9344s9jd3ka37imsvz5fp7dgf17-systemd-234/lib/systemd/systemd-shutdown
/nix/store/1i8qk9344s9jd3ka37imsvz5fp7dgf17-systemd-234/lib/systemd/user-environment-generators
/nix/store/1i8qk9344s9jd3ka37imsvz5fp7dgf17-systemd-234/lib/systemd/system-environment-generators

But I guess I don't care too much about this systemd specific as long as I can quickly turn off that check for debugging any package, no matter what strings it puts into its binary.

@domenkozar
Copy link
Member

Grep for remove-references-to in nixpkgs

@vcunat
Copy link
Member

vcunat commented Dec 17, 2017

For reference, you can't disable the "feature". Nix currently relies on the store not containing cycles (e.g. when doing GC AFAIK).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants