Closed awvwgk closed 2 years ago
Do you have a MongoDB running? This is necessary for several of the tests.
Probably not, would be nice if CMake could just spawn it for the tests. Just noticed the line in the README:
Note that the tests, by default, require a MongoDB to be running on the local host
Any example on how to set it up to get the tests passing? I could look it up myself, but I already spend too many hours on trying to build the scine stack and want to safe myself some time.
Just download the DB binary and run it with default settings. That should work.
Seems to work with this steps.
❯ mamba install mongodb
❯ nohup mongod --dbpath $PWD/_database &
❯ ctest --test-dir _build --output-on-failure
Internal ctest changing into directory: /tmp1/ehlert/scine/database/_build
Test project /tmp1/ehlert/scine/database/_build
Start 1: Database
1/1 Test #1: Database ......................... Passed 59.42 sec
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 59.43 sec
❯ killall mongod
Thanks, only five projects left to build.
I'm trying to build chemoton for a colleague, but I cannot get the database testsuite to pass. I noticed test failures while packaging for conda-forge and therefore started a local build. Most tests currently fail with
``` ❯ cmake -B _build -G Ninja -DSCINE_MARCH="" -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/abt-grimme/opt/conda/envs/gcc/bin/x86_64-conda-linux-gnu-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: /home/abt-grimme/opt/conda/envs/gcc/bin/x86_64-conda-linux-gnu-c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Setting build type to default 'RelWithDebInfo' -- Scine::UtilsOS found locally at /home/abt-grimme/opt/conda/envs/scine/lib/cmake/ScineUtilsOS -- Found MKL: /software/intel/parallel_studio_xe_2019/compilers_and_libraries_2019.6.324/linux/mkl/include -- Found Intel MKL libraries: -- /software/intel/parallel_studio_xe_2019/compilers_and_libraries_2019.6.324/linux/mkl/include -- /software/intel/parallel_studio_xe_2019/compilers_and_libraries_2019.6.324/linux/mkl/lib/intel64/libmkl_avx2.so -- /software/intel/parallel_studio_xe_2019/compilers_and_libraries_2019.6.324/linux/mkl/lib/intel64/libmkl_vml_avx2.so -- /home/abt-grimme/opt/conda/envs/scine/lib/libmkl_core.so -- /home/abt-grimme/opt/conda/envs/scine/lib/libmkl_intel_lp64.so -- /home/abt-grimme/opt/conda/envs/scine/lib/libmkl_gnu_thread.so -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found MKL for use with Eigen3 CMake Warning at /home/abt-grimme/opt/conda/envs/scine/lib/cmake/libmongocxx-3.6.7/libmongocxx-config.cmake:15 (message): This CMake target is deprecated. Use 'mongo::mongocxx_shared' instead. Consult the example projects for further details. Call Stack (most recent call first): dev/cmake/ImportMongoCxx.cmake:9 (find_package) src/Database/CMakeLists.txt:10 (import_mongocxx) CMake Warning at /home/abt-grimme/opt/conda/envs/scine/lib/cmake/libbsoncxx-3.6.7/libbsoncxx-config.cmake:15 (message): This CMake target is deprecated. Use 'mongo::bsoncxx_shared' instead. Consult the example projects for further details. Call Stack (most recent call first): /home/abt-grimme/opt/conda/envs/scine/lib/cmake/libmongocxx-3.6.7/libmongocxx-config.cmake:22 (find_package) dev/cmake/ImportMongoCxx.cmake:9 (find_package) src/Database/CMakeLists.txt:10 (import_mongocxx) -- GTest and GMock were not found in your PATH, they are being downloaded. CMake Deprecation Warning at _build/googletest-src/CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argumentbuild log
``` ❯ mamba list -n gcc # packages in environment at /home/abt-grimme/opt/conda/envs/gcc: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_gnu conda-forge binutils 2.36.1 hdd6e379_2 conda-forge binutils_impl_linux-64 2.36.1 h193b22a_2 conda-forge binutils_linux-64 2.36 hf3e587d_4 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2022.6.15 ha878542_0 conda-forge clang 13.0.1 ha770c72_0 conda-forge clang-13 13.0.1 default_hc23dcda_0 conda-forge clangxx 13.0.1 default_ha53f305_0 conda-forge cmake 3.23.2 h5432695_0 conda-forge expat 2.4.8 h27087fc_0 conda-forge gcc 11.2.0 h702ea55_2 conda-forge gcc_impl_linux-64 11.2.0 h82a94d6_11 conda-forge gcc_linux-64 11.2.0 h39a9532_4 conda-forge gdb 11.1 py310hba97a52_3 conda-forge gfortran 11.2.0 h8811e0c_2 conda-forge gfortran_impl_linux-64 11.2.0 h7a446d4_11 conda-forge gfortran_linux-64 11.2.0 h777b47f_4 conda-forge gmp 6.2.1 h58526e2_0 conda-forge gxx 11.2.0 h702ea55_2 conda-forge gxx_impl_linux-64 11.2.0 h82a94d6_11 conda-forge gxx_linux-64 11.2.0 hacbe6df_4 conda-forge kernel-headers_linux-64 2.6.32 he073ed8_15 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.19.3 h08a2579_0 conda-forge ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge libclang-cpp13 13.0.1 default_hc23dcda_0 conda-forge libcurl 7.83.1 h2283fc2_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-devel_linux-64 11.2.0 h0952999_11 conda-forge libgcc-ng 12.1.0 h8d9b700_16 conda-forge libgfortran-ng 11.2.0 h69a702a_11 conda-forge libgfortran5 11.2.0 h5c6108e_11 conda-forge libgomp 12.1.0 h8d9b700_16 conda-forge libllvm13 13.0.1 hf817b99_2 conda-forge libnghttp2 1.47.0 he49606f_0 conda-forge libnsl 2.0.0 h7f98852_0 conda-forge libsanitizer 11.2.0 he4da1e4_11 conda-forge libssh2 1.10.0 ha35d2d1_2 conda-forge libstdcxx-devel_linux-64 11.2.0 h0952999_11 conda-forge libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge libuuid 2.32.1 h7f98852_1000 conda-forge libuv 1.43.0 h7f98852_0 conda-forge libzlib 1.2.11 h36c2ea0_1013 conda-forge lz4-c 1.9.3 h9c3ff4c_1 conda-forge mpi 1.0 openmpi conda-forge ncurses 6.3 h27087fc_1 conda-forge ninja 1.11.0 h924138e_0 conda-forge openmpi 4.1.1 hbfc84c5_0 conda-forge openssl 3.0.4 h166bdaf_2 conda-forge pip 22.0.4 pyhd8ed1ab_0 conda-forge pkg-config 0.29.2 h36c2ea0_1008 conda-forge pygments 2.11.2 pyhd8ed1ab_0 conda-forge python 3.10.4 h2660328_0_cpython conda-forge python_abi 3.10 2_cp310 conda-forge readline 8.1 h46c0cb4_0 conda-forge rhash 1.4.3 h166bdaf_0 conda-forge setuptools 62.1.0 py310hff52083_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge sqlite 3.38.2 h4ff8645_0 conda-forge sysroot_linux-64 2.12 he073ed8_15 conda-forge tk 8.6.12 h27826a3_0 conda-forge tzdata 2022a h191b570_0 conda-forge wheel 0.37.1 pyhd8ed1ab_0 conda-forge xz 5.2.5 h516909a_1 conda-forge zlib 1.2.11 h36c2ea0_1013 conda-forge zstd 1.5.2 h8a70e8d_1 conda-forge ❯ mamba list -n scine # packages in environment at /home/abt-grimme/opt/conda/envs/scine: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_kmp_llvm conda-forge boost-cpp 1.74.0 h75c5d50_8 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge ca-certificates 2022.6.15 ha878542_0 conda-forge cyrus-sasl 2.1.27 h7604b24_5 conda-forge eigen 3.4.0 h4bd325d_0 conda-forge icu 70.1 h27087fc_0 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.19.3 h08a2579_0 conda-forge libblas 3.9.0 15_linux64_openblas conda-forge libbson 1.21.2 h27087fc_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libgcc-ng 12.1.0 h8d9b700_16 conda-forge libgfortran-ng 12.1.0 h69a702a_16 conda-forge libgfortran5 12.1.0 hdcd56e2_16 conda-forge libgomp 12.1.0 h8d9b700_16 conda-forge liblapack 3.9.0 15_linux64_openblas conda-forge libmongoc 1.21.2 h0506597_0 conda-forge libmongocxx 3.6.7 h6e2fe03_0 conda-forge libntlm 1.4 h7f98852_1002 conda-forge libopenblas 0.3.20 pthreads_h78a6416_0 conda-forge libstdcxx-ng 12.1.0 ha89aaad_16 conda-forge libzlib 1.2.12 h166bdaf_1 conda-forge llvm-openmp 14.0.4 he0ac6c6_0 conda-forge lz4-c 1.9.3 h9c3ff4c_1 conda-forge mctc-lib 0.3.0 hc3ea6d6_0 conda-forge mkl 2022.1.0 h84fe81f_915 conda-forge nauty 2.7.2 h7f98852_0 conda-forge ncurses 6.3 h27087fc_1 conda-forge openssl 3.0.4 h166bdaf_2 conda-forge scine-core 4.0.1 h6e2fe03_0 conda-forge scine-readuct 4.0.0 he3004b7_0 conda-forge scine-sparrow 3.0.1 he3004b7_1 conda-forge scine-utilsos 5.0.0 h99171d1_0 conda-forge scine-xtb 1.0.1 h886c582_1 conda-forge snappy 1.1.9 hbd366e4_1 conda-forge tbb 2021.5.0 h924138e_1 conda-forge xtb 6.5.0 h9d67668_0 conda-forge xz 5.2.5 h516909a_1 conda-forge yaml-cpp 0.7.0 h27087fc_1 conda-forge zstd 1.5.2 h8a70e8d_2 conda-forge ```mamba list
``` active environment : scine active env location : /home/abt-grimme/opt/conda/envs/scine shell level : 3 user config file : /home/ehlert/.condarc populated config files : /home/abt-grimme/opt/conda/.condarc /home/ehlert/.condarc conda version : 4.12.0 conda-build version : not installed python version : 3.9.10.final.0 virtual packages : __linux=4.12.14=0 __glibc=2.26=0 __unix=0=0 __archspec=1=x86_64 base environment : /home/abt-grimme/opt/conda (writable) conda av data dir : /home/abt-grimme/opt/conda/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch package cache : /home/abt-grimme/opt/conda/pkgs /home/ehlert/.conda/pkgs envs directories : /home/abt-grimme/opt/conda/envs /home/ehlert/.conda/envs platform : linux-64 user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.10 Linux/4.12.14-lp151.28.13-default opensuse-leap/15.1 glibc/2.26 UID:GID : 1748:1001 netrc file : None offline mode : False ```mamba info