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

cannot remove '/nix/store/.../lib/libunwind-generic.a': #54176

Open
bbarker opened this issue Jan 17, 2019 · 3 comments
Open

cannot remove '/nix/store/.../lib/libunwind-generic.a': #54176

bbarker opened this issue Jan 17, 2019 · 3 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@bbarker
Copy link
Contributor

bbarker commented Jan 17, 2019

Issue description

This happens during the installation of a large meta derivation I have for my dev environment (not ideal, I know - I should break things up). I've had this issue many months ago, and it has cropped up again. Currently it prevents me from building my Nix docker container as I'm not sure what package is at fault for depending on libunwind, but I heard that fixing bad sym links in libunwind might be a fix.

shrinking /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/libexec/idea-ultimate-2018.3.3/fsnotifier
shrinking /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/libexec/idea-ultimate-2018.3.3/fsnotifier-arm
shrinking /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/libexec/idea-ultimate-2018.3.3/fsnotifier64
strip is hashed (/nix/store/3xwc1ip20b0p68sxqbjjll0va4pv5hbv-binutils-2.30/bin/strip)
stripping (with command strip and flags -S) in /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/libexec  /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/bin 
patching script interpreter paths in /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/bin/format.sh: interpreter directive changed from "/bin/sh" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/bin/inspect.sh: interpreter directive changed from "/bin/sh" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/bin/idea.sh: interpreter directive changed from "/bin/sh" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/plugins/Kotlin/kotlinc/bin/kotlinc: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/plugins/Kotlin/kotlinc/bin/kotlinc-jvm: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/plugins/Kotlin/kotlinc/bin/kotlin: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/plugins/Kotlin/kotlinc/bin/kotlin-dce-js: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
/nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3/idea-ultimate-2018.3.3/plugins/Kotlin/kotlinc/bin/kotlinc-js: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/bash"
checking for references to /tmp/nix-build-idea-ultimate-2018.3.3.drv-0/ in /nix/store/gm3jw08gs0wqpbg2ifj4p9jvqbz0f33j-idea-ultimate-2018.3.3...
building '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv'...
created 991 symlinks in user environment
rm: cannot remove '/nix/store/ikxw4x9rn43iqfkgvfaf92f6qjf0wh16-brandon-dev-env/lib/libunwind-generic.a': No such file or directory
builder for '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv' failed with exit code 1
error: build of '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv' failed
installing 'brandon-dev-env'
these derivations will be built:
  /nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv
building '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv'...
created 991 symlinks in user environment
rm: cannot remove '/nix/store/ikxw4x9rn43iqfkgvfaf92f6qjf0wh16-brandon-dev-env/lib/libunwind-generic.a': No such file or directory
builder for '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv' failed with exit code 1
error: build of '/nix/store/xfr2rp4cynphmh716pszdlv7ia0fsygf-brandon-dev-env.drv' failed

Steps to reproduce

I'm not actually sure of a concise way to test this yet, but my exact method is to run source build.sh in the repo https://github.com/cornellcac/docker-nix-intellij - this will take up ~10GB or so in docker images, which can then be deleted.

Technical details

Happens during docker build, so I'll just give the details I know of: base OS: Ubuntu 18.04 (the container image, basically). Nix version is 2.2.1 2.1.3 - I wanted to try 2.2.1, but there is NixOS/nix#2636

@bbarker bbarker changed the title cannot remove '/nix/store/ikxw4x9rn43iqfkgvfaf92f6qjf0wh16-brandon-dev-env/lib/libunwind-generic.a': cannot remove '/nix/store/.../lib/libunwind-generic.a': Jan 17, 2019
@bbarker
Copy link
Contributor Author

bbarker commented Jan 17, 2019

Update: tried with the latest Nix release (2.2.1) and is still an issue.

@bbarker
Copy link
Contributor Author

bbarker commented Jan 17, 2019

This popped up on the unstable branch with libunwined 1.3.1. I switched back to 18.09 with libunwind 1.2.1 and didn't have any issues.

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

1 participant