Skip to content

Command line spec not checked against packages.yaml with buildable: False #6420

@tgamblin

Description

@tgamblin

Given this in packages.yaml:

  ibm-essl:
    buildable: False
    version: [5.5]
    paths:
      [email protected] arch=linux-rhel7-pp64le: /opt/ibmmath/essl/5.5

And this command line:

$ spack spec netlib-lapack +external-blas %[email protected] ^[email protected]+cuda+ilp64

Expected Result

Spack should raise an error that the spec is unsatisfiable because the packages.yaml spec doesn't specify values for variants and the package is set to buildable: False.

Actual Result

Spec concretizes successfully and has ~ilp64 ~cuda:

$ spack spec netlib-lapack +external-blas %[email protected] ^[email protected]+cuda+ilp64
Input spec
--------------------------------
netlib-lapack%[email protected]+external-blas
   ^[email protected]+cuda+ilp64

Normalized
--------------------------------
netlib-lapack%[email protected]+external-blas
   ^cmake
   ^[email protected]+cuda+ilp64

Concretized
--------------------------------
[email protected]%[email protected] fflags="-qzerosize" ~debug+external-blas+lapacke patches=e87343d09dd6635ab39948d5031c388a9705d0dd7ce81f795003ea70626b1721 +shared arch=linux-rhel7-ppc64le 
   ^[email protected]%[email protected] fflags="-qzerosize" ~doc~ncurses~openssl+ownlibs~qt arch=linux-rhel7-ppc64le 
   ^[email protected]%[email protected] fflags="-qzerosize" ~cuda~ilp64 threads=openmp arch=linux-rhel7-ppc64le 

Steps to reproduce the issue

See above.

Information on your system

This includes:

  1. reproduced on IBM Power8 system and on a mac laptop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions