Note: We had disabled c++ PETSc builds on opensolaris [as we didn't want to deal with some of the c++ warnings from this compiler]
Presumably all these issues will come up with c++ test codes using the usual c build of PETSc. [as you say - this example's scope is limited to petscmat.h - so issues with other includes are not yet visible in this mode]. So perhaps we should also disable cxx examples on opensolaris? [Don't know how to implement this yet] I think we cannot use --with-cxx=0 as some of the externalpackages might need the c++ compiler. Satish On Wed, 17 Jul 2019, Zhang, Junchao wrote: > Fande did a fantastic job using C++11 in the test code. I modified it so it > does not use C++11 anymore. But I think Satish's code is still useful and we > should have it in a > new PR. > Another serious issue using Sun C++ with this C++ test code: > > "/export/home/jczhang/petsc/include/petscmat.h", line 153: Warning > (Anachronism): Formal argument 4 of type extern "C" > int(*)(_p_Mat*,MatFactorType,_p_Mat**) in call to > MatSolverTypeRegister(const char*, const char*, MatFactorType, extern "C" > int(*)(_p_Mat*,MatFactorType,_p_Mat**)) is being passed > int(*)(_p_Mat*,MatFactorType,_p_Mat**). > "/export/home/jczhang/petsc/include/petscmat.h", line 155: Error: Formal > argument 6 of type extern "C" int(*)(_p_Mat*,MatFactorType,_p_Mat**)* in call > to > MatSolverTypeGet(const char*, const char*, MatFactorType, PetscBool*, > PetscBool*, extern "C" int(*)(_p_Mat*,MatFactorType,_p_Mat**)*) is being > passed > int(*)(_p_Mat*,MatFactorType,_p_Mat**)*. > 1 Error(s) and 1 Warning(s) detected. > > Googled and found it only happens to Sun compilers. The logic is > we have > PETSC_EXTERN PetscErrorCode > MatSolverTypeRegister(MatSolverType,MatType,MatFactorType,PetscErrorCode(*)(Mat,MatFactorType,Mat*)); > Sun C++ thinks the function pointer argument is in C linkage. > We also have > PETSC_DEPRECATED_FUNCTION("Use MatSolverTypeRegister() (since version 3.9)") > PETSC_STATIC_INLINE PetscErrorCode MatSolverPackageRegister(MatSolverType > stype,MatType > mtype,MatFactorType ftype,PetscErrorCode(*f)(Mat,MatFactorType,Mat*)) > { return MatSolverTypeRegister(stype,mtype,ftype,f); } > > Without PETSC_EXTERN, Sun C++ thinks the function pointer argument is in C++ > linkage. This mismatch caused the warning and errors. I have to add > PETSC_EXTERN in petscmat.h > to get rid of them. Other header files may also have this problem, but > thanks to Fande for only including petscmat.h :) > > diff --git a/include/petscmat.h b/include/petscmat.h > index 95c2b825..08300bc2 100644 > --- a/include/petscmat.h > +++ b/include/petscmat.h > @@ -149,9 +149,9 @@ PETSC_EXTERN PetscErrorCode > MatSetFactorType(Mat,MatFactorType); > PETSC_EXTERN PetscErrorCode > MatSolverTypeRegister(MatSolverType,MatType,MatFactorType,PetscErrorCode(*)(Mat,MatFactorType,Mat*)); > PETSC_EXTERN PetscErrorCode > MatSolverTypeGet(MatSolverType,MatType,MatFactorType,PetscBool*,PetscBool*,PetscErrorCode > (**)(Mat,MatFactorType,Mat*)); > typedef MatSolverType MatSolverPackage PETSC_DEPRECATED_TYPEDEF("Use > MatSolverType (since version 3.9)"); > -PETSC_DEPRECATED_FUNCTION("Use MatSolverTypeRegister() (since version 3.9)") > PETSC_STATIC_INLINE PetscErrorCode MatSolverPackageRegister(MatSolverType > stype,MatType > mtype,MatFactorType ftype,PetscErrorCode(*f)(Mat,MatFactorType,Mat*)) > +PETSC_DEPRECATED_FUNCTION("Use MatSolverTypeRegister() (since version 3.9)") > PETSC_EXTERN PETSC_STATIC_INLINE PetscErrorCode > MatSolverPackageRegister(MatSolverType > stype,MatType mtype,MatFactorType > ftype,PetscErrorCode(*f)(Mat,MatFactorType,Mat*)) > { return MatSolverTypeRegister(stype,mtype,ftype,f); } > -PETSC_DEPRECATED_FUNCTION("Use MatSolverTypeGet() (since version 3.9)") > PETSC_STATIC_INLINE PetscErrorCode MatSolverPackageGet(MatSolverType > stype,MatType > mtype,MatFactorType ftype,PetscBool *foundmtype,PetscBool > *foundstype,PetscErrorCode(**f)(Mat,MatFactorType,Mat*)) > +PETSC_DEPRECATED_FUNCTION("Use MatSolverTypeGet() (since version 3.9)") > PETSC_EXTERN PETSC_STATIC_INLINE PetscErrorCode > MatSolverPackageGet(MatSolverType stype,MatType > mtype,MatFactorType ftype,PetscBool *foundmtype,PetscBool > *foundstype,PetscErrorCode(**f)(Mat,MatFactorType,Mat*)) > { return MatSolverTypeGet(stype,mtype,ftype,foundmtype,foundstype,f); } > > --Junchao Zhang > > > On Wed, Jul 17, 2019 at 5:06 PM Balay, Satish <ba...@mcs.anl.gov> wrote: > Perhaps you can use the following in your PR? But then - you have to > check for both PETSC_CXX_DIALECT_CXX14 and PETSC_CXX_DIALECT_CXX11 in your > code. > > #define PETSC_CXX_DIALECT_CXX14 1 > > >>>>>>>>>> > diff --git a/config/BuildSystem/config/compilers.py > b/config/BuildSystem/config/compilers.py > index c29cc2a67a..4775318a7d 100644 > --- a/config/BuildSystem/config/compilers.py > +++ b/config/BuildSystem/config/compilers.py > @@ -525,6 +525,8 @@ class Configure(config.base.Configure): > > self.setCompilers.popLanguage() > self.logWrite(self.setCompilers.restoreLog()) > + if self.cxxdialect: > + > self.addDefine('CXX_DIALECT_'+self.cxxdialect.upper().replace('+','X'),1) > return > > def checkCxxLibraries(self): > <<<<<< > > Or does the following make more sense? [but I suspect this is useful > for CPP which supports '>' etc.. comparison operations - but perhaps > not the test suite] > > #define PETSC_CXX_DIALECT 14 > > > >>> > diff --git a/config/BuildSystem/config/compilers.py > b/config/BuildSystem/config/compilers.py > index c29cc2a67a..b391e4a3b0 100644 > --- a/config/BuildSystem/config/compilers.py > +++ b/config/BuildSystem/config/compilers.py > @@ -525,6 +525,8 @@ class Configure(config.base.Configure): > > self.setCompilers.popLanguage() > self.logWrite(self.setCompilers.restoreLog()) > + if self.cxxdialect: > + > self.addDefine('CXX_DIALECT',self.cxxdialect.upper().replace('C++','')) > return > > def checkCxxLibraries(self): > <<<< > > cc: Barry > > Satish > > > > On Wed, 17 Jul 2019, Zhang, Junchao wrote: > > > > > Do we have things like PETSC_HAVE_C++11 ? > > > > --Junchao Zhang > > > > > > ---------- Forwarded message --------- > > From: PETSc checkBuilds <petsc-checkbui...@mcs.anl.gov> > > Date: Wed, Jul 17, 2019 at 3:28 PM > > Subject: PETSc blame digest (next-tmp) 2019-07-17 > > To: Junchao Zhang <jczh...@mcs.anl.gov>, PETSc checkBuilds > <petsc-checkbui...@mcs.anl.gov> > > > > > > > > > > Dear PETSc developer, > > > > This email contains listings of contributions attributed to you by > > `git blame` that caused compiler errors or warnings in PETSc automated > > testing. Follow the links to see the full log files. Please attempt > to fix > > the issues promptly or let us know at petsc-dev@mcs.anl.gov if you > are unable > > to resolve the issues. > > > > Thanks, > > The PETSc development team > > > > ---- > > > > warnings attributed to commit > https://bitbucket.org/petsc/petsc/commits/da92d23 > > Add a benchmark for MatAssembly from the Moose project > > > > src/sys/examples/tests/ex53.cxx:102 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 102: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 102: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 102: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 102: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 102: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 102: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 102: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 102: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 102: Error: Expected an expression. > > > > src/sys/examples/tests/ex53.cxx:103 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 103: Warning: The variable dof has not yet been assigned a value. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 103: Warning: The variable dof has not yet been assigned a value. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 103: Warning: The variable dof has not yet been assigned a value. > > > > src/sys/examples/tests/ex53.cxx:132 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 132: Error: data is not a member of std::vector<long long>. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 132: Error: data is not a member of std::vector<int>. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 132: Error: data is not a member of std::vector<int>. > > > > src/sys/examples/tests/ex53.cxx:133 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 133: Error: data is not a member of std::vector<int>. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 133: Error: data is not a member of std::vector<long long>. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 133: Error: data is not a member of std::vector<int>. > > > > src/sys/examples/tests/ex53.cxx:137 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 137: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 137: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 137: Error: dof_indices must be initialized. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 137: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 137: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 137: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 137: Error: dof_indices must be initialized. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 137: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 137: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 137: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 137: Error: dof_indices must be initialized. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 137: Error: Use ";" to terminate declarations. > > > > src/sys/examples/tests/ex53.cxx:140 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 140: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 140: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line > 140: Error: int is not a structure type. > > > > src/sys/examples/tests/ex53.cxx:64 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 64: Error: Cannot use const std::string to initialize std::ifstream . > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 64: Error: Cannot use const std::string to initialize std::ifstream . > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 64: > Error: Cannot use const std::string to initialize std::ifstream . > > > > src/sys/examples/tests/ex53.cxx:68 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 68: Error: In this declaration "sstream" is of an incomplete type > "std::stringstream ". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 68: Error: The type "std::stringstream " is incomplete. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 68: > Error: In this declaration "sstream" is of an incomplete type > "std::stringstream ". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 68: Error: In this declaration "sstream" is of an incomplete type > "std::stringstream ". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 68: Error: The type "std::stringstream " is incomplete. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 68: > Error: The type "std::stringstream " is incomplete. > > > > src/sys/examples/tests/ex53.cxx:70 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 70: > Error: Could not find a match for std::getline<std::_charT, std::_Traits, > > std::_Allocator>(std::stringstream, std::string, char) needed in > main(int, char**). > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 70: Error: stoi is not a member of std. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 70: Error: stoi is not a member of std. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 70: Error: Could not find a match for std::getline<std::_charT, > std::_Traits, > > std::_Allocator>(std::stringstream, std::string, char) needed in > main(int, char**). > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 70: Error: Could not find a match for std::getline<std::_charT, > std::_Traits, > > std::_Allocator>(std::stringstream, std::string, char) needed in > main(int, char**). > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 70: > Error: stoi is not a member of std. > > > > src/sys/examples/tests/ex53.cxx:91 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 91: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 91: Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 91: > Error: "," expected instead of ":". > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 91: Error: dof_indices must be initialized. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 91: Error: dof_indices must be initialized. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 91: > Error: dof_indices must be initialized. > > > > src/sys/examples/tests/ex53.cxx:92 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 92: > Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 92: > Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 92: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 92: Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 92: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 92: > Error: Use ";" to terminate declarations. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 92: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 92: Error: Expected an expression. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 92: Error: Use ";" to terminate declarations. > > > > src/sys/examples/tests/ex53.cxx:93 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 93: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 93: Error: int is not a structure type. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 93: > Error: int is not a structure type. > > > > src/sys/examples/tests/ex53.cxx:94 > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-cmplx-pkgs-dbg_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-3/src/sys/examples/tests/ex53.cxx", line > 94: Error: Pointer type needed instead of int. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-pkgs-opt_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp/src/sys/examples/tests/ex53.cxx", line 94: > Error: Pointer type needed instead of int. > > > [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs//archive/2019/07/17/examples_next-tmp_arch-opensolaris-misc_n-gage.log] > > > "/export/home/petsc/petsc.next-tmp-2/src/sys/examples/tests/ex53.cxx", line > 94: Error: Pointer type needed instead of int. > > > > ---- > > To opt-out from receiving these messages - send a request to > petsc-dev@mcs.anl.gov. > > > > > > >