dealii / candi

candi - (Compile & Install) - Downloads, configures, builds and installs deal.II
GNU Lesser General Public License v3.0
61 stars 61 forks source link

Failed to build dealii #327

Closed EGGWang97 closed 1 year ago

EGGWang97 commented 1 year ago

Hi all, I've installed hdf5, p4est and trilinos by candi on CentoS 7, but failed to build dealii. How can I solve this problem?

image

bangerth commented 1 year ago

What is the compiler you are using?

EGGWang97 commented 1 year ago

What is the compiler you are using?

gcc 6.1.0

bangerth commented 1 year ago

It seems like we didn't test with a compiler this old before putting out the release. GCC 6.1.0 is from April 2016, so it's quite old.

It is possible that you can fix the issue by going to include/deal.II/base/symmetric_tensor.h and removing the DEAL_II_CONSTEXPR in all places where unit_symmetric_tensor() appears. An alternative is to (i) install a newer compiler, or (ii) use a newer release of the OS that comes with a newer compiler as well.

tjhei commented 1 year ago

Let us know if you need further help, otherwise I assume you fixed the problem by updating compilers.