Skip to content

Problems with MacOS when installing clang tools (from static binaries) #331

@2bndy5

Description

@2bndy5

Hit an error in MacOS runners during field tests:

Error: {clang_installer::version:153}: Failed to download clang-tidy from static distribution: The static binaries are only built for x86_64 (amd64) architecture

This happens when homebrew fails to install a deprecated formuae:

Error: {clang_installer::downloader::native_packages:120}: Failed to install clang-tidy v11.0.0 using Homebrew package manager: brew failed to install llvm@11 package: ::warning::No available formula with the name "llvm@11". Did you mean llvm, llvm@21, llvm@19, llvm@18, llvm@17, llvm@16, llvm@15, llvm@14, llvm@12 or llvm@20?

Fortunately clang-installer is falling back to static binary download. Unfortunately, the static binaries only build for x86_64.

Good news! I think the latest static binaries' release, master-63858060, now includes aarch64 builds for MacOS. We just have to update clang-installer to use that release (from master-6e612956) here:

const CLANG_TOOLS_TAG: &str = "master-6e612956";

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions