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

Figure out and raise an issue on why spack doesn't find oneapi compilers correctly ( e.g. https://github.com/ACCESS-NRI/ACCESS-OM3/actions/runs/12799074164/job/35684422602) #51

Closed
anton-seaice opened this issue Feb 25, 2025 · 7 comments
Assignees

Comments

@anton-seaice
Copy link
Contributor

anton-seaice commented Feb 25, 2025

@manodeep found that setting

gcc-runtime:
    require:
      - '[email protected]'

means that spack will solve & install using oneapi

However, the CD does not allow this:

https://github.com/ACCESS-NRI/ACCESS-OM3/actions/runs/13511751794/job/37753169881#step:3:127

     "errors": [
      {
        "path": "/spack/packages/gcc-runtime/require/0",
        "message": "must match pattern \"^@[A-Za-z0-9.\\-_=/]+$\""
      }
    ]

Which @CodeGat promises to fix :-)

@anton-seaice anton-seaice self-assigned this Feb 25, 2025
@anton-seaice
Copy link
Contributor Author

The working syntax for the workaround in spaxk.yaml is

gcc-runtime:
    require:
      - '@14.1.0'  # The version of the package
      - '%[email protected]'  # The compiler+version used to build

@anton-seaice
Copy link
Contributor Author

See ACCESS-NRI/schema#44

@CodeGat
Copy link
Member

CodeGat commented Feb 26, 2025

The above is merged @anton-seaice, you should be able to do:

gcc-runtime:
    require:
      - '%[email protected]'  # The compiler+version used to build

I also updated vars.SPACK_YAML_SCHEMA_VERSION to 1-0-6

@anton-seaice
Copy link
Contributor Author

@manodeep
Copy link

@anton-seaice For spack concretize to work with this gcc-runtime, I also had to set concretizer:unify to false - did you find such a thing?

@anton-seaice
Copy link
Contributor Author

No I didn't find that was needed. - e.g. #37 (comment) builds fine

@manodeep
Copy link

Thanks Anton!

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

No branches or pull requests

3 participants