Skip to content

Instantly share code, notes, and snippets.

@nathan-at-least
Created September 29, 2020 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathan-at-least/f1bd19fa31a4fa3ae9b83cd18c351186 to your computer and use it in GitHub Desktop.
Save nathan-at-least/f1bd19fa31a4fa3ae9b83cd18c351186 to your computer and use it in GitHub Desktop.
Failing binary inside nix builder environment.
The output of `nix-build` fails with this in part of the output:
```
RUSTC="/nix/store/i8q8wck9li6xmbj8zla61im0svjz4fx4-rust-1.44.1-x86_64-unknown-linux-gnu/bin/rustc" TERM=dumb /nix/store/i8q8wck9li6xmbj8zla61im0svjz4fx4-rust-1.44.1-x86_64-unknown-linux-gnu/bin/cargo build --lib --release --target x86_64-unknown-linux-gnu --locked --offline --manifest-path ../Cargo.toml
/nix/store/6ffp6xbr6j2ryqw2dafbbvv55ggq16iv-bash-4.4-p23/bin/bash: /nix/store/i8q8wck9li6xmbj8zla61im0svjz4fx4-rust-1.44.1-x86_64-unknown-linux-gnu/bin/cargo: No such file or directory
```
Inspecting the binary:
```
$ /nix/store/i8q8wck9li6xmbj8zla61im0svjz4fx4-rust-1.44.1-x86_64-unknown-linux-gnu/bin/cargo --version
cargo 1.44.1 (88ba85757 2020-06-11)
$ ldd /nix/store/i8q8wck9li6xmbj8zla61im0svjz4fx4-rust-1.44.1-x86_64-unknown-linux-gnu/bin/cargo
linux-vdso.so.1 (0x00007ffd60353000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f23f4cc8000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f23f4ac0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f23f48a0000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f23f4688000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f23f4290000)
/lib64/ld-linux-x86-64.so.2 (0x00007f23f5ef0000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f23f3ef0000)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment