-
Notifications
You must be signed in to change notification settings - Fork 677
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
Should WRF/Makefile pass the NETCDF4_DEP_LIB to external/io_netcdf/makefile? #1945
Comments
I forgot to say, the version is WRF 4.5.1 |
@islas Do you think PR#1935 would address this? |
@weiwangncar Not exactly but it is in the same scope of issue - The way this affects this issue is that |
considering the line in |
Going through PRs for v4.5.2, I realized #1923 should solve this. It also slightly addresses my previous point of better utilizing |
I was compiling WRF and encounter the error of "undefined H5... " in producing external/io_netcdf/diffwrf.
I find the detailed statement doesn't contain "-lhdf5_hl -lhdf5", and the NETCDF4_DEP_LIB in external/io_netcdf/makefile is empty.
Since the NETCDF4_DEP_LIB in WRF/Makefile is an internal variable rather than environment variable, it will not be inherited when calling a "make" in some places.
When I added
NETCDF4_DEP_LIB=$(NETCDF4_DEP_LIB)
to this statement ($(MAKE) ... ... diffwrf
, near Line 927 of WRF/Makefile):the compilation then work correctly.
The text was updated successfully, but these errors were encountered: