No ungrib.exe

All topics related to compiling the WPS, including library installation and environment set-up
Post Reply
mml373
Posts: 3
Joined: Mon Oct 29, 2018 6:32 am

No ungrib.exe

Post by mml373 » Sun Apr 11, 2021 2:54 am

Grrr. Sorry, folks. Another failure to obtain ungrib.exe after compiling WPS. Please see attached files, and thanks in advance for any help. I do note an error to the effect of "/usr/bin/ld: cannot find -lg2_4" in the log.compile. I do not know what -lg2_4 is.

Some kind of intmath.mod error as well in the compile log.


Thanks again.
Attachments
log.compile
(115.67 KiB) Downloaded 3 times
configure.wps
(3.63 KiB) Downloaded 4 times

kwerner
Posts: 2256
Joined: Wed Feb 14, 2018 9:21 pm

Re: No ungrib.exe

Post by kwerner » Mon Apr 12, 2021 6:17 pm

Hi,
The error in your compile log is

Code: Select all

intmath.f:207:14:

  207 |       if(iand(i,i-1)/=0) then
      |              1
Error: Arguments of ‘iand’ have different kind type parameters at (1)
intmath.f:172:14:

  172 |       if(iand(i,i-1)/=0) then
      |              1
Error: Arguments of ‘iand’ have different kind type parameters at (1)
make[2]: [Makefile:72: intmath.o] Error 1 (ignored)
Take a look at this code fix that addresses the problem. Once on that page, you can click on the "files changed" tab to see the exact code correction. Once you modify the code, you'll need to issue a 'clean -a' and then reconfigure and recompile the code.
NCAR/MMM

mml373
Posts: 3
Joined: Mon Oct 29, 2018 6:32 am

Re: No ungrib.exe

Post by mml373 » Wed Apr 14, 2021 12:24 am

Thank you for your reply. I made the changes referenced but still getting the same error (I think). Running ./clean -a before ./configure and ./compile. Been "out of Linux" for awhile. Maybe I'm forgetting something.

Thoughts?
Attachments
configure.wps
(3.63 KiB) Downloaded 5 times
log.compile
(116.87 KiB) Downloaded 5 times

kwerner
Posts: 2256
Joined: Wed Feb 14, 2018 9:21 pm

Re: No ungrib.exe

Post by kwerner » Tue Apr 20, 2021 6:18 pm

Hi,
The original error you were getting was:

Code: Select all

intmath.f:207:14:

  207 |       if(iand(i,i-1)/=0) then
      |              1
Error: Arguments of ‘iand’ have different kind type parameters at (1)
Now the error is:

Code: Select all

intmath.f:211:9:

  211 |       if(iand(i,i=1_1)/=0) then
      |         1
Error: Argument ‘i’ appears twice in call to ‘iand’ at (1)
Can you send me the intmath.f file that you modified? Thanks!
NCAR/MMM

Post Reply

Return to “WPS Compiling/Installation”