Build issues with master branch
Dear developers,
I ran into two issues when building from the current master branch. These occurred on a Linux system using the GNU compiler.
[ 1%] Building CXX object CMakeFiles/shared.dir/src/algebra/MatrixCRS.cpp.o /usr/local/gmsh_fem/src/algebra/MatrixCRS.cpp: In member function 'virtual bool gmshfem::algebra::MatrixCRS::isSymmetric(gmshfem::scalar::Precision) const': /usr/local/gmsh_fem/src/algebra/MatrixCRS.cpp:177:13: error: 'msg' has not been declared 177 | msg::error << _a[pos] << " " << _a[j] << msg::endl; | ^~~ /usr/local/gmsh_fem/src/algebra/MatrixCRS.cpp:177:54: error: 'msg' has not been declared 177 | msg::error << _a[pos] << " " << _a[j] << msg::endl; | ^~~ make[2]: *** [CMakeFiles/shared.dir/build.make:132: CMakeFiles/shared.dir/src/algebra/MatrixCRS.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1128: CMakeFiles/shared.dir/all] Error 2 make: *** [Makefile:146: all] Error 2
I fixed this error by adding the line
#include "Message.h"
in src/algebra/MatrixCRS.cpp.
[ 1%] Building CXX object CMakeFiles/shared.dir/src/analytics/Helmholtz2D.cpp.o In file included from /usr/local/gmsh_fem/src/domain/Domain.h:9, from /usr/local/gmsh_fem/src/function/executionTree/ExecutionTree.h:9, from /usr/local/gmsh_fem/src/function/executionTree/AnalyticalNode.h:9, from /usr/local/gmsh_fem/src/analytics/Helmholtz2D.h:9, from /usr/local/gmsh_fem/src/analytics/Helmholtz2D.cpp:6: /usr/local/gmsh_fem/src/domain/GeometricObject.h:45:7: error: ‘size_t’ does not name a type 45 | size_t hash() const; | ^~~~~~ /usr/local/gmsh_fem/src/domain/GeometricObject.h:13:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
I fixed this issue by adding the line
#include <cstddef>
in src/domain/GeometricObject.h.
After those changes, I was able to compile gmshFEM successfully.
Best regards,
Robert Hahn.