-
Notifications
You must be signed in to change notification settings - Fork 2.4k
spack prints spec that is not reusable ( CMakePackage + ~variant ) #15362
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingradiusstriageThe issue needs to be prioritizedThe issue needs to be prioritizedvariants
Description
Running spack spec for a CMake package where a variant is deactivated, Spack prints a spec that is not reusable:
Spack version
Tested on develop and 13.2
Steps to reproduce the issue
$ spack spec h5cpp~mpi
[email protected]%[email protected] build_type=RelWithDebInfo ~mpi arch=darwin-mojave-x86_64
...
$ spack spec [email protected]%[email protected] build_type=RelWithDebInfo ~mpi arch=darwin-mojave-x86_64
zsh: no such user or named directory: mpi
...Error Message
This doesn’t generate an error in Spack itself.
Information on your system
Default Spack configuration on MacOS, with zsh.
Comments
The problem is mainly that Spack generates a spec using ~variant after a whitespace. This seems to happen only with CMake packages, mainly because those have a build_type variant that comes first.
Solutions could be to reorder the variants attache ~variant to the spec, or use - instead of ~.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingradiusstriageThe issue needs to be prioritizedThe issue needs to be prioritizedvariants