-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Target mips-unknown-linux-musl and mipsel-unknown-linux-musl are not statically linked. #80693
Comments
Seems that x86_64-unknown-linux-musl is also affected (from your output). I checked myself, still the case in 1.41.0 and earlier used to work just fine:
1.52.0:
The real issue there is that for expected static binaries we end up with dynamically linked bin, and for expected dynamic binaries: no linking is done to the default interpreter. I'm forced to revert to cargo v1.41 to make my build system (X86_64 cross compile) functional. |
cc rust-lang/compiler-team#422, which suggests that these targets behave correctly |
I use this configuration and it works
|
I think this feature should enable by default. https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html As cargo official blog said, musl support for fully static binaries. |
related issue: rust-lang/rust#80693 Close #3
Unfortunately, we have decided that was the wrong default. You may still enable this feature on purpose, and we do support that and will continue to support that. See here: |
Here issue is from: rust-lang/cargo#9039
Meta
rustc --version --verbose
:Problem
Target mips-unknown-linux-musl and mipsel-unknown-linux-musl are not statically linked, maybe it's an rustc issue?
Steps
Here is my
~/.cargo/config
I find only
mips-unknown-linux-musl
andmipsel-unknown-linux-musl
are not staticlly linked.Notes
Output of
cargo version
:cargo 1.49.0 (d00d64df9 2020-12-05)
The text was updated successfully, but these errors were encountered: