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

update cmake version being checked to one that works (was: Issue Installing NCEPLIBS-ip) #258

Closed
deadpickle opened this issue Nov 11, 2024 · 5 comments · Fixed by #260
Closed
Assignees
Labels
build Building software is complicated!

Comments

@deadpickle
Copy link

I'm trying to install this to get to grib2io-interp. I'm on Ubuntu 20.4 and have installed libblas-dev and liblapack-dev. Here are the errors I get:

jlahowetz2@SleazySloth:/data/temp/forecast-maps/NCEPLIBS-ip-5.1.0$ cmake -DCMAKE_INSTALL_PREFIX=/data/temp/forecast-maps /data/temp/forecast-maps/NCEPLIBS-ip-5.1.0/
-- The C compiler identification is GNU 9.4.0
-- The Fortran compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Library kinds that will be build: 4;d
-- Setting build type to 'Release' as none was specified.
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - found
-- Found BLAS: /usr/lib/x86_64-linux-gnu/libblas.so  
-- Looking for Fortran cheev
-- Looking for Fortran cheev - not found
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- A library with LAPACK API found.
failed to create symbolic link '/data/temp/forecast-maps/NCEPLIBS-ip-5.1.0/tests/data' because existing path cannot be removed: Is a directory
-- Configuring done
CMake Error at src/CMakeLists.txt:51 (add_library):
  Target "ip_d" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at src/CMakeLists.txt:51 (add_library):
  Target "ip_4" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptrung_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:159 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptezv_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:157 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptrungv_d" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:160 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_splat_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:155 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_splaplac_d" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:154 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_splat_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:155 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptrungv_4" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:160 (create_sp_test)


CMake Error at tests/CMakeLists.txt:49 (add_executable):
  Target "test_earth_radius_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:115 (add_library):
  Target "test_library_grib1_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:67 (add_executable):
  Target "test_vector_grib2_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:67 (add_executable):
  Target "test_vector_grib2_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:66 (add_executable):
  Target "test_scalar_grib2_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_ncpus_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:153 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_splaplac_4" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:154 (create_sp_test)


CMake Error at tests/CMakeLists.txt:61 (add_executable):
  Target "tst_gdswzd_grib2_4" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:42 (add_executable):
  Target "test_ipxwafs_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:56 (add_library):
  Target "test_library_grib2_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:125 (add_executable):
  Target "test_scalar_grib1_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:126 (add_executable):
  Target "test_vector_grib1_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:66 (add_executable):
  Target "test_scalar_grib2_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:49 (add_executable):
  Target "test_earth_radius_4" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sppad_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:156 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_fft_4" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:158 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptrung_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:159 (create_sp_test)


CMake Error at tests/CMakeLists.txt:120 (add_executable):
  Target "tst_gdswzd_grib1_d" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:42 (add_executable):
  Target "test_ipxwafs_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:120 (add_executable):
  Target "tst_gdswzd_grib1_4" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:56 (add_library):
  Target "test_library_grib2_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:125 (add_executable):
  Target "test_scalar_grib1_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sptezv_4" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:157 (create_sp_test)


CMake Error at tests/CMakeLists.txt:61 (add_executable):
  Target "tst_gdswzd_grib2_d" links to target "LAPACK::LAPACK" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_sppad_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:156 (create_sp_test)


CMake Error at tests/CMakeLists.txt:115 (add_library):
  Target "test_library_grib1_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_ncpus_d" links to target "LAPACK::LAPACK" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:153 (create_sp_test)


CMake Error at tests/CMakeLists.txt:6 (add_executable):
  Target "test_fft_d" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?
Call Stack (most recent call first):
  tests/CMakeLists.txt:158 (create_sp_test)


CMake Error at tests/CMakeLists.txt:126 (add_executable):
  Target "test_vector_grib1_d" links to target "LAPACK::LAPACK" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?


CMake Error at src/CMakeLists.txt:51 (add_library):
  Target "ip_4" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at src/CMakeLists.txt:51 (add_library):
  Target "ip_d" links to target "LAPACK::LAPACK" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
@deadpickle
Copy link
Author

The issue was caused by the wrong version of cmake

@edwardhartnett
Copy link
Contributor

OK, but we check for cmake version, so is our check incorrect?

What was the version of cmake which failed?

@deadpickle
Copy link
Author

deadpickle commented Nov 20, 2024

I have 3.16.3 installed on the system but had to compile 3.31.0 separately. The check is for 3.15 in your CMakeLists.txt so that would pass but the build produced the above errors.

@edwardhartnett edwardhartnett changed the title Issue Installing NCEPLIBS-ip update cmake version being checked to one that works (was: Issue Installing NCEPLIBS-ip) Nov 21, 2024
@edwardhartnett edwardhartnett added the build Building software is complicated! label Nov 21, 2024
@AlexanderRichert-NOAA
Copy link
Contributor

According to the docs, the LAPACK::LAPACK target was added in CMake 3.18, so I'll start my testing there...

@edwardhartnett
Copy link
Contributor

OK, we don't have to have the absolutely earliest version that works, but it seems like the one we have now is not correct, so just find some later version that is correct and use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building software is complicated!
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants