Closed Bug 1594827 Opened 5 years ago Closed 5 years ago

Firefox fails to build with Rust 1.39.0 (Rust error: E0204, E0119)

Categories

(Core :: CSS Parsing and Computation, defect)

70 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1583471

People

(Reporter: dylan.araps, Unassigned)

Details

Attachments

(1 file)

Attached file Build log excerpt.

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Steps to reproduce:

  • Install Rust 1.39.0.
  • Build Firefox using mach build.
  • Large number of errors (E0204, E0119) in multiple Rust files.

Actual results:

The build failed due to Rust language errors.

Expected results:

The build should succeed.

OS: Unspecified → Linux
Hardware: Unspecified → x86

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → General
Product: Firefox → Firefox Build System
Component: General → CSS Parsing and Computation
Flags: needinfo?(emilio)
Product: Firefox Build System → Core

Which Firefox version are you building? This is an already-fixed bindgen bug that a change in the Rust standard library exposed, see:

The bug updating Bindgen landed on 71, bug 1583471.

Flags: needinfo?(emilio) → needinfo?(dylan.araps)

I'm building version 70.0.1. If this is fixed in 71.0.0, feel free to close this.

Flags: needinfo?(dylan.araps)

Yeah, this is fixed in 71, I use 0.39 locally on trunk.

Thanks for reporting!

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE

ehm, you might want to fix this properly? Right now there's no cve against rust, but something as CVE-2019-12083 might happen again. I agree that the informations provided aren't awfully helpfull, I can provide a build log with the errors to ease debugging this. Just ping me for request information.

(In reply to tt_1 from comment #5)

ehm, you might want to fix this properly? Right now there's no cve against rust, but something as CVE-2019-12083 might happen again. I agree that the informations provided aren't awfully helpfull, I can provide a build log with the errors to ease debugging this. Just ping me for request information.

I understand the failure mode, see the rust-lang issue linked in comment 2. I don't know how this would be a security issue, at least in the bindgen case, where it's just a build tool?

That is, what do you mean with "fixing it properly"? This is properly fixed on bindgen and on trunk already.

Right now it doesn't matter much, since there's no open cve against any version of rust. In my opinion it would be a wise move to backport the fix for this issue to esr, and possibly to the v70.0 branch, so that you're not caught by surprise if any cve is filled against rust in the future.

Ah, I see what you mean. Yeah, backporting the build fix to ESR should be straight-forward should it be needed... Probably not worth backporting to 70 at this point.

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

Attachment

General

Creator:
Created:
Updated:
Size: