Deal.ii installation - make error

34 views
Skip to first unread message

Melvina Quartey

unread,
Mar 19, 2024, 8:19:36 AM3/19/24
to deal.II User Group
Dear group, 

As part of the steps to configure and install deal.ii on my ubuntu 20.04, I reached the point where I run the 'make' command. It pulls a long error with this near the end:

/usr/local/include/Kokkos_Core.hpp: In function ‘std::vector<ValueType> Kokkos::Experimental::partition_space(const ExecSpace&, Args ...)’:
/usr/local/include/Kokkos_Core.hpp:268:20: error: ‘is_arithmetic_v’ is not a member of ‘std’; did you mean ‘is_arithmetic’?
  268 |       (... && std::is_arithmetic_v<Args>),
      |                    ^~~~~~~~~~~~~~~
      |                    is_arithmetic
/usr/local/include/Kokkos_Core.hpp:268:35: error: expected ‘)’ before ‘<’ token
  268 |       (... && std::is_arithmetic_v<Args>),
      |       ~                           ^
      |                                   )
/usr/local/include/Kokkos_Core.hpp:269:73: error: expected ‘,’ before ‘;’ token
  269 |       "Kokkos Error: partitioning arguments must be integers or floats");
      |                                                                         ^
      |                                                                         ,
/usr/local/include/Kokkos_Core.hpp:269:73: error: expected string-literal before ‘;’ token
/usr/local/include/Kokkos_Core.hpp:269:73: error: expected ‘)’ before ‘;’ token
  269 |       "Kokkos Error: partitioning arguments must be integers or floats");
      |                                                                         ^
      |                                                                         )
/usr/local/include/Kokkos_Core.hpp:267:16: note: to match this ‘(’
  267 |   static_assert(
      |                ^
make[2]: *** [source/numerics/CMakeFiles/object_numerics_release.dir/build.make:63: source/numerics/CMakeFiles/object_numerics_release.dir/data_out.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1682: source/numerics/CMakeFiles/object_numerics_release.dir/all] Error 2
make: *** [Makefile:130: all] Error 2



Any ideas on what I can do to solve this and finish the installation?

Thank you.

Bruno Turcksin

unread,
Mar 19, 2024, 8:23:12 AM3/19/24
to deal.II User Group
Hello,

It looks like you installed your own version of Kokkos which requires C++17 but you compiled deal.II using C++14. You need to compile deal.II with C++17. You need to reconfigure deal.II and to use "-DCMAKE_CXX_STANDARD=17".

Best,

Bruno
Reply all
Reply to author
Forward
0 new messages