Closed Bug 1672813 Opened 4 years ago Closed 1 year ago

Rust 1.47+ (LLVM11) miscompilation on MSVC

Categories

(Firefox Build System :: Toolchains, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jrmuizel, Unassigned)

References

Details

My guess is that it's caused by the upgrade to LLVM 11 :(

(In reply to Jeff Muizelaar [:jrmuizel] from comment #5)

Here are 08-24: https://treeherder.mozilla.org/#/jobs?repo=try&revision=75c40b737d490b1d4ee44187eee1551bdf81a4f8
and 08-23: https://treeherder.mozilla.org/#/jobs?repo=try&revision=cb49bc57532fcd3ce2726a829ec27f809c6e0bce
which surround the LLVM update.

If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.

(In reply to Mike Hommey [:glandium] from comment #6)

If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.

I'll try that tomorrow. In the mean time let's see if it's fixed in Nightly:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8fdc9dcf7b31843950da162fbaec31ce3b23d0a3

(In reply to Jeff Muizelaar [:jrmuizel] from comment #7)

(In reply to Mike Hommey [:glandium] from comment #6)

If you apply bug 1672328, you can replace nightly-yyyy-mm-dd with bors-sha1 where sha1 is a merge commit authored by bors in the rust repo, so you could check for sure that it's the LLVM update by testing that merge and its parent.

I'll try that tomorrow. In the mean time let's see if it's fixed in Nightly:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8fdc9dcf7b31843950da162fbaec31ce3b23d0a3

This won't work because of a) bug 1428197 and b) bug 1672837. You want nightly-2020-10-22 and to apply bug 1672837

Adding codegen-units=1 let's me reproduce this locally.

Here are two other LLVM 11 bugs reported through rust: https://bugs.llvm.org/show_bug.cgi?id=47444 https://bugs.llvm.org/show_bug.cgi?id=47090

It's a long shot, but any chance their patches fix this?

Summary: Possible rust miscompilation → Rust 1.47+ (LLVM11) miscompilation on MSVC
Depends on: 1730680, 1708379

We're now on LLVM 15, this was likely fixed a long time ago.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.