I removed the build directory and then proceeded with the configuration again. I was able to run cmake and configure successfully. Hence I can’t view the error in the log again. I am not sure what exactly changed.
However, in the meantime, before configuration, I can tell you that I reinstalled ogstools and ogs via pip.
Here is the log after successful configuration:
Generator: Unix Makefiles
OGS VERSION: 6.5.4-183-g069c1fee (reported by git)
Using GNU gold linker. (GNU gold (GNU Binutils for Debian 2.40) 1.16
Copyright (C) 2023 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: 4, Free memory: 7223 MB
Job pool light_tasks using 4 cores.
Job pool heavy_tasks using 1 cores.
Could NOT find GEOTIFF (missing: libgeotiff_INCLUDE_DIR xtiff_INCLUDE_DIR)
VTK_OPTIONS:
-DVTK_GROUP_ENABLE_Rendering=DONT_WANT;-DVTK_GROUP_ENABLE_StandAlone=DONT_WANT;-DBUILD_TESTING=OFF;-DVTK_BUILD_EXAMPLES=OFF;-DVTK_BUILD_TESTING=OFF;-DVTK_ENABLE_WRAPPING=OFF;-DVTK_USE_64BIT_IDS=ON;-DVTK_MODULE
_ENABLE_VTK_IOXML=YES;-DVTK_MODULE_ENABLE_VTK_IOLegacy=YES;-DVTK_MODULE_ENABLE_VTK_FiltersGeneral=YES;-DVTK_MODULE_ENABLE_VTK_FiltersParallel=YES;-DVTK_MODULE_ENABLE_VTK_FiltersSources=YES;-DBUILD_SHARED_LIBS=
OFF;-DCMAKE_BUILD_TYPE=Release
Searching VTK on system with components: IOXML;IOLegacy;FiltersGeneral;FiltersParallel;FiltersSources
Dependencies.cmake
CPM: Adding package [email protected] (v1.16.0)
CPM: Adding package autocheck@0 (e388ecbb31c49fc2724c8d0436da313b6edca7fd)
CPM: Adding package [email protected] (v1.15.0)
Build spdlog: 1.15.0
Build type: Release
CPM: Adding package [email protected] (81b3d2a0c47895c22e9bb8c577f5ab521f76e5d2)
CPM: Adding package [email protected] (v2.13.2)
pybind11 v2.13.2
CPM: Adding package [email protected] (3.5.0-1)
CPM: Adding package [email protected] (3.4.90)
CPM: Adding package [email protected] (1.82.0)
Boost: Release build, static libraries, MPI OFF, Python OFF, testing OFF
Boost: libraries included: math;property_tree;algorithm;smart_ptr;tokenizer;assign;dynamic_bitset;range;variant;interprocess
Boost.Math: standalone mode OFF
Found the following ICU libraries:
data (required): /usr/lib/x86_64-linux-gnu/libicudata.so
i18n (required): /usr/lib/x86_64-linux-gnu/libicui18n.so
uc (required): /usr/lib/x86_64-linux-gnu/libicuuc.so
Boost.Thread: threading API is pthread
CPM: Using local package [email protected]
CPM: Adding package [email protected] (v0.4.2)
CPM: Adding package [email protected] (3.10.5)
CPM: Adding package [email protected] (0.0.3)
CPM: Adding package [email protected] (0.12.0)
[range-v3]: C++ std=2a
CPM: Adding package vtkdiff@0 (628c4694783f865d7f0ab3ba9bdd5530ce4567e9)
CPM: vtkdiff: Using local package [email protected]
CPM: Adding package [email protected] (374ee63abf605ab4c6639989bebc5096881f4f57)
CPM: Adding package [email protected] (8bd6bad750b2b0d90800c632cf18e8ee93ad72d7)
CMake Deprecation Warning at build/_deps/gklib-src/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.
CPM: Adding package [email protected] (v5.2.1)
CMake Deprecation Warning at build/_deps/metis-src/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.
End Dependencies.cmake
time-command is required for time wrapper but was not found! All corresponding tests are disabled.
The following packages have been found:
- Python (required version >= 3.9)
- Doxygen (required version >= 1.9.2)
- OpenMP
- BLAS
- ZLIB
- HDF5 (required version >= 1.10.7)
- ICU
- Threads
- TIFF
- Boost
- MPI
- LibXml2
– The following features have been enabled:
- OGS, The OGS simulator (OGS_BUILD_CLI)
- Utilities, Command line tools (OGS_BUILD_UTILS)
- Tests, Unit and benchmarks tests (OGS_BUILD_TESTING)
- build-unity, Unity build (OGS_USE_UNITY_BUILDS)
All processes have been enabled.
Configuring done
There are some issues I have encountered. Firstly, as I view the configuration list and follow the instructions in the tutorial of the complete workflow, I noticed that the option OGS-USE-PYTHON is missing and instead I have OGS-USE-PIP. Can they be used interchangeably? Or should I necessarily have the former?
Further, after configuration and generation of the make files and then running
make -j8
, I received a warning and an error:
The warning:
[ 3%] Building CXX object _deps/iphreeqc-build/CMakeFiles/IPhreeqc.dir/src/IPhreeqc.cpp.o
In file included from /home/aparsi/ogs/build/_deps/boost-src/libs/container/src/dlmalloc_ext_2_8_6.c:52,
from /home/aparsi/ogs/build/_deps/boost-src/libs/container/src/alloc_lib.c:24:
In function ‘internal_multialloc_arrays’,
inlined from ‘boost_cont_multialloc_arrays’ at /home/aparsi/ogs/build/_deps/boost-src/libs/container/src/dlmalloc_ext_2_8_6.c:1112:13:
/home/aparsi/ogs/build/_deps/boost-src/libs/container/src/dlmalloc_ext_2_8_6.c:1085:41: warning: iteration 2305843009213693951 invokes undefined behavior [-Waggressive-loop-optimizations]
1085 | size = request2size(sizes[i]*element_size);
| ^
/home/aparsi/ogs/build/_deps/boost-src/libs/container/src/dlmalloc_2_8_6.c:2231:6: note: in definition of macro ‘request2size’
2231 | (((req) < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(req))
| ^~~
/home/aparsi/ogs/build/_deps/boost-src/libs/container/src/dlmalloc_ext_2_8_6.c:1083:24: note: within this loop
1083 | for(++i; i != next_i; ++i) {
| ^~~~~~~
[ 3%] Linking CXX static library ../lib/libCMakeInfoLib.a
The error:
[ 48%] Building CXX object MeshLib/CMakeFiles/MeshLib.dir/Unity/unity_0_cxx.cxx.o
In file included from /usr/include/hdf5/openmpi/hdf5.h:22,
from /home/aparsi/ogs/MeshLib/IO/XDMF/HdfData.h:15,
from /home/aparsi/ogs/MeshLib/IO/XDMF/HdfData.cpp:10,
from /home/aparsi/ogs/build/MeshLib/CMakeFiles/MeshLib.dir/Unity/unity_3_cxx.cxx:3:
/usr/include/hdf5/openmpi/H5public.h:68:10: fatal error: mpi.h: No such file or directory
68 | #include <mpi.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [MeshLib/CMakeFiles/MeshLib.dir/build.make:93: MeshLib/CMakeFiles/MeshLib.dir/Unity/unity_3_cxx.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs…
In file included from /usr/include/hdf5/openmpi/hdf5.h:22,
from /home/aparsi/ogs/MeshLib/IO/XDMF/HdfWriter.h:14,
from /home/aparsi/ogs/MeshLib/IO/XDMF/XdmfHdfWriter.h:18,
from /home/aparsi/ogs/MeshLib/IO/writeMeshToFile.cpp:19,
from /home/aparsi/ogs/build/MeshLib/CMakeFiles/MeshLib.dir/Unity/unity_2_cxx.cxx:11:
/usr/include/hdf5/openmpi/H5public.h:68:10: fatal error: mpi.h: No such file or directory
68 | #include <mpi.h>
| ^~~~~~~
compilation terminated.
make[2]: *** [MeshLib/CMakeFiles/MeshLib.dir/build.make:109: MeshLib/CMakeFiles/MeshLib.dir/Unity/unity_2_cxx.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:8376: MeshLib/CMakeFiles/MeshLib.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Regards,