okmechak / RiverSim

Simulation of river growth using Laplace equation
https://okmechak.github.io/RiverSim/
GNU General Public License v2.0
0 stars 1 forks source link

Compiling time errors #41

Closed okmechak closed 3 years ago

okmechak commented 4 years ago
error: Problems running dot: exit code=127, command='dot', arguments='"/mnt/c/users/ofcra/Builds/riversim/docsrc/html/classt__BoundaryConditions__inherit__graph.dot" -Tsvg -o "/mnt/c/users/ofcra/Builds/riversim/docsrc/html/classt__BoundaryConditions__inherit__graph.svg"'
sh: 1: dot: not found
[ 79%] Built target doc_doxygen
In file included from /usr/include/trilinos/KokkosExp_View_Fad.hpp:40,
                 from /usr/include/trilinos/Sacado_Fad_ScalarTraitsImp.hpp:627,
                 from /usr/include/trilinos/Sacado_Fad_Exp_GeneralFadTraits.hpp:141,
                 from /usr/include/trilinos/Sacado.hpp:52,
                 from /usr/include/deal.II/base/numbers.h:60,
                 from /usr/include/deal.II/base/config.h:442,
                 from /usr/include/deal.II/base/quadrature_lib.h:20,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/solver.hpp:23,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:32,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/usr/include/trilinos/Kokkos_View.hpp:2402:53: error: return type specified for deduction guide
 2402 |   constexpr unsigned rank( const View<D , P...> & V ) { return V.Rank; } //Temporary until added to view
      |                                                     ^
/usr/include/trilinos/Kokkos_View.hpp:2402:13: error: decl-specifier in declaration of deduction guide
 2402 |   constexpr unsigned rank( const View<D , P...> & V ) { return V.Rank; } //Temporary until added to view
      |             ^~~~~~~~
In file included from /usr/include/trilinos/Sacado_ConfigDefs.h:80,
                 from /usr/include/trilinos/Sacado_Version.hpp:37,
                 from /usr/include/trilinos/Sacado.hpp:43,
                 from /usr/include/deal.II/base/numbers.h:60,
                 from /usr/include/deal.II/base/config.h:442,
                 from /usr/include/deal.II/base/quadrature_lib.h:20,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/solver.hpp:23,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:32,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/usr/include/trilinos/Kokkos_View.hpp:2401:3: error: decl-specifier in declaration of deduction guide
 2401 |   KOKKOS_INLINE_FUNCTION
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/trilinos/KokkosExp_View_Fad.hpp:40,
                 from /usr/include/trilinos/Sacado_Fad_ScalarTraitsImp.hpp:627,
                 from /usr/include/trilinos/Sacado_Fad_Exp_GeneralFadTraits.hpp:141,
                 from /usr/include/trilinos/Sacado.hpp:52,
                 from /usr/include/deal.II/base/numbers.h:60,
                 from /usr/include/deal.II/base/config.h:442,
                 from /usr/include/deal.II/base/quadrature_lib.h:20,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/solver.hpp:23,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:32,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/usr/include/trilinos/Kokkos_View.hpp:2402:3: error: decl-specifier in declaration of deduction guide
 2402 |   constexpr unsigned rank( const View<D , P...> & V ) { return V.Rank; } //Temporary until added to view
      |   ^~~~~~~~~
/usr/include/trilinos/Kokkos_View.hpp:2402:13: error: ‘unsigned’ specified with ‘rank<...auto...>’
 2402 |   constexpr unsigned rank( const View<D , P...> & V ) { return V.Rank; } //Temporary until added to view
      |             ^~~~~~~~
/usr/include/trilinos/Kokkos_View.hpp:2402:22: error: deduction guide for ‘std::rank< <template-parameter-1-1> >’ must have trailing return type
 2402 |   constexpr unsigned rank( const View<D , P...> & V ) { return V.Rank; } //Temporary until added to view
      |                      ^~~~
In file included from /usr/include/c++/9/bits/move.h:55,
                 from /usr/include/c++/9/bits/nested_exception.h:40,
                 from /usr/include/c++/9/exception:144,
                 from /usr/include/c++/9/ios:39,
                 from /usr/include/c++/9/ostream:38,
                 from /usr/include/c++/9/iostream:39,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/tree.hpp:34,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:30,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/usr/include/c++/9/type_traits:1257:12: note: ‘template<class> struct std::rank’ declared here
 1257 |     struct rank
      |            ^~~~
In file included from /mnt/c/users/ofcra/Documents/riversim/source/river/mesh.hpp:22,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:31,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/mnt/c/users/ofcra/Documents/riversim/source/river/triangle.hpp:21:14: error: expected identifier before ‘void’
   21 | #define VOID void
      |              ^~~~
In file included from /usr/include/trilinos/Kokkos_Parallel.hpp:62,
                 from /usr/include/trilinos/Kokkos_Serial.hpp:55,
                 from /usr/include/trilinos/Kokkos_Core.hpp:53,
                 from /usr/include/trilinos/KokkosExp_View_Fad.hpp:189,
                 from /usr/include/trilinos/Sacado_Fad_ScalarTraitsImp.hpp:627,
                 from /usr/include/trilinos/Sacado_Fad_Exp_GeneralFadTraits.hpp:141,
                 from /usr/include/trilinos/Sacado.hpp:52,
                 from /usr/include/deal.II/base/numbers.h:60,
                 from /usr/include/deal.II/base/config.h:442,
                 from /usr/include/deal.II/base/quadrature_lib.h:20,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/solver.hpp:23,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.hpp:32,
                 from /mnt/c/users/ofcra/Documents/riversim/source/river/riversim.cpp:16:
/usr/include/trilinos/impl/Kokkos_FunctorAnalysis.hpp:83:15: error: expected unqualified-id before ‘{’ token
   83 |   struct VOID {};
      |               ^
make[2]: *** [source/river/CMakeFiles/river.dir/build.make:63: source/river/CMakeFiles/river.dir/riversim.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:522: source/river/CMakeFiles/river.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
okmechak commented 4 years ago

With c++ errors maybe problem is on side of dealii.. BUt first, let test each submodlue(geometry primitives, boundaies etc)

okmechak commented 4 years ago

error in Kokkos is beacuse of 9.1.1-9build2 version. When compiled from deal.ii from source it works