WRFV compilation issue on CentOS 8
-
- Posts: 4
- Joined: Tue Jan 12, 2021 1:56 am
WRFV compilation issue on CentOS 8
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.
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
Re: WRFV compilation issue on CentOS 8
Hi,
Can you also attach your configure file, along with your compile log? Thanks!
Can you also attach your configure file, along with your compile log? Thanks!
NCAR/MMM
-
- Posts: 4
- Joined: Tue Jan 12, 2021 1:56 am
Re: WRFV compilation issue on CentOS 8
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.
-
- Posts: 4
- Joined: Tue Jan 12, 2021 1:56 am
Re: WRFV compilation issue on CentOS 8
See attachments
- Attachments
-
- spack-build.txt
- (1.15 MiB) Downloaded 8 times
-
- configure.txt
- (38.92 KiB) Downloaded 4 times
Re: WRFV compilation issue on CentOS 8
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.
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
-
- Posts: 4
- Joined: Tue Jan 12, 2021 1:56 am
Re: WRFV compilation issue on CentOS 8
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
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
Re: WRFV compilation issue on CentOS 8
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?
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