You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When build version 2.1, Error occur NETCDF not found: Define NETCDF_PATH or NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml or config_compilers.xml
#6282
Open
hjkang0905 opened this issue
Mar 5, 2024
· 0 comments
I'm trying to build E3SM version 2.1 and too difficult to solve this problem.
In my case, I think the error means that environmental variables about NETCDF are not defined in config_machines.xml or config_compilers.xml.
But, I've already defined NETCDF_PATH, NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml and actually config_compilers.xml file is not involved E3SM version 2.1 source code.
What should I do for solving this problem?
e3sm.bldlog
-- The C compiler identification is Intel 2021.6.0.20220226
-- The CXX compiler identification is Intel 2021.6.0.20220226
-- The Fortran compiler identification is Intel 2021.6.0.20220226
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/local/mpi/intel22/mpich-3.4.1/bin/mpicc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/local/mpi/intel22/mpich-3.4.1/bin/mpicxx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /usr/local/mpi/intel22/mpich-3.4.1/bin/mpif90 - skipped
Found MPAS component ocn model 'mpaso'
Found MPAS component ice model 'mpassi'
-- *** Building MPAS tools from source ***
-- Looking for Fortran sgemm
-- Looking for Fortran sgemm - not 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/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_lp64.so;/usr/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_thread.so;/usr/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_core.so;/usr/local/intel/oneapi/compiler/2022.1.0/linux/compiler/lib/intel64_lin/libiomp5.so;-lpthread;-lm;-ldl
-- Looking for Fortran cheev
-- Looking for Fortran cheev - found
-- Found LAPACK: /usr/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_lp64.so;/usr/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_thread.so;/usr/local/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_core.so;/usr/local/intel/oneapi/compiler/2022.1.0/linux/compiler/lib/intel64_lin/libiomp5.so;-lpthread;-lm;-ldl;-lpthread;-lm;-ldl
FATALMissing core_ocean/MARBL/.git, did you forget to 'git submodule update --init --recursive' ?
FATALMissing core_ocean/gotm/.git, did you forget to 'git submodule update --init --recursive' ?
Found component atm model 'eam'
CMake Error at cmake/common_setup.cmake:171 (message):
NETCDF not found: Define NETCDF_PATH or NETCDF_C_PATH and
NETCDF_FORTRAN_PATH in config_machines.xml or config_compilers.xml
Call Stack (most recent call first):
cmake/build_model.cmake:5 (include)
cmake/atm/CMakeLists.txt:1 (build_model)
-- Configuring incomplete, errors occurred!
real 4.99
user 3.16
sys 1.51
I'm trying to build E3SM version 2.1 and too difficult to solve this problem.
In my case, I think the error means that environmental variables about NETCDF are not defined in config_machines.xml or config_compilers.xml.
But, I've already defined NETCDF_PATH, NETCDF_C_PATH and NETCDF_FORTRAN_PATH in config_machines.xml and actually config_compilers.xml file is not involved E3SM version 2.1 source code.
What should I do for solving this problem?
The text was updated successfully, but these errors were encountered: