# CMake error during configuring OGS6

**URL:** <https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950>\
**Category:** Help & Support\
**Created:** [January 31, 2022, 5:34am UTC](https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950 "2022-01-31T05:34:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui\_Feng](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/rui_feng/32/696_2.png) [@Rui\_Feng](https://discourse.opengeosys.org/u/Rui_Feng)\
**Post date:** [January 31, 2022, 5:34am UTC](https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950/1 "2022-01-31T05:34:05Z")

</div>

Dear all,

_Note of OS information first:_  
_ogs source code version: 6.4.1, from [ogs / ogs · GitLab](https://gitlab.opengeosys.org/ogs/ogs) (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](https://discourse.opengeosys.org/t/how-to-improve-the-computing-speed-of-a-thm-model-on-ogs6/925/3) :

(1) First, I think I installed latest Intel mkl correctly following this helpful instruction step 1-4 ([INTEL MKL: undefined symbol - #4 by joergbuchwald](https://discourse.opengeosys.org/t/intel-mkl-undefined-symbol/948/4)). Btw, I only installed Intel MKL from Intel oneAPI Base Toolkit;  
(2) Second, I [Set Up Prerequisites](https://www.opengeosys.org/docs/devguide/getting-started/prerequisites/) step by step very carefully;  
(3) Then, I got the latest source code by tar.gz following [Get the source code](https://www.opengeosys.org/docs/devguide/getting-started/get-the-source-code/#option-download-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](https://www.opengeosys.org/docs/devguide/getting-started/build-configuration/#configure-with-a-preset), but I get this error:

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

  CMAKE_BUILD_TYPE="Release"

-- 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
  NO_VERSION !
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
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- 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".
rui@rui:~/OGS6/ogs-master$ 

```

I also attach CMakeError.log and CMakeOutput.log here:  
[CMake Error output.zip](https://discourse.opengeosys.org/uploads/short-url/ufsutM5F6p26OVAm028dBQ74xus.zip) (6.4 KB).

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

Best regards,  
Rui

---

<div class="post-metadata">

**Author:** ![dmitri.naumov](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/dmitri.naumov/32/561_2.png) [@dmitri.naumov](https://discourse.opengeosys.org/u/dmitri.naumov)\
**Post date:** [January 31, 2022, 5:22pm UTC](https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950/2 "2022-01-31T17:22:35Z")

</div>

The exprtk error is being fixed right now: [Exprtk; Update to newest version. (!3968) · Merge requests · ogs / ogs · GitLab](https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/3968)

---

<div class="post-metadata">

**Author:** ![Rui\_Feng](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/rui_feng/32/696_2.png) [@Rui\_Feng](https://discourse.opengeosys.org/u/Rui_Feng)\
**Post date:** [February 1, 2022, 2:41pm UTC](https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950/4 "2022-02-01T14:41:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joergbuchwald](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/joergbuchwald/32/449_2.png) [@joergbuchwald](https://discourse.opengeosys.org/u/joergbuchwald)\
**Post date:** [February 1, 2022, 3:08pm UTC](https://discourse.opengeosys.org/t/cmake-error-during-configuring-ogs6/950/5 "2022-02-01T15:08:51Z")

</div>

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