Skip to content

Revert to manual flag enabling, due to RegCM bug in configure.#10863

Merged
adamjstewart merged 1 commit intospack:developfrom
exactlab:regcm-fixes3
Mar 13, 2019
Merged

Revert to manual flag enabling, due to RegCM bug in configure.#10863
adamjstewart merged 1 commit intospack:developfrom
exactlab:regcm-fixes3

Conversation

@bebosudo
Copy link
Copy Markdown
Contributor

@bebosudo bebosudo commented Mar 12, 2019

The configure of RegCM treats --disable-FEATURE as --enable-FEATURE,
so we cannot use enable_or_disable.

I'd also like to fix issue #10163; I tried specifying: depends_on('mpi', type=('build', 'link', 'run'))
but the openmpi bin wasn't added to the PATH in the module created; the following is the line with PATH from the module:
prepend-path PATH /.../intel/18.0.3/regcm/4.7.1-SVN6916-cosiybixa6r2korik6vaajsq4xfxhjmv/bin.

Shouldn't 'run' include the dependency in the PATH? Is it a bug?
https://spack.readthedocs.io/en/latest/packaging_guide.html?highlight=run#dependency-types

The configure of RegCM treats --disable-FEATURE as --enable-FEATURE,
so we cannot use enable_or_disable.
@adamjstewart
Copy link
Copy Markdown
Member

Shouldn't 'run' include the dependency in the PATH? Is it a bug?

This is a long-standing issue. See #8639 for more discussion. For now, you'll have to manually configure your modules.yaml to autoload the MPI module.

@adamjstewart adamjstewart merged commit 46fb6ed into spack:develop Mar 13, 2019
@bebosudo bebosudo deleted the regcm-fixes3 branch March 13, 2019 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants