Error in install deal.ii v9.5.1

I’m trying to install aspect 2.6.0 on an ubuntu 20.043 LTS system, but when I install deal.ii v9…5.1 using candi I get the following error:
[ 37%] Building CXX object source/numerics/CMakeFiles/object_numerics_debug.dir/data_out.cc.o
In file included from /home/byl20/bin/trilinos-release-14-4-0/include/Kokkos_Core_fwd.hpp:30,
from /home/byl20/bin/trilinos-release-14-4-0/include/Kokkos_Core.hpp:43,
from /home/byl20/bin/tmp/unpack/deal.II-v9.5.1/include/deal.II/base/exceptions.h:21,
from /home/byl20/bin/tmp/unpack/deal.II-v9.5.1/include/deal.II/base/thread_management.h:22,
from /home/byl20/bin/tmp/unpack/deal.II-v9.5.1/include/deal.II/base/graph_coloring.h:23,
from /home/byl20/bin/tmp/unpack/deal.II-v9.5.1/include/deal.II/base/work_stream.h:22,
.
.
.
/home/byl20/bin/trilinos-release-14-4-0/include/Kokkos_Core.hpp:267:16: note: to match this ‘(’
267 | static_assert(
| ^
make[2]: *** [source/numerics/CMakeFiles/object_numerics_debug.dir/build.make:76:source/numerics/CMakeFiles/object_numerics_debug.dir/data_out.cc.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:3141:source/numerics/CMakeFiles/object_numerics_debug.dir/all] 错误 2
make: *** [Makefile:136:all] 错误 2
Failure with exit status: 2
Exit message: There was a problem building dealii v9.5.1.

What should I do to solve this problem?
Thank you in advance for the help.
Yuanpeng Liu

@Diamondeyes1 You omit the interesting parts of the error message. Can you fill in the parts before the error in Kokkow_Core.hpp?

Best
W.

Thank you for your reply!
The full error is as follows:
error.txt (214.7 KB)

Best wishes to you!
Yuanpeng Liu

@Diamondeyes1 - Thank you for posting the error log file.

At first glance I don’t recall seeing the specific errors encountered during the Trilinos build, but my guess is that this is related to the version of Trilinos being used relative to the available compilers on your system.

What are the versions of being used by candi?

Others may have specific suggestions on how to resolve the error, but given Ubuntu 20.04 is now quite an old OS it may be easier to just upgrade (if possible) to Ubuntu 22.04, as the more recent version of deal.II (9.5.2) and related dependencies currently build without issue there.

A second alternative would be to install deal.II 9.5.1 through the Ubuntu package management system (instructions here).

Cheers,
John

@jbnaliboff - Thank you for your reply!
I successfully installed deal.II 9.5.1. using Ubuntu package management system. And have successfully installed aspect 2.6.0.
Thanks again for the advice!

Best wishes to you!
Yuanpeng Liu