Do you get the same error if you choose pgf90 and pgcc (option 54)? I managed to get it to compile with that. All ICEs are essentially bugs. I’m compiling it now as option 3 to see if I can track down where the ICE comes from. And I’m guessing that since this dmpar, you’re building with OpenMPI or some other MPI variant?
I was able to download WRF 4.1.2 and reproduce the error. I added a problem report (TPR#27672) and sent it to our engineers for further investigation.
The error does appear to be new in 19.7 since I’m able to successfully compile the same source with PGI 19.5. I’ve also determined that the source compiles fine with our non-LLVM compilers. Hence as a work around, can you try either compiling with PGI 19.5 or set your PATH to our non-LLVM compilers ($PGI/linux86-64-nollvm/19.7/bin)?
I am using the community version (19.10) and I have the same ICE. I guess the next community version will not be release until later this year. Is there a way for me to use an older version like 19.5 so I can compile WRF4.1? Or is there another way to get around the problem?
No, archived releases are only available to Professional Edition License holders.
Note that PGI 20.4 is the last PGI branded release. We’re transitioning the compilers to be part of the NVIDIA HPC SDK will be available for early access here soon (see https://developer.nvidia.com/hpc-sdk) . The first NV 20.5 early access release will have the fix for building WRF 4.1.2. There’s no cost but does require registration. If you are unable to register, we will have twice yearly releases that do not require registration, with the first late this year.