Skip to content

Create Updating-musl-1.2.5.md #1641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Gankra
Copy link

@Gankra Gankra commented Jun 18, 2025

Tentative blogpost for:

Info about when this will release is of course placeholder, and I'm happy to update the wording or add whatever details are desires.

Rendered

Copy link
Member

@est31 est31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be worth to talk about dynamic linking? i.e. to say that this doesn't affect people who link dynamically. But does it also increase the minimum musl version we support dynamic linking to? That's a tougher question. IDK whether we have to answer it, but if we know the answer, we should maybe write it down here.

The maintainers of musl themselves think that dynamic linking is an important way to use their libc, and it should be used for the musl based distros.


target | notes
-------|-------
`aarch64-unknown-linux-musl` | ARM64 Linux with musl 1.2.3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it intended to put the old musl versions here?


For the Rust ecosystem, the primary motivation for this update is to receive major improvements to musl's DNS resolver which shipped in 1.2.4 and received bug fixes in 1.2.5. When using `musl` targets for static linking, this should make portable linux binaries that do networking more reliable, particularly in the face of large DNS records and recursive nameservers.

However, 1.2.4 also comes with a breaking change: [the removal of several legacy compatibility symbols that the Rust libc crate was using](https://github.com/rust-lang/libc/issues/2934). A fix for this [was shipped in libc 0.2.146 in June 2023 (2 years ago)](https://github.com/rust-lang/libc/pull/2935), and we have been waiting for newer versions of the libc crate to propagate throughout the ecosystem before shipping the musl update.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth to quote an example error one might encounter, as the error message is not 100% obvious (it's a linker error). You can look around the crater run's logs to extract it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants