rust-lang / rust-lang/rust

Pre-built Rust/musl toolchain improvements

Open
#159,606 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage O-musl
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Currently, the pre-built Rust/musl toolchain links against libgcc_s and libstdc++ dynamically, with an assumption that these libraries would be present in any Linux distro. This assumtion is wrong, and causes all sorts of pain for users who don't have those, for example on distro's that use toolchains other than GCC (LLVM, Zig etc.).

Request: provide pre-built Rust/musl toolchains with libgcc_s and libstdc++ compiled in statically. Or better yet, compile those toolchains against static compiler_rt and libc++.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the build entry points for the pre-built Rust/musl toolchains and inspect how their runtime libraries are linked. Compare the current dynamic libgcc_s/libstdc++ dependencies with the requested static alternatives, and consider the toolchain output complete when it works without those libraries being present on Linux distributions.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.