IIRC, since my first install of rustup
on NixOS and after switching to fenix
, I have gotten weird outputs from rustc
when running commands such as cargo build
, or in general running rust-related commands that install crates.
When running for instance, cargo build --release
, my output looks like:
rustc: /nix/store/ilfqlmd6npxh3zaszdj7dj7zy6w96gmi-zlib-1.2.12/lib/libz.so.1: no version information available (required by /nix/store/mw52brvx7b9hf6gjwnp1b45j0nlhw8xl-rust-nightly-default-2022-04-16/lib/libLLVM-14-rust-1.62.0-nightly.so)
rustc: /nix/store/ilfqlmd6npxh3zaszdj7dj7zy6w96gmi-zlib-1.2.12/lib/libz.so.1: no version information available (required by /nix/store/mw52brvx7b9hf6gjwnp1b45j0nlhw8xl-rust-nightly-default-2022-04-16/lib/libLLVM-14-rust-1.62.0-nightly.so)
rustc: /nix/store/ilfqlmd6npxh3zaszdj7dj7zy6w96gmi-zlib-1.2.12/lib/libz.so.1: no version information available (required by /nix/store/mw52brvx7b9hf6gjwnp1b45j0nlhw8xl-rust-nightly-default-2022-04-16/lib/libLLVM-14-rust-1.62.0-nightly.so)
...
rustc: /nix/store/ilfqlmd6npxh3zaszdj7dj7zy6w96gmi-zlib-1.2.12/lib/libz.so.1: no version information available (required by /nix/store/mw52brvx7b9hf6gjwnp1b45j0nlhw8xl-rust-nightly-default-2022-04-16/lib/libLLVM-14-rust-1.62.0-nightly.so)
rustc: /nix/store/ilfqlmd6npxh3zaszdj7dj7zy6w96gmi-zlib-1.2.12/lib/libz.so.1: no version information available (required by /nix/store/mw52brvx7b9hf6gjwnp1b45j0nlhw8xl-rust-nightly-default-2022-04-16/lib/libLLVM-14-rust-1.62.0-nightly.so)
*Rest of the commands "normal" output is here*.
The command runs successfully, although the output is very annoying, and I would like to understand it’s origin. Attempting to add to my environment packages zlib
did not help.
Rust setup:
In environment.systemPackages
fenix.default.toolchain # The nightly toolchain.
(fenix.toolchainOf { channel = "nightly"; date = "2022-04-09"; sha256 = "sha256-7zj0w6Z9yKgK8a+tZvW4ot6tHa1TQlaKSNvwWKO8R/c="; }).toolchain # Currently needed for a project.
fenix.stable.defaultToolchain # The stable toolchain.
In flake.nix
In inputs
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
In output modules
({ ... }: { nixpkgs.overlays = [ fenix.overlay *Snipped* ]; })