Skip to content

External packages affect concretization #4635

@adamjstewart

Description

@adamjstewart

This is a weird one. I have a packages.yaml containing:

packages:
  all:
    # Set Intel as default compiler
    compiler: [intel, gcc, pgi, nag]
  cmake:
    paths:
      [email protected]: /usr

When I run:

$ spack spec cmake %gcc
Input spec
--------------------------------
cmake%gcc

Normalized
--------------------------------
cmake%gcc

Concretized
--------------------------------
[email protected]%[email protected] cflags="-axCOMMON-AVX512,MIC-AVX512,CORE-AVX512,CORE-AVX2,AVX" cxxflags="-axCOMMON-AVX512,MIC-AVX512,CORE-AVX512,CORE-AVX2,AVX" fflags="-axCOMMON-AVX512,MIC-AVX512,CORE-AVX512,CORE-AVX2,AVX" ~doc+ncurses+openssl+ownlibs~qt arch=linux-centos7-x86_64

It chooses a different compiler and version than I requested. If I comment out the external package, it works as I would expect:

$ spack spec cmake %gcc
Input spec
--------------------------------
cmake%gcc

Normalized
--------------------------------
cmake%gcc

Concretized
--------------------------------
[email protected]%[email protected]~doc+ncurses+openssl+ownlibs~qt arch=linux-centos7-x86_64 
    ^[email protected]%[email protected]~symlinks arch=linux-centos7-x86_64 
        ^[email protected]%[email protected]+internal_glib arch=linux-centos7-x86_64 
    ^[email protected]%[email protected] arch=linux-centos7-x86_64 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions