Skip to content

macOS: Fail Fast without Xcode + Command Line Tools #7151

@citibeth

Description

@citibeth

When building on Mac (using default compilers), it is necessary to have Xcode and Command Line tools installed. Apple unfortunately doesn't make this easy. If you installed Xcode but not CLT, things will go ahead just fine, but some stuff won't work.

During setup (creating of compilers.yaml), Spack should check that Xcode and Command Line Tools are installed; and if not, complain with an error, telling the user how to install the required stuff. This will be the right thing to do on 99% of Macs. For the remaining 1%, maybe there should be an override to ignore the error, or have the user create compilers.yaml manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions