-
Notifications
You must be signed in to change notification settings - Fork 14
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
G2 lib with GNU compiler fix #476
Conversation
@@ -59,6 +59,12 @@ def cmake_args(self): | |||
|
|||
return args | |||
|
|||
# GNU compiler is complaining if not using -fno-range-check argument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to apply this to newer gfortran versions, too? I know we need it for 9.2.0 (hera, jet) and 9.4.0 (containers), but I am not sure it's needed for gfortran-10+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to apply this to newer gfortran versions, too? I know we need it for 9.2.0 (hera, jet) and 9.4.0 (containers), but I am not sure it's needed for gfortran-10+
Right, I don't know if this will affect any other machine as well. But actually, this argument is benign, it should work for any machine/compiler version. Unless we see the problem, I'd leave it as is.
@RatkoVasic-NOAA Style tests fail, see https://github.com/JCSDA/spack/actions/runs/10690265381/job/29634235299?pr=476 I also changed the base branch to release/1.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexanderRichert-NOAA Are you ok with a blanket -fno-range-check
option for all versions of gfortran
, or would you like to see it narrowed down to just version 9.x.y?
Something along the lines of:
with self.compiler.compiler_environment(): |
To keep in mind and change here in any case: We need to check if the Fortran compiler contains gfortran
(and not endswith gfortran
, sometimes it ends with gfortran-9
for example). This will still not cover Crays that use the Cray compiler wrappers (ftn
), but we don't have any Crays that use gfortran@9
.
Superseded by #477 |
Fixed G2 lib compilation failures with GNU compiler on Hera machine ([email protected]).
Fixing issue: #475