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

G2 lib with GNU compiler fix #476

Closed

Conversation

RatkoVasic-NOAA
Copy link
Collaborator

Fixed G2 lib compilation failures with GNU compiler on Hera machine ([email protected]).
Fixing issue: #475

@@ -59,6 +59,12 @@ def cmake_args(self):

return args

# GNU compiler is complaining if not using -fno-range-check argument
Copy link
Collaborator

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+

Copy link
Collaborator Author

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.

@climbfuji climbfuji changed the base branch from spack-stack-dev to release/1.8.0 September 3, 2024 21:40
@climbfuji
Copy link
Collaborator

@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

Copy link
Collaborator

@climbfuji climbfuji left a 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.

@climbfuji
Copy link
Collaborator

Superseded by #477

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

Successfully merging this pull request may close these issues.

2 participants