Dear Nektar users,
After a lot of trial and error, this is what I end up with trying to compile the fresh development version of Nektar.
Here I reproducing the compile error since I encountered the same error on an hpc cluster rhel6 and Gcc-8.2.0, same thing on my workstation Gcc-8.2.0 running Centos 6.10 64bits. nevertheless, release version 5.0 does compile fine.
I've been trying to compile the development version with nektar-error-on-warnings set OFF, with full build for all thirdparty packages, I also had the same error using cxxflags=-std=c++11 trying to limit the compiler features to c++11.
Would you please check out the compile error output attached hereafter.
Thanks to all of you.
Saâd
[22%] Building CXX object library/LibUtilities/CMakeFiles/LibUtilities.dir/LinearAlgebra/blas.cpp.o
[ 22%] Building CXX object library/LibUtilities/CMakeFiles/LibUtilities.dir/LinearAlgebra/BlockMatrix.cpp.o
In file included from /softroot/nektar++/library/LibUtilities/Communication/CommCwipi.cpp:37:
/softroot/nektar++/library/LibUtilities/Communication/CommCwipi.h:73:18: error: virtual function ‘virtual void Nektar::LibUtilities::CommCwipi::v_Finalise()’ overriding final function
virtual void v_Finalise();
^~~~~~~~~~
In file included from /softroot/nektar++/library/LibUtilities/Communication/CommCwipi.h:41,
from /softroot/nektar++/library/LibUtilities/Communication/CommCwipi.cpp:37:
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:114:18: note: overridden function is ‘virtual void Nektar::LibUtilities::CommMpi::v_Finalise()’
virtual void v_Finalise() final;
^~~~~~~~~~
/softroot/nektar++/library/LibUtilities/Communication/CommCwipi.cpp: In constructor ‘Nektar::LibUtilities::CommCwipi::CommCwipi(int, char**)’:
/softroot/nektar++/library/LibUtilities/Communication/CommCwipi.cpp:52:55: error: no matching function for call to ‘Nektar::LibUtilities::CommMpi::CommMpi()’
CommCwipi::CommCwipi(int narg, char *arg[]) : CommMpi()
^
In file included from /softroot/nektar++/library/LibUtilities/Communication/CommCwipi.h:41,
from /softroot/nektar++/library/LibUtilities/Communication/CommCwipi.cpp:37:
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:112:14: note: candidate: ‘Nektar::LibUtilities::CommMpi::CommMpi(MPI_Comm)’
explicit CommMpi(MPI_Comm pComm);
^~~~~~~
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:112:14: note: candidate expects 1 argument, 0 provided
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:103:26: note: candidate: ‘Nektar::LibUtilities::CommMpi::CommMpi(int, char**)’
LIB_UTILITIES_EXPORT CommMpi(int narg, char *arg[]);
^~~~~~~
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:103:26: note: candidate expects 2 arguments, 0 provided
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:91:7: note: candidate: ‘Nektar::LibUtilities::CommMpi::CommMpi(const Nektar::LibUtilities::CommMpi&)’
class CommMpi : public Comm
^~~~~~~
/softroot/nektar++/library/LibUtilities/Communication/CommMpi.h:91:7: note: candidate expects 1 argument, 0 provided
[ 23%] Building CXX object library/LibUtilities/CMakeFiles/LibUtilities.dir/LinearAlgebra/MatrixBase.cpp.o
make[2]: *** [library/LibUtilities/CMakeFiles/LibUtilities.dir/Communication/CommCwipi.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [library/LibUtilities/CMakeFiles/LibUtilities.dir/all] Error 2
make: *** [all] Error 2