Closed Bug 1758780 Opened 3 years ago Closed 3 years ago

Update builders to rustc 1.60 and clang 14

Categories

(Firefox Build System :: Toolchains, task)

task

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 2 open bugs, Regressed 2 open bugs)

Details

(Keywords: perf-alert)

Attachments

(10 files, 1 obsolete file)

(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details
(deleted), text/x-phabricator-request
Details

Rust 1.60.0 is due to be released on April 7, and clang 14 on March 15 (the latter may slip, though). We can't upgrade one without the other because cross-language PGO doesn't like different versions of LLVM, and Rust 1.60.0 is the first version with LLVM 14.

Blocks: rustup
Depends on: 1758781
Depends on: 1758782

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

Rust 1.60.0 is due to be released on April 7, and clang 14 on March 15 (the latter may slip, though). We can't upgrade one without the other because cross-language PGO doesn't like different versions of LLVM, and Rust 1.60.0 is the first version with LLVM 14.

I see that (https://github.com/llvm/llvm-project/milestone/3) shows 7 open issues but the likelihood of LLVM 14 slipping into April is probably high as well considering how 13.0.1 went. Probably targeting 101?

No longer depends on: 1758782
Depends on: 1758782
Depends on: 1289641
Depends on: 1750168
Depends on: 1758017
Depends on: 1745129
Depends on: 1750148
Depends on: 1758021

Loosk like LLVM 14 went live early this morning.

We never run them, so there's no point building them.

While the llvm/cmake/platforms/WinMsvc.cmake file only supports
cross-compiles, it contains the right -fms-compatibility-version
to use to build clang/llvm (modulo when upstream forgets to update it).

It's better to rely on that, than to keep a version in build-clang.py
that would possibly need to cover multiple versions of clang.

It used to be this way, until bug 1731582 made it tied to clang-12 to
keep it to that version. This was subsequently upgraded to clang-13 in
bug 1736459, but this should really have been changed back to
unversioned clang.

Instead, do the same trick as for the wasi sysroot, and reuse clang
itself.

This applies the same as https://reviews.llvm.org/D81967 to our
CMakeLists.txt. Interestingly, the upstream change landed in LLVM 11,
but not applying the same on our end doesn't cause problems until LLVM
14.

Clang 14 added a dummy backoff policy for atomic polling that doesn't
know about threads, which presumably WASI can use.
See https://reviews.llvm.org/D114109.

We're going to need it to bootstrap LLVM 14.

Keywords: leave-open
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/6c5a34659edd Don't build tests when building clang. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/05ea08e25976 Use LLVM's lib and link tools when building clang with clang. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/6debe82932bf Take the ms-compat version used to build clang from a LLVM cmake file. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/6d6a694b7091 Use the same version of clang as for other builds for sm fuzzing builds. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/f1447363a4b9 Avoid building LLVM when building wasi compiler-rt. r=firefox-build-system-reviewers,mhentges
Depends on: 1764256
Depends on: 1745127, 1745131
Keywords: leave-open
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/fd6ac7ba625f Avoid linking libclang both statically and dynamically. r=firefox-build-system-reviewers,andi https://hg.mozilla.org/integration/autoland/rev/d5f9c05036b4 Fallthrough to <atomic> for wasi when using clang >= 14. r=nika https://hg.mozilla.org/integration/autoland/rev/19e434c7f6c2 Add a toolchain for Visual Studio 2019. r=firefox-build-system-reviewers,mhentges
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/e390fac06dae Update builders to clang 14. r=firefox-build-system-reviewers,mhentges,andi https://hg.mozilla.org/integration/autoland/rev/0f6aff1f340e Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges
Flags: needinfo?(mh+mozilla)
Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/330065f83d19 Update builders to clang 14. r=firefox-build-system-reviewers,mhentges,andi https://hg.mozilla.org/integration/autoland/rev/2a3c0204b519 Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges
Blocks: 1764509
Backout by nerli@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/35a6605827b5 Backed out 2 changesets for causing OSX failures

Backed out 2 changesets (Bug 1758780) for causing OSX failures

Push with failures:
https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&collapsedPushes=842382&selectedTaskRun=f70duRsUQp-K2hYjnzulBg.0&resultStatus=success%2Ctestfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&fromchange=6b2bdfbe9f12236fa6dd5828aee47f7405d6258e&searchStr=linux%2C18.04%2Cx64%2Cwebrender%2Cshippable%2Copt%2Cxpcshell%2Ctests%2Cwithout%2Cfission%2Cenabled%2Ctest-linux1804-64-shippable-qr%2Fopt-xpcshell-nofis-e10s%2Cx2&tochange=fa6795d107b10fdd812be351f426522b28a4f363

https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&collapsedPushes=842382&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&searchStr=os%2Cx%2C11%2Cwebrender%2Cshippable%2Copt%2Cmochitests%2Cwith%2Cwebgl%2Cover%2Cipc%2Cwith%2Cfission%2Cenabled%2Ctest-macosx1100-64-shippable-qr%2Fopt-mochitest-media-gli-fis-e10s%2Cmda1&revision=2a3c0204b5191edee1fbc64c6a8b9cb62e5afe2d

https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&collapsedPushes=842382&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&searchStr=os%2Cx%2C11%2Cwebrender%2Cshippable%2Copt%2Cmochitests%2Cwith%2Cnetworking%2Con%2Csocket%2Cprocess%2Cwith%2Cfission%2Cenabled%2Ctest-macosx1100-64-shippable-qr%2Fopt-mochitest-browser-chrome-spi-nw-fis-e10s%2Cbc2&revision=2a3c0204b5191edee1fbc64c6a8b9cb62e5afe2d

Log: https://treeherder.mozilla.org/logviewer?job_id=374337508&repo=autoland&lineNumber=3435
https://treeherder.mozilla.org/logviewer?job_id=374328185&repo=autoland&lineNumber=4894
https://treeherder.mozilla.org/logviewer?job_id=374328195&repo=autoland&lineNumber=6386

Backout: https://hg.mozilla.org/integration/autoland/rev/35a6605827b50e35e9aeab8f6beb811108122594

Flags: needinfo?(mh+mozilla)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1764847
Flags: needinfo?(mh+mozilla)
Keywords: leave-open
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/116072b466c3 Increase test's fuzzTolerance to accomodate clang 14. r=padenot
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/481062597411 Update builders to clang 14. r=firefox-build-system-reviewers,mhentges,andi https://hg.mozilla.org/integration/autoland/rev/10e2414392ae Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Keywords: leave-open
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Flags: needinfo?(mh+mozilla)
Resolution: FIXED → ---
Depends on: 1765276
Attachment #9272219 - Attachment is obsolete: true
Backout by abutkovits@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/8dff65812a56 Backed out changeset 116072b466c3 as requested by the dev.
Regressions: 1765553
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/6db7394933d9 Update builders to clang 14. r=firefox-build-system-reviewers,mhentges,andi https://hg.mozilla.org/integration/autoland/rev/5bebcdfc5dd8 Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges
Regressions: 1765734
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Regressions: 1765436
Flags: needinfo?(mh+mozilla)
Regressions: 1766439
Regressions: 1766478

(In reply to Pulsebot from comment #33)

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/6db7394933d9
Update builders to clang 14. r=firefox-build-system-reviewers,mhentges,andi
https://hg.mozilla.org/integration/autoland/rev/5bebcdfc5dd8
Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges

== Change summary for alert #33909 (as of Fri, 22 Apr 2022 14:27:38 GMT) ==

Regressions:

Ratio Test Platform Options Absolute values (old vs new)
15% allrecipes ContentfulSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 2,522.92 -> 2,898.25
9% allrecipes PerceptualSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 2,876.67 -> 3,129.92
4% espn PerceptualSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 4,481.67 -> 4,658.08
4% youtube loadtime android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,400.46 -> 1,453.88
4% youtube SpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,436.46 -> 1,490.75
4% youtube fcp android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,104.25 -> 1,142.96
3% youtube ContentfulSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 986.17 -> 1,020.33
3% espn ContentfulSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 3,093.83 -> 3,199.17
3% youtube PerceptualSpeedIndex android-hw-g5-7-0-arm7-shippable-qr warm webrender 969.21 -> 1,001.67
3% youtube dcf android-hw-g5-7-0-arm7-shippable-qr warm webrender 922.27 -> 953.00
... ... ... ... ...
2% espn FirstVisualChange android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,194.46 -> 1,223.25
2% youtube LastVisualChange android-hw-g5-7-0-arm7-shippable-qr cold webrender 2,281.38 -> 2,335.50
2% youtube LastVisualChange android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,657.92 -> 1,697.08
2% booking loadtime android-hw-g5-7-0-arm7-shippable-qr warm webrender 1,193.68 -> 1,221.75
2% ebay-kleinanzeigen LastVisualChange android-hw-g5-7-0-arm7-shippable-qr warm webrender 3,989.54 -> 4,071.75

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=33909

Regressions: 1767068

(In reply to Natalia Csoregi [:nataliaCs] from comment #34)

https://hg.mozilla.org/mozilla-central/rev/6db7394933d9
https://hg.mozilla.org/mozilla-central/rev/5bebcdfc5dd8

== Change summary for alert #33990 (as of Mon, 02 May 2022 13:27:06 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
5% build times macosx64 buildbot-unknown rusttests 619.62 -> 587.04

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=33990

Regressions: 1767281
Regressions: 1769070

Too late for an update to 14.0.4?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: