Issues with ASPECT installation

Hi,
I am trying to install Aspect on my Ubuntu 18 machine locally. I am stuck at the first step where we have to install Deal .II via Candi to compile dependencies. I am getting the following error after 82%. Earlier there were a few issues regarding versions (as I am using Ubuntu18) but I finally solved that. I need the help from the experts. Thanks in advance.

– Configuring done
– Generating done
– Build files have been written to: /home/arghya/candi/work/tmp/build/deal.II-v9.4.2
[ 0%] Built target expand_instantiations_exe
[ 0%] Built target doxygen_headers
[ 2%] Built target obj_boost_serialization_debug
[ 4%] Built target obj_boost_serialization_release
[ 4%] Built target obj_boost_system_debug
[ 4%] Built target obj_boost_system_release
[ 4%] Built target obj_boost_iostreams_debug
[ 4%] Built target obj_boost_iostreams_release
[ 6%] Built target obj_tbb_debug
[ 8%] Built target obj_tbb_release
[ 11%] Built target obj_umfpack_L_UMF_debug
[ 15%] Built target obj_umfpack_L_UMF_release
[ 18%] Built target obj_umfpack_Z_UMF_debug
[ 22%] Built target obj_umfpack_Z_UMF_release
[ 22%] Built target obj_umfpack_L_UMFPACK_debug
[ 23%] Built target obj_umfpack_L_UMFPACK_release
[ 23%] Built target obj_umfpack_DL_TSOLVE_debug
[ 25%] Built target obj_umfpack_DL_TSOLVE_release
[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX_debug
[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_NOX_release
[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_X_debug
[ 25%] Built target obj_umfpack_DL_TRIPLET_MAP_X_release
[ 25%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X_debug
[ 25%] Built target obj_umfpack_DL_TRIPLET_NOMAP_X_release
[ 25%] Built target obj_umfpack_DL_TRIPLET_NOMAP_NOX_debug
[ 25%] Built target obj_umfpack_DL_TRIPLET_NOMAP_NOX_release
[ 25%] Built target obj_umfpack_DL_STORE_debug
[ 25%] Built target obj_umfpack_DL_STORE_release
[ 25%] Built target obj_umfpack_DL_ASSEMBLE_debug
[ 25%] Built target obj_umfpack_DL_ASSEMBLE_release
[ 25%] Built target obj_umfpack_DL_SOLVE_debug
[ 25%] Built target obj_umfpack_DL_SOLVE_release
[ 25%] Built target obj_umfpack_ZL_TSOLVE_debug
[ 25%] Built target obj_umfpack_ZL_TSOLVE_release
[ 25%] Built target obj_umfpack_ZL_TRIPLET_MAP_NOX_debug
[ 25%] Built target obj_umfpack_ZL_TRIPLET_MAP_NOX_release
[ 25%] Built target obj_umfpack_ZL_TRIPLET_MAP_X_debug
[ 25%] Built target obj_umfpack_ZL_TRIPLET_MAP_X_release
[ 25%] Built target obj_umfpack_ZL_TRIPLET_NOMAP_X_debug
[ 25%] Built target obj_umfpack_ZL_TRIPLET_NOMAP_X_release
[ 25%] Built target obj_umfpack_ZL_TRIPLET_NOMAP_NOX_debug
[ 25%] Built target obj_umfpack_ZL_TRIPLET_NOMAP_NOX_release
[ 26%] Built target obj_umfpack_ZL_STORE_debug
[ 26%] Built target obj_umfpack_ZL_STORE_release
[ 26%] Built target obj_umfpack_ZL_ASSEMBLE_debug
[ 26%] Built target obj_umfpack_ZL_ASSEMBLE_release
[ 26%] Built target obj_umfpack_ZL_SOLVE_debug
[ 26%] Built target obj_umfpack_ZL_SOLVE_release
[ 26%] Built target obj_umfpack_GENERIC_debug
[ 26%] Built target obj_umfpack_GENERIC_release
[ 27%] Built target obj_amd_int_debug
[ 27%] Built target obj_amd_int_release
[ 28%] Built target obj_amd_long_debug
[ 28%] Built target obj_amd_long_release
[ 28%] Built target obj_amd_global_debug
[ 28%] Built target obj_amd_global_release
[ 28%] Built target obj_muparser_debug
[ 29%] Built target obj_muparser_release
[ 29%] Built target obj_arborx_inst
[ 29%] Built target obj_arborx_debug
[ 31%] Built target obj_numerics_inst
[ 33%] Built target obj_numerics_debug
[ 36%] Built target obj_fe_inst
[ 40%] Built target obj_fe_debug
[ 41%] Built target obj_dofs_inst
[ 42%] Built target obj_dofs_debug
[ 43%] Built target obj_lac_inst
[ 46%] Built target obj_lac_debug
[ 47%] Built target obj_base_inst
[ 53%] Built target obj_base_debug
[ 53%] Built target obj_cgal_inst
[ 53%] Built target obj_cgal_debug
[ 53%] Built target obj_gmsh_inst
[ 53%] Built target obj_gmsh_debug
[ 54%] Built target obj_grid_inst
[ 55%] Built target obj_grid_debug
[ 56%] Built target obj_hp_inst
[ 56%] Built target obj_hp_debug
[ 56%] Built target obj_multigrid_inst
[ 57%] Built target obj_multigrid_debug
[ 58%] Built target obj_distributed_inst
[ 58%] Built target obj_distributed_debug
[ 58%] Built target obj_algorithms_inst
[ 59%] Built target obj_algorithms_debug
[ 60%] Built target obj_matrix_free_inst
[ 61%] Built target obj_matrix_free_debug
[ 61%] Built target obj_meshworker_inst
[ 61%] Built target obj_meshworker_debug
[ 61%] Built target obj_opencascade_inst
[ 61%] Built target obj_opencascade_debug
[ 61%] Built target obj_particle_inst
[ 63%] Built target obj_particle_debug
[ 64%] Built target obj_differentiation_ad_inst
[ 64%] Built target obj_differentiation_ad_debug
[ 65%] Built target obj_differentiation_sd_inst
[ 65%] Built target obj_differentiation_sd_debug
[ 65%] Built target obj_physics_inst
[ 65%] Built target obj_physics_debug
[ 66%] Built target obj_physics_elasticity_inst
[ 66%] Built target obj_physics_elasticity_debug
[ 66%] Built target obj_non_matching_inst
[ 66%] Built target obj_non_matching_debug
[ 66%] Built target obj_sundials_inst
[ 66%] Built target obj_sundials_debug
[ 66%] Built target deal_II.g
[ 66%] Built target obj_arborx_release
[ 68%] Built target obj_numerics_release
[ 71%] Built target obj_fe_release
[ 71%] Built target obj_dofs_release
[ 75%] Built target obj_lac_release
[ 79%] Built target obj_base_release
[ 79%] Built target obj_cgal_release
[ 79%] Built target obj_gmsh_release
[ 80%] Built target obj_grid_release
[ 80%] Built target obj_hp_release
[ 81%] Built target obj_multigrid_release
[ 81%] Built target obj_distributed_release
[ 81%] Built target obj_algorithms_release
[ 82%] Built target obj_matrix_free_release
[ 82%] Built target obj_meshworker_release
[ 82%] Built target obj_opencascade_release
[ 82%] Built target obj_particle_release
[ 82%] Built target obj_differentiation_ad_release
[ 82%] Built target obj_differentiation_sd_release
[ 82%] Built target obj_physics_release
[ 82%] Built target obj_physics_elasticity_release
[ 82%] Built target obj_non_matching_release
[ 82%] Built target obj_sundials_release
[ 82%] Built target deal_II
[ 82%] Built target obj_integrators_debug
[ 82%] Built target obj_integrators_release
[ 82%] Built target obj_rol_inst
[ 82%] Built target obj_rol_debug
[ 82%] Built target obj_rol_release
[ 82%] Linking CXX executable …/bin/step-1.debug
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSCreate’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetTolerances’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSDestroy’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetOperators’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetST’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetTarget’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetWhichEigenpairs’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetProblemType’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetDimensions’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetFromOptions’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetConvergenceTest’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSolve’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSGetConverged’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSGetIterationNumber’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSComputeError’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSGetEigenpair’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSSetType’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSArnoldiSetDelayed’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSLanczosSetReorthog’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘EPSGDSetDoubleExpansion’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STCreate’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STDestroy’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STSetMatMode’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STSetKSP’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STSetType’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STSetShift’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘STCayleySetAntishift’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘SlepcInitialize’
…/lib/libdeal_II.g.so.9.4.2: error: undefined reference to ‘SlepcFinalize’
collect2: error: ld returned 1 exit status
examples/CMakeFiles/step-1.debug.dir/build.make:218: recipe for target ‘bin/step-1.debug’ failed
make[2]: *** [bin/step-1.debug] Error 1
CMakeFiles/Makefile2:5576: recipe for target ‘examples/CMakeFiles/step-1.debug.dir/all’ failed
make[1]: *** [examples/CMakeFiles/step-1.debug.dir/all] Error 2
Makefile:135: recipe for target ‘all’ failed
make: *** [all] Error 2
Failure with exit status: 2
Exit message: There was a problem building dealii v9.4.2.

I was also trying to install the same on my laptop which has ubuntu 20. I am getting the same type of error …

[ 80%] Linking CXX executable …/bin/step-1.release
[ 80%] Building CXX object source/matrix_free/CMakeFiles/obj_matrix_free_debug.dir/evaluation_template_factory_inst4.cc.o
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSDestroy’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetOperators’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetWhichEigenpairs’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetProblemType’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSCreate’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetTolerances’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetDimensions’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetConvergenceTest’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSolve’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSGetIterationNumber’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSComputeError’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSLanczosSetReorthog’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STSetType’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STSetShift’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STCayleySetAntishift’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘SlepcInitialize’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘SlepcFinalize’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSArnoldiSetDelayed’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetType’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STSetKSP’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STSetMatMode’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STDestroy’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSGetConverged’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSGetEigenpair’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSGDSetDoubleExpansion’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘STCreate’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetST’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetTarget’
…/lib/libdeal_II.so.9.4.2: error: undefined reference to ‘EPSSetFromOptions’
collect2: error: ld returned 1 exit status
make[2]: *** [examples/CMakeFiles/step-1.release.dir/build.make:233: bin/step-1.release] Error 1
make[1]: *** [CMakeFiles/Makefile2:5381: examples/CMakeFiles/step-1.release.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…



…make: *** [Makefile:136: all] Error 2

Ubuntu 18 is quite old and no longer supported.

It looks like compilation of SLEPc failed, which you don’t actually need to run ASPECT. You can go into candi.cfg and comment out “petsc”, “slepc”, and also many other packages (you need p4est, trilinos, and deal.II).

That said, on Ubuntu you can simplify the deal.II installation by just installing the debian package, see Getting deal.II · dealii/dealii Wiki · GitHub for instructions.