nix-community/fenix

`rust-ldd` is missing `zlib`

rvolosatovs opened this issue · 1 comments

With the following flake usage:
https://github.com/enarx/enarx/blob/93aea2b04f2e0cebb8f316c09181123382a39242/flake.nix#L20-L23
And rust-toolchain.toml contents:
https://github.com/enarx/enarx/blob/93aea2b04f2e0cebb8f316c09181123382a39242/rust-toolchain.toml#L1-L4

rust-ldd is unusable:

$ ldd /nix/store/hxbjmb0mz2lcd6d3z0ng5lqm61m3gzx5-rustc-nightly-2022-02-22/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld
	linux-vdso.so.1 (0x00007ffd853b1000)
	libpthread.so.0 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libpthread.so.0 (0x00007fee2addd000)
	libz.so.1 => not found
	libLLVM-14-rust-1.61.0-nightly.so => /nix/store/hxbjmb0mz2lcd6d3z0ng5lqm61m3gzx5-rustc-nightly-2022-02-22/lib/libLLVM-14-rust-1.61.0-nightly.so (0x00007fee259b6000)
	libstdc++.so.6 => not found
	libm.so.6 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libm.so.6 (0x00007fee25875000)
	libgcc_s.so.1 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libgcc_s.so.1 (0x00007fee25859000)
	libc.so.6 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libc.so.6 (0x00007fee25683000)
	/nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/ld-linux-x86-64.so.2 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib64/ld-linux-x86-64.so.2 (0x00007fee2adff000)
	librt.so.1 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/librt.so.1 (0x00007fee25678000)
	libdl.so.2 => /nix/store/jcb7fny2k03pfbdqk1hcnh12bxgax6vf-glibc-2.33-108/lib/libdl.so.2 (0x00007fee25673000)
	libz.so.1 => /nix/store/92wmg8niqrvwxsfigh5hhjpb0y9ska1i-zlib-1.2.11/lib/libz.so.1 (0x00007fee25656000)

Closed by #68