-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Link errors on MSVC Nightly since around 2019-07-13 #63361
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
Comments
Is this reproducible after |
Yes, happens on a fresh project I made for testing ( |
4bb6b4a...6a91782 is the full commit range, which notably includes an LLVM upgrade #62592 -- cc @nikic Could you check with https://crates.io/crates/rustup-toolchain-install-master/ if 07e0c36 is fine and 38798c6 is broken for you? |
Okay, LLVM update is then definitely at fault, cc @alexcrichton |
With default settings I'm not reproducing this locally with |
Here is the full failing output from
Indeed, my Testing again without |
If it helps, I'm on AMD Zen v1, or |
Fails the same way on Linux (GNU and musl) and Windows GNU using Details
@rustbot modify labels: -E-needs-bisection -O-windows-msvc +O-linux +O-windows +A-LLVM |
This seems like LLVM's auto-detection of what CPU is on the host or what the target features your native CPU has may be broken. The next step for this is to probably use a build of Clang to reproduce and then report this upstream to LLVM itself. |
Er sorry I have a guess as to where this is but I do not have time to investigate this right now, so I'm going to unassign myself since I can't take care of this. |
Minimised:
IR: I cannot build Clang/LLVM from master right now so I'm attaching IR from my code above. I'll try to find time tomorrow or somewhere next week. |
Confirming that
produces a |
I believe the cause is that the znver feature spec is missing |
LLVM bug reported at https://bugs.llvm.org/show_bug.cgi?id=42935. |
Update LLVM submodule Fixes #63361. r? @alexcrichton
Any crate that uses
std::sync::Arc
fails to compile with a link error sayingunresolved external symbol __atomic_fetch_sub_8
Test case on
rustc 1.38.0-nightly (6a91782b7 2019-08-06)
outputs:
or from a bigger project:
Nightly
rustc 1.38.0-nightly (4bb6b4a5e 2019-07-11)
/nightly-2019-07-12-x86_64-pc-windows-msvc
works totally fine.The text was updated successfully, but these errors were encountered: