Hello guys! I am Yijun and I have some problems compiling ASPECT main branch on my mac. (I’ve had a successful compile yesterday but don’t know what breaks them today). The error I get is:
[ 0%] Building CXX object CMakeFiles/aspect.dir/cmake_pch_arm64.hxx.pch
warning: unknown warning option ‘-Wno-placement-new’ [-Wunknown-warning-option]
warning: unknown warning option ‘-Wno-literal-suffix’; did you mean ‘-Wno-literal-range’? [-Wunknown-warning-option]
warning: unknown warning option ‘-Wno-class-memaccess’; did you mean ‘-Wno-class-varargs’? [-Wunknown-warning-option]
In file included from :1:
In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:
/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:499:12: error: ‘mpi.h’ file not found with include; use “quotes” instead
include <mpi.h>
^
In file included from :1:
In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:
/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:65:5: error: unknown type name 'constexpr’
constexpr static unsigned int max_width = 1;
^
/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:80:5: error: unknown type name 'constexpr’
constexpr static unsigned int max_width =
^
/Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:104:5: error: unknown type name 'constexpr’
constexpr static unsigned int max_width =
^
In file included from :1:
In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:145:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado.hpp:51:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_ExpressionTraits.hpp:35:
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:94:14: error: unknown type name 'constexpr’
static constexpr unsigned value = 0;
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:99:14: error: unknown type name 'constexpr’
static constexpr unsigned value =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:106:14: error: unknown type name 'constexpr’
static constexpr bool value = false;
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:111:14: error: unknown type name 'constexpr’
static constexpr bool value = true;
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_Expression.hpp:122:12: error: unknown type name 'constexpr’
static constexpr bool value = true;
^
In file included from :1:
In file included from /Users/yijunw/Applications/aspect/build/CMakeFiles/aspect.dir/cmake_pch_arm64.hxx:5:
In file included from /Users/yijunw/Applications/aspect/include/aspect/global.h:27:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/mpi.h:19:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/config.h:503:
In file included from /Users/yijunw/dealii-candi/deal.II-v9.3.3/include/deal.II/base/numbers.h:145:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado.hpp:52:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_Exp_GeneralFadTraits.hpp:181:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Sacado_Fad_ScalarTraitsImp.hpp:37:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Teuchos_ScalarTraits.hpp:59:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Complex.hpp:46:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Atomic.hpp:71:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_HostSpace.hpp:52:
In file included from /Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/Kokkos_Core_fwd.hpp:52:
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:60:1: error: unknown type name 'constexpr’
constexpr
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:61:2: error: expected ‘;’ at end of declaration
T&& forward( typename std::remove_reference::type& arg ) noexcept
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:61:61: error: expected function body after function declarator
T&& forward( typename std::remove_reference::type& arg ) noexcept
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:100:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?
{ using type = integer_sequence ; };
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:100:16: error: too few template arguments for alias template 'make_integer_sequence’
{ using type = integer_sequence ; };
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:104:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?
{ using type = integer_sequence<T,0> ; };
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:108:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?
{ using type = integer_sequence<T,0,1> ; };
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:108:16: error: too many template arguments for alias template 'make_integer_sequence’
{ using type = integer_sequence<T,0,1> ; };
^ ~~
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:112:16: error: no template named ‘integer_sequence’; did you mean ‘make_integer_sequence’?
{ using type = integer_sequence<T,0,1,2> ; };
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: ‘make_integer_sequence’ declared here
using make_integer_sequence =
^
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:112:16: error: too many template arguments for alias template 'make_integer_sequence’
{ using type = integer_sequence<T,0,1,2> ; };
*^ ~~~~*
/Users/yijunw/dealii-candi/trilinos-release-12-18-1/include/impl/Kokkos_Utilities.hpp:95:1: note: template is declared here
using make_integer_sequence =
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 warnings and 20 errors generated.
make[2]: *** [CMakeFiles/aspect.dir/cmake_pch_arm64.hxx.pch] Error 1
make[1]: *** [CMakeFiles/aspect.dir/all] Error 2
make: *** [all] Error 2
I have installed dealii following their instruction for mac M1 using candi and I have newest version of dealii (9.3.3) and Xcode (13.3).
I have seen this error before and it was ‘solved’ with many other compile error I met along the road by installing dealii with candi, giving the right path and many other things I did which I don’t remember now. I am not sure why this is happening again. Let me know if you have any thoughts!
Many thanks,
Yijun