CMake error during configuring OGS6

Dear all,

Note of OS information first:
ogs source code version: 6.4.1, from ogs / ogs · GitLab (by tar.gz),
Operating system / hardware information: Ubuntu 20.04.3 LTS 64-bit, Intel® Core™ i5-6200U CPU @ 2.30GHz × 4 , 16 GB Ram),
gcc --version: gcc (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0.

Description of the issue:
I would like to compile OGS6 to enable PardisoLU for the liner solver (with Eigen library) to improve computing speed according to How to improve the computing speed of a THM model on OGS6? - #3 by joergbuchwald :

(1) First, I think I installed latest Intel mkl correctly following this helpful instruction step 1-4 (INTEL MKL: undefined symbol - #4 by joergbuchwald). Btw, I only installed Intel MKL from Intel oneAPI Base Toolkit;
(2) Second, I Set Up Prerequisites step by step very carefully;
(3) Then, I got the latest source code by tar.gz following Get the source code.
All of these above steps work well without any errors, but I met an error in the following step.
(4) I run cmake -S . --preset release to compile OGS6 in the source code directory following Build configuration, but I get this error:

rui@rui:~/OGS6/ogs-master$ cmake -S . --preset release
Preset CMake variables:


-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Downloading CPM.cmake to /home/rui/OGS6/build/release/cmake/CPM_0.32.1.cmake
-- CPM: adding package cmake-modules@0 (d98828f54f6974717798e63195cfbf08fe2daad0)
-- CPM: adding package json-cmake@0 (9708cb091f6b89b94d71ae98f8b9e68ea04c47dd)
-- Found Git: /usr/bin/git (found version "2.25.1") 
fatal: not a git repository (or any of the parent directories): .git
CMake Warning at scripts/cmake/GitSetup.cmake:43 (message):
  No git repository found at /home/rui/OGS6/ogs-master! OGS_VERSION is set to
Call Stack (most recent call first):
  CMakeLists.txt:72 (include)

-- Found Python3: /usr/bin/python3.8 (found suitable version "3.8.10", minimum required is "3.6") found components: Interpreter Development Development.Module Development.Embed 
-- Using GNU gold linker. (GNU gold (GNU Binutils for Ubuntu 2.34) 1.16
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
-- Number of (logical) cores: 2, Free memory: 13475 MB
--   Job pool light_tasks using 2 cores.
--   Job pool heavy_tasks using 2 cores.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find GEOTIFF (missing: libgeotiff_LIBRARY libgeotiff_INCLUDE_DIR xtiff_INCLUDE_DIR TIFF_FOUND) 
-- CPM: adding package googletest@1.11.0 (release-1.11.0)
-- Found Python: /usr/bin/python3.8 (found version "3.8.10") found components: Interpreter 
-- CPM: adding package autocheck@0 (e388ecbb31c49fc2724c8d0436da313b6edca7fd)
-- CPM: adding package exprtk@0 (772884eb09eb648808a5151a077faf97fa127426)
[1/9] Creating directories for 'exprtk-populate'
[1/9] Performing download step (git clone) for 'exprtk-populate'
Cloning into 'exprtk-src'...
fatal: reference is not a tree: 772884eb09eb648808a5151a077faf97fa127426
CMake Error at exprtk-subbuild/exprtk-populate-prefix/tmp/exprtk-populate-gitclone.cmake:40 (message):
  Failed to checkout tag: '772884eb09eb648808a5151a077faf97fa127426'

FAILED: exprtk-populate-prefix/src/exprtk-populate-stamp/exprtk-populate-download /home/rui/OGS6/build/release/_deps/exprtk-subbuild/exprtk-populate-prefix/src/exprtk-populate-stamp/exprtk-populate-download 
cd /home/rui/OGS6/build/release/_deps && /usr/bin/cmake -P /home/rui/OGS6/build/release/_deps/exprtk-subbuild/exprtk-populate-prefix/tmp/exprtk-populate-gitclone.cmake && /usr/bin/cmake -E touch /home/rui/OGS6/build/release/_deps/exprtk-subbuild/exprtk-populate-prefix/src/exprtk-populate-stamp/exprtk-populate-download
ninja: build stopped: subcommand failed.

CMake Error at /usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
  Build step for exprtk failed: 1
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
  /home/rui/OGS6/build/release/cmake/CPM_0.32.1.cmake:753 (FetchContent_Populate)
  /home/rui/OGS6/build/release/cmake/CPM_0.32.1.cmake:581 (cpm_fetch_package)
  scripts/cmake/Dependencies.cmake:51 (CPMAddPackage)
  CMakeLists.txt:83 (include)

-- Configuring incomplete, errors occurred!
See also "/home/rui/OGS6/build/release/CMakeFiles/CMakeOutput.log".
See also "/home/rui/OGS6/build/release/CMakeFiles/CMakeError.log".

I also attach CMakeError.log and CMakeOutput.log here:
CMake Error (6.4 KB).

Would anyone mind telling me how to solve this problem or error?

Best regards,

The exprtk error is being fixed right now: Exprtk; Update to newest version. (!3968) · Merge requests · ogs / ogs

1 Like

Thanks very much @dmitri.naumov ! I am looking forward to the fixed version.

The MR is merged now, so I guess the current master version should work now.