Closed white238 closed 1 year ago
I cannot reproduce with:
What I tried was to use:
compilers:
- compiler:
spec: gcc@=9.4.0
paths:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77: /usr/bin/gfortran
fc: /usr/bin/gfortran
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
- compiler:
spec: gcc@=9.4.0_no_fortran
paths:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77: null
fc: null
flags: {}
operating_system: ubuntu20.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []
And axom
built fine with gcc@=9.4.0
I renamed a compiler spec to have it's version in the name and noticed that a different compiler spec lost its fortran compiler after doing so. Renaming the second compiler spec to either
gcc@8.1_no_fortran
orgcc@no_fortran
works fine.Steps to reproduce the issue
Define two compiler specs that are close to each other:
When referencing the fortran compiler in a package the environment variable
SPACK_FC
ends up being the string "None". We do already guard against the None type but this somehow ends up with a string "None".Error Message
I get the following error out of Axom's CMake command:
Information on your system
rzgenie