- Thank you received: 3
Compile errors with gcc 7.2.0
5 years 10 months ago #1359
by ddrake
Compile errors with gcc 7.2.0 was created by ddrake
Hi,
I'm having some issues compiling the current version of ngsolve on our cluster, which is using gcc 7.2.0. The compile errors are occurring in l2hofespace.cpp.
I don't have any problem builiding the same current source code on my local machine, which has gcc 7.4.0 installed. Do you think we need to update gcc for our cluster? -- or is there some other possible cause? For example, we are also seeing clock skew errors on our cluster, but I wouldn't think those would cause compile errors in a clean compile from source.
We're configuring like this:
cmake -DCMAKE_INSTALL_PREFIX=$BASEDIR -DUSE_MKL=ON -DMKL_ROOT=/opt/intel/mkl -DCMAKE_BUILD_TYPE=Release $BASEDIR/ngsolve
Confiiguring this way has worked in the past and gives no errors.
Here is the error output from the make step:
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/h1amg.cpp.o
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 1]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1755:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 2]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1756:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 3]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1757:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 1]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1792:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 2]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1793:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 3]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1794:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/hypre_precond.cpp.o
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/hdivdivsurfacespace.cpp.o
[ 80%] Building CXX object comp/CMakeFiles/ngcomp.dir/hdivdivfespace.cpp.o
In file included from /vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/functional:58:0,
from /home/ddrake/NGserial/ngsolve/include/ngs_stdcpp_include.hpp:74,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
make[5]: *** [comp/CMakeFiles/ngcomp.dir/l2hofespace.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [comp/CMakeFiles/ngcomp.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/Stamp/ngsolve/ngsolve-build] Error 2
make[1]: *** [CMakeFiles/ngsolve.dir/all] Error 2
make: *** [all] Error 2
Thanks for any help on this...
Best,
Dow
I'm having some issues compiling the current version of ngsolve on our cluster, which is using gcc 7.2.0. The compile errors are occurring in l2hofespace.cpp.
I don't have any problem builiding the same current source code on my local machine, which has gcc 7.4.0 installed. Do you think we need to update gcc for our cluster? -- or is there some other possible cause? For example, we are also seeing clock skew errors on our cluster, but I wouldn't think those would cause compile errors in a clean compile from source.
We're configuring like this:
cmake -DCMAKE_INSTALL_PREFIX=$BASEDIR -DUSE_MKL=ON -DMKL_ROOT=/opt/intel/mkl -DCMAKE_BUILD_TYPE=Release $BASEDIR/ngsolve
Confiiguring this way has worked in the past and gives no errors.
Here is the error output from the make step:
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/h1amg.cpp.o
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 1]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1755:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 2]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1756:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 3]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1818:20: required from ‘struct ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1817:7: required from ‘void ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1757:45: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1843:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1851:23: error: uninitialized variable ‘trans’ in ‘constexpr’ function
Mat<DIM> trans;
^~~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 1]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1792:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<1>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 2]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1793:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<2>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp: In instantiation of ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)> [with int DIM = 3]’:
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2091:20: required from ‘struct ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(class ngcomp::FESpace::Element, class ngstd::LocalHeap&)>’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2090:7: required from ‘void ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]’
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:1794:50: required from here
/home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:2116:27: error: uninitialized variable ‘rhoi’ in ‘constexpr’ function
Mat<DIM,DIM> rhoi;
^~~~
In file included from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:82:0,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:568:9: note: ‘class ngbla::Mat<3>’ has no user-provided default constructor
class Mat : public MatExpr<Mat<H,W,T> >
^~~
/home/ddrake/NGserial/ngsolve/include/../basiclinalg/matrix.hpp:581:5: note: constructor is not user-provided because it is explicitly defaulted in the class body
Mat () = default;
^~~
In file included from /home/ddrake/NGserial/ngsolve/include/../ngstd/paje_interface.hpp:6:0,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/profiler.hpp:57,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:139,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/home/ddrake/NGserial/ngsolve/include/../ngstd/array.hpp:1364:7: note: and the implicitly-defined constructor does not initialize ‘double ngstd::HTArray<1, double>::head’
T head;
^~~~
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/hypre_precond.cpp.o
[ 79%] Building CXX object comp/CMakeFiles/ngcomp.dir/hdivdivsurfacespace.cpp.o
[ 80%] Building CXX object comp/CMakeFiles/ngcomp.dir/hdivdivfespace.cpp.o
In file included from /vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/functional:58:0,
from /home/ddrake/NGserial/ngsolve/include/ngs_stdcpp_include.hpp:74,
from /home/ddrake/NGserial/ngsolve/include/../ngstd/ngstd.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/ngstd.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../basiclinalg/bla.hpp:12,
from /home/ddrake/NGserial/ngsolve/include/bla.hpp:1,
from /home/ddrake/NGserial/ngsolve/include/../fem/fem.hpp:14,
from /home/ddrake/NGserial/ngsolve/include/fem.hpp:1,
from /home/ddrake/NGserial/ngsolve/comp/comp.hpp:10,
from /home/ddrake/NGserial/ngsolve/comp/l2hofespace.cpp:12:
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::SolveM_Dim(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 1]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 2]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
/vol/apps/gcc/gcc-7.2.0/include/c++/7.2.0/bits/std_function.h:685:7: error: ‘std::function<_Res(_ArgTypes ...)>::function(_Functor) [with _Functor = ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>; <template-parameter-2-2> = void; <template-parameter-2-3> = void; _Res = void; _ArgTypes = {ngcomp::FESpace::Element, ngstd::LocalHeap&}]’, declared using local type ‘ngcomp::VectorL2FESpace::ApplyMCovariant(ngfem::CoefficientFunction*, ngla::BaseVector&, ngstd::LocalHeap&) const [with int DIM = 3]::<lambda(ngcomp::FESpace::Element, ngstd::LocalHeap&)>’, is used but never defined [-fpermissive]
make[5]: *** [comp/CMakeFiles/ngcomp.dir/l2hofespace.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [comp/CMakeFiles/ngcomp.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [dependencies/Stamp/ngsolve/ngsolve-build] Error 2
make[1]: *** [CMakeFiles/ngsolve.dir/all] Error 2
make: *** [all] Error 2
Thanks for any help on this...
Best,
Dow
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
5 years 10 months ago #1361
by christopher
Replied by christopher on topic Compile errors with gcc 7.2.0
Hi,
this seems related to this bug in gcc which was fixed at least in gcc7 (it doesn't occur in our gcc7.2.2 compile either):
gcc.gnu.org/bugzilla/show_bug.cgi?id=80935
Is it possible to update gcc on your cluster?
Best
Christopher
this seems related to this bug in gcc which was fixed at least in gcc7 (it doesn't occur in our gcc7.2.2 compile either):
gcc.gnu.org/bugzilla/show_bug.cgi?id=80935
Is it possible to update gcc on your cluster?
Best
Christopher
The following user(s) said Thank You: ddrake
Time to create page: 0.108 seconds