-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Link to libgcc when statically linking musl #1034
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Could you try bootstrapping rustc with this change to confirm that it works? Once that's working should be good to merge! |
This is needed for rust-lang/libc#1034.
I bootstrapped rustc with the aarch64-unknown-linux-musl target and it fixes the linker errors in the issues mentioned. There's just a small change required in the CI scripts: rust-lang/rust#52157 |
Seems to be a spurious failure on travis? Not sure why this change would cause iOS to fail... |
Ok great! In that case let's merge this and fold it with the rust PR @bors: r+ |
📌 Commit 920cfea has been approved by |
Link to libgcc when statically linking musl On some architectures (e.g. aarch64) musl depends on some libgcc functions (`__addtf3`, `__multf3`, `__subtf3`) for `long double` arithmetic that it uses internally. Unfortunately we don't provide these functions in compiler-builtins, so we instead need to get them from libgcc. Fixes: rust-lang/rust#46651 rust-lang/compiler-builtins#201 rust-lang/compiler-builtins#217
☀️ Test successful - status-appveyor, status-travis |
Copy libgcc as well after building musl This is needed for rust-lang/libc#1034. r? @alexcrichton
On some architectures (e.g. aarch64) musl depends on some libgcc functions (
__addtf3
,__multf3
,__subtf3
) forlong double
arithmetic that it uses internally. Unfortunately we don't provide these functions in compiler-builtins, so we instead need to get them from libgcc.Fixes:
rust-lang/rust#46651
rust-lang/compiler-builtins#201
rust-lang/compiler-builtins#217