Skip to content
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

Issue at NCEPLIBS-ip-5.1.0 Installation #254

Open
met-sree opened this issue Sep 27, 2024 · 4 comments
Open

Issue at NCEPLIBS-ip-5.1.0 Installation #254

met-sree opened this issue Sep 27, 2024 · 4 comments

Comments

@met-sree
Copy link

Dear all,

I am trying to install the latest version of NCEPLIBS-ip-5.1.0, which is required for the installation of wgrib2-3.4.0. During the make and make test steps, I encountered errors/warnings, as shown in the attached log files:
make_test_log.txt
make_log.txt

Interestingly, despite the errors, make install was completed successfully. However, when I tried to compile wgrib2, it produced the following errors:

Error:
CMake Error at /home/user1/SRINIVAS/NCEPLIBS-ip-5.1.0/build/ip-config.cmake:53 (get_target_property):
get_target_property() called with non-existent target "ip::ip_4".
Call Stack (most recent call first):
CMakeLists.txt:90 (find_package)

Could you please provide suggestions on how to resolve these issues?"

Thank you,
Srinivas

@AlexanderRichert-NOAA
Copy link
Contributor

Can you provide the sequence of commands you're using for each. It looks like the ip library compiled successfully, and the failing tests are probably floating point differences though feel free to provide the verbose output of those just in case there's some other issue. The error you're getting makes me think there's some kind of installation issue on the ip end since clearly you're building the '_4' version of the library.

@met-sree
Copy link
Author

met-sree commented Sep 27, 2024

Thank you for your reply. Interestingly, all tests of IP compilation were successful with the GFORTRAN compiler. However, despite encountering no errors with GFORTRAN, I faced the same issue mentioned earlier while trying to install wgrib2. Additionally, 21% of the tests failed with the Intel compiler, showing the same error during the wgrib2 installation.

For Ipolates installation:
downloaded from https://github.com/NOAA-EMC/NCEPLIBS-ip/archive/refs/tags/v5.1.0.tar.gz
untared it and renamed it into ip; cd ip
mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/user1/SRINIVAS/ip/build ../../ip
make
make install
For wgrib2 installation:
Downloaded the file from https://github.com/NOAA-EMC/wgrib2/archive/refs/tags/v3.4.0.tar.gz
untared it and renamed it into wgrib2; cd wgrib2
mkdir build; cd build
cmake -S/home/user1/SRINIVAS/wgrib2 -B/home/user1/SRINIVAS/wgrib2/build -DCMAKE_INSTALL_PREFIX= home/user1/SRINIVAS/wgrib2/build -DCMAKE_PREFIX_PATH=/home/user1/SRINIVAS/ip/build

Please note that the path selection is slightly different from the log file mentioned above. I repeated the process, so the paths differ from those in the previous log files. However, the overall procedure remains the same.

Thank you

@AlexanderRichert-NOAA
Copy link
Contributor

I was able to reproduce the issue when using ip/build as the install path, but resolved the problem by changing the directory. Can you try installing to a separate, clean directory (say, ip/build/install) and see if that resolves the problem? For some reason when I installed to the build directory itself, it wasn't generating ip-target.cmake, which led to the same error about ip::ip_4 not being found.

@met-sree
Copy link
Author

Thank you for your continuous support. I followed your suggestions and tried with both Intel and gfortran compilers.

  • With the gfortran compiler, everything (ipolate and wgrib2) installed successfully without any errors.
  • However, with the Intel compiler, I encountered errors during the 'make test' process, as shown in the attached text file. Despite this, I was able to obtain all the files needed for wgrib2, and wgrib2 was successfully installed with some warnings.

Once again thank you for your support.
Srinivas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants