Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed concretization of Spack environment #81

Closed
atteggiani opened this issue Oct 1, 2024 · 4 comments
Closed

Failed concretization of Spack environment #81

atteggiani opened this issue Oct 1, 2024 · 4 comments
Assignees

Comments

@atteggiani
Copy link

Description

While testing the future documentation for how to build a package with spack develop, I got into the following error when trying to concretize the ACCESS-OM2 environment (created from this repo's spack.yaml):

==> Error: concretization failed for the following reasons:

   1. No valid value for variant 'deterministic' of package 'access-om2'

Steps to reproduce the error:

git clone https://github.com/ACCESS-NRI/ACCESS-OM2.git
spack env create myenv ACCESS-OM2/spack.yaml
spack env activate -p myenv
spack concretize -f
@atteggiani atteggiani changed the title Failed concretiazation of Spack environment Failed concretization of Spack environment Oct 1, 2024
@harshula
Copy link
Contributor

harshula commented Oct 1, 2024

If you've made modifications to spack.yaml, you'll need to do spack concretize -f --fresh.

@harshula
Copy link
Contributor

harshula commented Oct 2, 2024

Otherwise, it's when the compiler isn't found.

@atteggiani
Copy link
Author

I am only doing the steps listed in "Steps to reproduce the error:" above (after following the spack setup).
If we put that in the instructions we have to make sure it will not generate the same error for the users.

@harshula
Copy link
Contributor

harshula commented Oct 2, 2024

@atteggiani used spack concretize -f --fresh and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants