-
Notifications
You must be signed in to change notification settings - Fork 14
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
Installation of WGRIB2 with enable IPOLATE #253
Comments
In the file (whatever but not wgrib2)/wgrib2/CMakeLists.txt
Change the line
option(USE_IPOLATES "Use Ipolates" off)
to
option(USE_IPOLATES "Use Ipolates" on)
The next time that you run cmake, it will create a new config.h.
It will create a new makefile which will include linking in the ip library.
…On Thu, Sep 26, 2024 at 1:06 PM NYS ***@***.***> wrote:
Dear Sir,
We have successfully installed NCEPLIBS-1.3.0 as outlined in "
https://github.com/NOAA-EMC/NCEPLIBS". Following that, we proceeded with
the installation of wgrib2 as per your instructions, and the installation
was completed.
However, we would like to *install wgrib2 with the IPOLATE option enabled*.
To achieve this, we used cmake on the file and then modified the line /*
#undef USE_IPOLATE */ to #define USE_IPOLATE in *config.h*. But, we
encountered the following error during the build process:
Error:
ld: CMakeFiles/obj_lib.dir/New_grid.c.o: in function 'f_new_grid':
/home/user1/SRINIVAS/wgrib2-3.3.0/wgrib2/New_grid.c:866: undefined
reference to 'ipolatev_grib2_single_field' ld:
/home/user1/SRINIVAS/wgrib2-3.3.0/wgrib2/New_grid.c:874: undefined
reference to 'ipolates_grib2_single_field' make[2]: ***
[wgrib2/CMakeFiles/wgrib2_exe.dir/build.make:674: wgrib2/wgrib2] Error 1
make[1]: *** [CMakeFiles/Makefile2:983:
wgrib2/CMakeFiles/wgrib2_exe.dir/all] Error 2 make: *** [Makefile:146: all]
Error 2
*For your reference, we have attached the log file. Kindly look into the
issue and provide guidance on how to resolve this error.*
Thank you,
Sree
log.txt <https://github.com/user-attachments/files/17148760/log.txt>
—
Reply to this email directly, view it on GitHub
<#253>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZRAYZ5HRX7U3WA3MSLZYQBDFAVCNFSM6AAAAABO47L5NGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU2TANJTGA3TSOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you for your quick reply. I enabled USE_IPOLATES in wgrib2-3.3.0/CMakeLists.txt. During the cmake process, it automatically updated as #define USE_IPOLATES in the config.h file. However, I encountered an error with the following message: error: For your reference, I have attached the error log file. Could you kindly review it and provide guidance on how to resolve this issue? |
Is wgrib2 v3.4.0 available? That may get rid of
incompatible redefinition of macro "USE_IPOLATES"
"warning #3180: unrecognized OpenMP #pragma" is strange. It's a legal
pragma, Wgrib2 pre-github did compile with icc and icx. Harder to test now
because oneapi no longer installs icc.
undefined reference to `ipolatev_grib2_single_field'
Make sure that your are using a new version of the ip library, v5.x
…On Thu, Sep 26, 2024 at 5:02 PM NYS ***@***.***> wrote:
Thank you for your quick reply. I enabled USE_IPOLATES in
wgrib2-3.3.0/CMakeLists.txt. During the cmake process, it automatically
updated as #define USE_IPOLATES in the config.h file. However, I
encountered an error with the following message:
error:
config.h(11): warning #47 <#47>:
incompatible redefinition of macro "USE_IPOLATES" #define USE_IPOLATES
For your reference, I have attached the error log file. Could you kindly
review it and provide guidance on how to resolve this issue?
log.txt <https://github.com/user-attachments/files/17152887/log.txt>
—
Reply to this email directly, view it on GitHub
<#253 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZUBD3EZU6EVIU2EWILZYQ4Y7AVCNFSM6AAAAABO47L5NGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXGQ4DMOBZGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
As noted in the NCEPLIBS page, spack-stack is the new way to install NCEPLIBS, and you will get the latest versions. See https://github.com/JCSDA/spack-stack However, wgrib2 only needs the ip library, not the whole NCEPLIBS stack. Just install NCEPLIBS-ip-5.1.0 and that should be all you need for wgrib2. |
Thank you for your replies. As per your suggestions, I successfully installed the latest version of Ipolates (5.1.0) using gfortran compilers. However, while trying to install wgrib2 with the same compilers, I encountered an error: Error: CMake Error at /home/user1/SRINIVAS/with_gfortran/ip/build/ip-config.cmake:53 (get_target_property): Could you kindly review it and provide guidance on how to resolve this issue? |
Thank you for your support. The issue was with the 'ipolate' installation, but it has been resolved by following their suggestions. Everything is now working fine. Thank you once again |
Dear all, Error: Please provide valuable suggestions to resolve this error. |
Dear Sir/Madam,
We have successfully installed NCEPLIBS-1.3.0 as outlined in "https://github.com/NOAA-EMC/NCEPLIBS". Following that, we proceeded with the installation of wgrib2 as per your instructions, and the installation was completed.
However, we would like to install wgrib2 with the IPOLATE option enabled. To achieve this, we used cmake on the file and then modified the line /* #undef USE_IPOLATE */ to #define USE_IPOLATE in config.h. But, we encountered the following error during the build process:
Error:
ld: CMakeFiles/obj_lib.dir/New_grid.c.o: in function 'f_new_grid': /home/user1/SRINIVAS/wgrib2-3.3.0/wgrib2/New_grid.c:866: undefined reference to 'ipolatev_grib2_single_field' ld: /home/user1/SRINIVAS/wgrib2-3.3.0/wgrib2/New_grid.c:874: undefined reference to 'ipolates_grib2_single_field' make[2]: *** [wgrib2/CMakeFiles/wgrib2_exe.dir/build.make:674: wgrib2/wgrib2] Error 1 make[1]: *** [CMakeFiles/Makefile2:983: wgrib2/CMakeFiles/wgrib2_exe.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
For your reference, we have attached the log file. Kindly look into the issue and provide guidance on how to resolve this error.
Thank you,
Sree
log.txt
The text was updated successfully, but these errors were encountered: