Closed Bug 1733893 Opened 4 years ago Closed 4 years ago

macOS / M1: ./mach bootstrap does not update clang-format

Categories

(Developer Infrastructure :: Lint and Formatting, defect)

ARM64
macOS
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1710287

People

(Reporter: lth, Unassigned)

Details

When I run ./mach clang-format on my M1, I get this error message (transcribed):

You're using an old or incorrect version (clang-format version 11.0.1 (taskcluster-...)) of clang-format binary. Please update to a more recent one (at least > 12.0.1) by running './mach bootstrap'.

However, ./mach bootstrap does not update the clang-format binary, and the error persists.

(Also there's a missing "the" in the error message.)

It's possible building Firefox updates that binary? I don't know. Building the JS shell does not update it, and that's the only thing I build, most days.

it should be built

Component: Bootstrap Configuration → Lint and Formatting
Flags: needinfo?(bpostelnicu)
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Can you please try: rm -rf ~/.mozbuild/clang-tools and retry to run clang-format or get the artifacts with bootstrap?

Flags: needinfo?(bpostelnicu) → needinfo?(lhansen)

I have done that. After that, bootstrap does not fetch anything, but subsequently running clang-format does download a new clang-tidy, which seems to work. Thanks!

Flags: needinfo?(lhansen)
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.