WRFV compilation issue on CentOS 8

All topics related to compiling WRF, including environment set-up, and library installation
Post Reply
shijin1991
Posts: 4
Joined: Tue Jan 12, 2021 1:56 am

WRFV compilation issue on CentOS 8

Post by shijin1991 » Tue Jan 12, 2021 4:18 am

Hello, when building WRFV 3.9.1.1 on CentOS 8, I hit the same issue of the location of `rpc` directory reported in viewtopic.php?t=61. I installed libtirpc-devel and have /usr/include/tirpc/rpc available. Then I applied https://github.com/wrf-model/WRF/pull/1072's patch to WRFV-3.9.1.1, but I still get errors when compiling as

landread.c:130:8: error: unknown type name 'XDR'
landread.c:410:11: error: 'XDR' undeclared (first use in this function)
landread.c:410:16: error: expected expression before ')' token
landread.c:411:29: error: 'XDR_DECODE' undeclared (first use in this function)

, which looks strange to me because I checked both XDR and XDR_DECODE are defined in my /usr/include/tirpc/rpc/xdr.h file. Could you provide any ideas for this issue? I attached the configure.wrf and share/landread.c here as well.
Attachments
configure.wrf
(20.46 KiB) Downloaded 4 times
landread.c
(20.99 KiB) Downloaded 5 times

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

Re: WRFV compilation issue on CentOS 8

Post by kwerner » Wed Jan 13, 2021 10:50 pm

Hi,
Can you also attach your configure file, along with your compile log? Thanks!
NCAR/MMM

shijin1991
Posts: 4
Joined: Tue Jan 12, 2021 1:56 am

Re: WRFV compilation issue on CentOS 8

Post by shijin1991 » Mon Jan 25, 2021 12:19 am

Hi, here are the configure file and full build log (spack-build.txt), thanks for your help!
Last edited by shijin1991 on Mon Jan 25, 2021 12:22 am, edited 1 time in total.

shijin1991
Posts: 4
Joined: Tue Jan 12, 2021 1:56 am

Re: WRFV compilation issue on CentOS 8

Post by shijin1991 » Mon Jan 25, 2021 12:21 am

See attachments
Attachments
spack-build.txt
(1.15 MiB) Downloaded 8 times
configure.txt
(38.92 KiB) Downloaded 4 times

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

Re: WRFV compilation issue on CentOS 8

Post by kwerner » Wed Jan 27, 2021 6:58 pm

Thanks for sending those. Just to make sure, after you modified the code, did you issue a "clean -a" and then reconfigure and then recompile?
If not, please try that. If you did, then I'm sorry to ask for one more thing, but can you also attach your full compile log? Thanks.
NCAR/MMM

shijin1991
Posts: 4
Joined: Tue Jan 12, 2021 1:56 am

Re: WRFV compilation issue on CentOS 8

Post by shijin1991 » Mon Feb 01, 2021 8:45 pm

Hi,

I did not compile wrfv before modifying the code from a vanilla WRFV 3.9.1. I just did this modification and then started configure and compile. What "full compile log" do you mean? I thought the "spack-build.out" is the full compile log. It was the log generated by spack which including the configuration stage and compilation stage. I did a manual configure and compile as well and I got the same log for compile stage.

Thanks,
Shi

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

Re: WRFV compilation issue on CentOS 8

Post by kwerner » Wed Feb 03, 2021 12:44 am

Hi,
Thanks. I originally only saw the top of the Spack file and it didn't look like a typical compile log, but I see that that compile log starts further down in the file. I'm not certain, but it seems that this issue may be a bit different than the landread error the other user(s) is/are seeing. Out of curiosity, are you able to compile the latest version of WRF (V4.2.2) as is?
NCAR/MMM

Post Reply

Return to “WRF Compiling/Installation”