Closed Bug 1531655 Opened 6 years ago Closed 6 years ago

Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox-esr60 fixed, firefox65 fixed, firefox66 fixed, firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox-esr60 --- fixed
firefox65 --- fixed
firefox66 --- fixed
firefox67 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(2 files)

Mike Hommey [:glandium] wrote in bug 1521734 comment 15:

That said, before that, we should make --enable-rust-simd error out if building with rust >= 1.33, and uplift that to all branches, including esr, because wasting all this time to fail during the build is not going to help anybody.

See Also: → 1521734
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d8d8af44ae92 Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used. r=glandium

A reasonable thing to do is to change the check to if rustc_info and rustc_info.version... ; and file a followup to make this whole thing dependent on compile_environment, like e.g. --with-system-libvpx.

Let's see if this try run ends up running artifact builds, too:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8e3a9d415a9c083a667a873e53c51fa7e205403a

Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f1ba7c69a2c9 Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used. r=glandium

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

file a followup to make this whole thing dependent on compile_environment, like e.g. --with-system-libvpx.

Filed as bug 1531691.

Comment on attachment 9047610 [details]
Bug 1531655 - Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used.

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: None
  • User impact if declined: People who build Firefox from source using Rust 1.33 without the fix for bug 1521249 will be confused. This person could be the end user in the case of packaging systems that build binaries on the end user's system.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This is a build system-only early error in a case where the build would fail anyway, and the patch does not fail on treeherder.
  • String changes made/needed: None
Attachment #9047610 - Flags: approval-mozilla-release?
Attachment #9047610 - Flags: approval-mozilla-beta?

Comment on attachment 9047614 [details]
Bug 1531655 - Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used.

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Rust 1.33 removed compiler internals that the simd crate (enabled by --enable-rust-simd) depended on. Since the replacement, the packed_simd crate, does not build with the Rust version that Mozilla's build infra pins for ESR60, the fix for bug 1521249 can't land on ESR. However, downstream packagers who package ESR but roll Rust versions forward need to be pointed to bug 1521249 so that they can apply the ESR backport of packed_simd usage if they build with Rust 1.33 or higher and don't want to regress user-facing performance.
  • User impact if declined: People who build Firefox from source using Rust 1.33 without the fix for bug 1521249 will be confused. This person could be the end user in the case of packaging systems that build binaries on the end user's system.
  • Fix Landed on Version: 67
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This is a build system-only early error in a case where the build would fail anyway, and the patch does not fail on treeherder.
  • String or UUID changes made by this patch: None
Attachment #9047614 - Flags: approval-mozilla-esr60?
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Comment on attachment 9047610 [details]
Bug 1531655 - Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used.

OK for uplift for beta 13.

Attachment #9047610 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9047610 [details]
Bug 1531655 - Emit a configure error if rustc version >= 1.33 and --enable-rust-simd used.

Doesn't affect the builds we ship, just makes builds fail earlier than they otherwise would have for users building with Rust 1.33. Approved for mozilla-release and esr60.

Attachment #9047610 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9047614 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: