-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reoder order in which MinGW libs are linked to fix recent breakage #73184
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @petrochenkov |
📌 Commit e237e02 has been approved by |
Relevant discussion - #72241 (comment) and below. |
I don't expect it to fail with old MinGW but who knows 🤷 |
It built just fine on my PC with mingw-w64 6.3.0. |
Rollup of 9 pull requests Successful merges: - rust-lang#72706 (Add windows group to triagebot) - rust-lang#72789 (resolve: Do not suggest imports from the same module in which we are resolving) - rust-lang#72890 (improper ctypes: normalize return types and transparent structs) - rust-lang#72897 (normalize adt fields during structural match checking) - rust-lang#73005 (Don't create impl candidates when obligation contains errors) - rust-lang#73023 (Remove noisy suggestion of hash_map ) - rust-lang#73070 (Add regression test for const generic ICE in rust-lang#72819) - rust-lang#73157 (Don't lose empty `where` clause when pretty-printing) - rust-lang#73184 (Reoder order in which MinGW libs are linked to fix recent breakage) Failed merges: r? @ghost
discussed in T-compiler meeting; we are a little nervous about the old MinGW scenario, so we're going to wait a week and reconsider backporting this next week, to give people in the community more time to find problems via nightly. |
CI has old mingw and this PR passed it. |
@mati865 is there a reason we couldn't we use EDIT: And thanks, this plus the |
discussed in last week's T-compiler meeting Approved for beta backport. |
I should have been more explicit but
is the old mingw-w64 build (exactly the same as used on the CI). |
@rustbot modify labels: +beta-accepted Label is missing. |
Error: Label beta-accepted can only be set by Rust team members Please let |
@rustbot modify labels: +beta-accepted |
…ulacrum [beta] next Backports of: * rustdoc: Fix doc aliases with crate filtering rust-lang#73644 * rustdoc: Rename invalid_codeblock_attribute lint to be plural rust-lang#74131 * rustc_lexer: Simplify shebang parsing once more rust-lang#73596 * Perform obligation deduplication to avoid buggy `ExistentialMismatch` rust-lang#73485 * Reorder order in which MinGW libs are linked to fix recent breakage rust-lang#73184 * Change how compiler-builtins gets many CGUs rust-lang#73136 * Fix wasm32 being broken due to a NodeJS version bump rust-lang#73885
Recent upstream mingw-w64 changes made libmsvcrt depend on libmingwex breaking compilation in some cases when using external MinGW.
Applying this change to the master fixes nightly and stage{1,2} build. For stage0 one has to export
RUSTFLAGS_BOOTSTRAP='-C link-arg=-lmsvcrt'
until this PR lands in bootstrap compiler.Therefore I'm humbly asking to also backport it to the beta and update bootstrap compiler.