Skip to content

Bug in 'spack stack check-preferred-compiler' for package without explicit config #2000

@climbfuji

Description

@climbfuji

Description

spack-stack check-preferred-compiler crashes when a package without an explicit config entry doesn't use the default=preferred compiler. See https://github.com/JCSDA/spack-stack/actions/runs/25017452891/job/73268907151?pr=1999

To Reproduce

See above

Expected behavior

A package that doesn't have an explicit entry in the package config is expected to be built with the default=preferred compiler. Thus, spack stack check-preferred-compiler should log a compiler mismatch for this package.

System, compiler, code, ...

The above error is for the Ubuntu CI runners with Intel oneAPI as the preferred compiler, package patchelf.

Additional context

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions