Compiling Elmer FEM using CMake under Ubuntu 20.04.1 LTS
Posted: 10 Aug 2020, 11:31
Dear All,
I recently upgraded my OS to Ubuntu 20.04.1 LTS and was trying to compile Elmer (elmer-devel version) using the CMake procedure described below at the beginning of the thread:
viewtopic.php?f=2&t=3742
I used cmake-gui (exactly as suggested for Ubuntu 16.04) but ended up having errors at the configuration stage itself. The CMake cache message during the configuration stage:
The Fortran compiler identification is GNU 9.3.0
The C compiler identification is GNU 9.3.0
The CXX compiler identification is GNU 9.3.0
Check for working Fortran compiler: /usr/bin/f95
Check for working Fortran compiler: /usr/bin/f95 -- works
Detecting Fortran compiler ABI info
Detecting Fortran compiler ABI info - done
Checking whether /usr/bin/f95 supports Fortran 90
Checking whether /usr/bin/f95 supports Fortran 90 -- yes
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 CXX compiler: /usr/bin/c++
Check for working CXX compiler: /usr/bin/c++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Checking whether GFortran version >= 4.8 -- yes
Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_usempif08.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_usempi_ignore_tkr.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_mpifh.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
------------------------------------------------
Mesh adaptation 2D/3D looking for [Mmg] tools
Library not found: >MMG_FOUND<
Missing: >MMG_INCLUDE_DIR< , >MMG_LIBRARY<, to compile MMG3DSolver
------------------------------------------------
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
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindBLAS.cmake:810 (find_package_handle_standard_args)
CMakeLists.txt:361 (FIND_PACKAGE)
Configuring incomplete, errors occurred!
See also "/home/kumar/elmer/build/CMakeFiles/CMakeOutput.log".
See also "/home/kumar/elmer/build/CMakeFiles/CMakeError.log".
The other files CMakeOutput.log and CMakeError.log are attached below. Can anyone please help me to identify the problem? Thank you.
-kumar
I recently upgraded my OS to Ubuntu 20.04.1 LTS and was trying to compile Elmer (elmer-devel version) using the CMake procedure described below at the beginning of the thread:
viewtopic.php?f=2&t=3742
I used cmake-gui (exactly as suggested for Ubuntu 16.04) but ended up having errors at the configuration stage itself. The CMake cache message during the configuration stage:
The Fortran compiler identification is GNU 9.3.0
The C compiler identification is GNU 9.3.0
The CXX compiler identification is GNU 9.3.0
Check for working Fortran compiler: /usr/bin/f95
Check for working Fortran compiler: /usr/bin/f95 -- works
Detecting Fortran compiler ABI info
Detecting Fortran compiler ABI info - done
Checking whether /usr/bin/f95 supports Fortran 90
Checking whether /usr/bin/f95 supports Fortran 90 -- yes
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 CXX compiler: /usr/bin/c++
Check for working CXX compiler: /usr/bin/c++ -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Checking whether GFortran version >= 4.8 -- yes
Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
Found MPI_Fortran: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_usempif08.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_usempi_ignore_tkr.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_mpifh.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
------------------------------------------------
Mesh adaptation 2D/3D looking for [Mmg] tools
Library not found: >MMG_FOUND<
Missing: >MMG_INCLUDE_DIR< , >MMG_LIBRARY<, to compile MMG3DSolver
------------------------------------------------
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
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find BLAS (missing: BLAS_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindBLAS.cmake:810 (find_package_handle_standard_args)
CMakeLists.txt:361 (FIND_PACKAGE)
Configuring incomplete, errors occurred!
See also "/home/kumar/elmer/build/CMakeFiles/CMakeOutput.log".
See also "/home/kumar/elmer/build/CMakeFiles/CMakeError.log".
The other files CMakeOutput.log and CMakeError.log are attached below. Can anyone please help me to identify the problem? Thank you.
-kumar