You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a fresh rustup install nightly && cargo build fails, the core message being:
note: Could not start dynamically linked executable: /home/[xxx]/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld.lld
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
collect2: error: ld returned 127 exit status
Steps To Reproduce
Steps to reproduce the behavior:
have a rust project
rustup install nightly (or rustup update if you already have one)
cargo build
Expected behavior
Either the rustup gcc/ld to be patched for NixOS use, or rust to use the system gcc/ld.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Actually, it looks like this is an issue specifically appearing with nightly-2024-05-18-x86_64-unknown-linux-gnu; so I'll try to pass the message upstream.
Patching those binaries will make them execute, but they also need the ld-wrapper applied so that the binaries they build will also get patched automatically.
Describe the bug
Running a fresh
rustup install nightly && cargo build
fails, the core message being:Steps To Reproduce
Steps to reproduce the behavior:
rustup install nightly
(orrustup update
if you already have one)cargo build
Expected behavior
Either the rustup gcc/ld to be patched for NixOS use, or rust to use the system gcc/ld.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: