Closed Bug 1759585 Opened 2 years ago Closed 2 years ago

Windows: |./mach configure| hangs if using sccache

Categories

(Firefox Build System :: Mach Core, defect)

defect

Tracking

(firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mhentges, Assigned: mhentges)

References

Details

Attachments

(1 file)

Mozconfig:

ac_add_options --with-ccache=sccache`

Then, run ./mach configure.
Note that the daemon sccache.exe must not be running to reproduce this.

See Also: → 1753797

Depending on the subprocesses created (such as if
--with-ccache=sccache is set), ./mach configure may hang.

More details about why this is is documented in bug 1753797.

The workaround is to lean on the standard library to stream-and-format
output, rather than our existing ProcessHandler code.

Though this still streams both stdout and stderr in real-time, I saw
some ordering differences between the two streams locally. I don't yet
have a reason to believe that these differences are harmful or otherwise
incorrect.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED

Ray, can you give this patch a shot to ensure that it works in your local environment?

Flags: needinfo?(rkraesig)

(In reply to Mitchell Hentges [:mhentges] 🦀 from comment #2)

Ray, can you give this patch a shot to ensure that it works in your local environment?

Looks good here!

Flags: needinfo?(rkraesig)
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4fcb128f4327
Avoid hang in `./mach configure` r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: