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

FYI on some changes that may be needed for gfortran version 10 #3846

Closed
billsacks opened this issue Feb 4, 2021 · 2 comments
Closed

FYI on some changes that may be needed for gfortran version 10 #3846

billsacks opened this issue Feb 4, 2021 · 2 comments

Comments

@billsacks
Copy link
Member

I inadvertently updated to gfortran version 10 on my Mac and ran into some build issues. I spent some time figuring out how to resolve them, so thought I'd share that knowledge in case others run into similar issues. I'm opening an issue for this just as somewhere to record this, but I guess I'll just close it immediately, because I don't think anything needs to be done right now.

I ran into two issues:

(1) I got a weird compilation error in some share code indicating a type mismatch between the actual argument to one mpi_bcast call and the actual argument to a different mpi_bcast call in that same module. I found similar issues from some google searches (Unidata/netcdf-fortran#212, GlobalArrays/ga#157, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91731), including a suggestion that this may be due to a problem in mpich (which is the mpi library I am using on my mac). The workaround is to add the compilation flag -fallow-argument-mismatch.

(2) When building a case that includes CTSM, I got an error about the non-standard use of a BOZ literal constant; I suspect this may appear in other components as well. See ESCOMP/CTSM#1270, with the fix here ESCOMP/CTSM#1271. Until that fix is in place in all components, a workaround is to add the flag -fallow-invalid-boz

@billsacks
Copy link
Member Author

Closing this, since I only opened it for informational purposes.

@billsacks
Copy link
Member Author

See also ESCOMP/CDEPS#38

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

No branches or pull requests

1 participant