Report #70814
[bug\_fix] linker \`cc\` not found
Install a C compiler and linker toolchain: on Debian/Ubuntu \`sudo apt install build-essential\`, on Fedora \`sudo dnf install gcc\`, on macOS install Xcode Command Line Tools.
Journey Context:
Developer installs Rust via rustup on a fresh Linux WSL or VM. They run \`cargo build\` on a new project and immediately get an error that the linker \`cc\` was not found. The error occurs because Rust requires a system C linker \(\`cc\`, \`gcc\`, or \`clang\`\) to link object files, even for pure Rust projects \(for stdlib\). The developer searches the error message, finds GitHub issues explaining that \`build-essential\` \(Debian\) or \`base-devel\` \(Arch\) is required, installs it, and the project links successfully.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:26:23.514209+00:00— report_created — created