[Trilinos-Users] [11.2.1] EpetraExt tests fail to compile w Clang

Denis Davydov davydden at gmail.com
Fri Jul 10 16:14:44 EDT 2015


Dear all, 

just came across the same issues with Didasko on [12.0.1]:

[ 72%] Building CXX object packages/didasko/examples/hypre/CMakeFiles/Didasko_hypre_test.dir/hypre_Helpers.cpp.o
In file included from /Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.cpp:42:
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:54:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(int N);
                         ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:56:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(int N);
                  ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:58:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* GetCrsMatrix(EpetraExt_HypreIJMatrix &Matrix);
                  ^
In file included from /Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_UnitTest.cpp:65:
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:54:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(int N);
                         ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:56:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(int N);
                  ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.hpp:58:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* GetCrsMatrix(EpetraExt_HypreIJMatrix &Matrix);
                  ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.cpp:63:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(const int N)
                         ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.cpp:120:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(int N){
                  ^
/Users/davydden/Downloads/trilinos-12.0.1-Source/packages/didasko/examples/hypre/hypre_Helpers.cpp:141:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
Epetra_CrsMatrix::Epetra_CrsMatrix* GetCrsMatrix(EpetraExt_HypreIJMatrix *Matrix)
                  ^
3 errors generated.

p.s. hypre is 2.9.0b

Kind regards,
Denis 

> On 9 Jan 2015, at 18:16, Denis Davydov <davydden at gmail.com> wrote:
> 
> Dear all, 
> 
> EpetraExt tests fail to compile:
> ===
> 1)
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.cpp:55:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
> EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(const int N, const int type)
>                         ^
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.cpp:169:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
> Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(EpetraExt_HypreIJMatrix &Matrix)
>                  ^
> 2 errors generated.
> make[2]: *** [packages/epetraext/test/hypre/CMakeFiles/EpetraExt_hypre_test.dir/hypre_UnitTest.cpp.o] Error 1
> 
> ===
> 2)
> In file included from /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.cpp:42:
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.hpp:54:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
> EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(int N, int type);
>                         ^
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.hpp:56:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
> Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(EpetraExt_HypreIJMatrix &Matrix);
>                  ^
> In file included from /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_UnitTest.cpp:59:
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.hpp:54:26: error: qualified reference to 'EpetraExt_HypreIJMatrix' is a constructor name rather than a type wherever a constructor can be declared
> EpetraExt_HypreIJMatrix::EpetraExt_HypreIJMatrix* newHypreMatrix(int N, int type);
>                         ^
> /tmp/trilinos-AUdiYJ/trilinos-11.12.1-Source/packages/epetraext/test/hypre/hypre_Helpers.hpp:56:19: error: qualified reference to 'Epetra_CrsMatrix' is a constructor name rather than a type wherever a constructor can be declared
> Epetra_CrsMatrix::Epetra_CrsMatrix* newCrsMatrix(EpetraExt_HypreIJMatrix &Matrix);
>                  ^
> Linking CXX executable EpetraExt_MatrixMatrix_test.exe
> 
> ===
> p.s. Configure options:
> cmake
> ..
> -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/trilinos/11.12.1
> -DCMAKE_BUILD_TYPE=Release
> -DBUILD_SHARED_LIBS=ON
> -DTPL_ENABLE_BLAS=ON
> -DTPL_ENABLE_LAPACK=ON
> -DTPL_ENABLE_Zlib:BOOL=ON
> -DTrilinos_ENABLE_ALL_PACKAGES=ON
> -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES=ON
> -DTrilinos_ENABLE_TESTS:BOOL=ON
> -DTrilinos_ENABLE_EXAMPLES:BOOL=ON
> -DTrilinos_VERBOSE_CONFIGURE:BOOL=OFF
> -DTrilinos_WARNINGS_AS_ERRORS_FLAGS=""
> -DSacado_ENABLE_TESTS=OFF
> -DEpetraExt_ENABLE_TESTS=OFF
> -DTPL_ENABLE_MPI:BOOL=ON
> -DTrilinos_ENABLE_OpenMP:BOOL=OFF
> -DTrilinos_ENABLE_CXX11:BOOL=ON
> -DTrilinos_ENABLE_ShyLU:BOOL=OFF
> -DTrilinos_ENABLE_Teko:BOOL=OFF
> -DTPL_ENABLE_Boost:BOOL=ON
> -DTPL_ENABLE_Scotch:BOOL=OFF
> -DTPL_ENABLE_Netcdf:BOOL=ON
> -DTPL_ENABLE_ADOLC:BOOL=OFF
> -DTPL_ENABLE_AMD:BOOL=ON
> -DTPL_ENABLE_CSPARSE:BOOL=ON
> -DTPL_ENABLE_CHOLMOD:BOOL=ON
> -DTPL_ENABLE_UMFPACK:BOOL=ON
> -DUMFPACK_LIBRARY_NAMES=umfpack;amd;colamd;cholmod;suitesparseconfig
> -DTPL_ENABLE_CppUnit:BOOL=OFF
> -DTPL_ENABLE_Eigen:BOOL=OFF
> -DTPL_ENABLE_GLPK:BOOL=OFF
> -DTPL_ENABLE_HDF5:BOOL=ON
> -DTPL_ENABLE_HWLOC:BOOL=OFF
> -DTPL_ENABLE_HYPRE:BOOL=ON
> -DTPL_ENABLE_METIS:BOOL=ON
> -DTPL_ENABLE_MUMPS:BOOL=ON
> -DTPL_ENABLE_PETSC:BOOL=ON
> -DTPL_ENABLE_ParMETIS:BOOL=ON
> -DTPL_ENABLE_SCALAPACK:BOOL=ON
> -DTPL_ENABLE_TBB:BOOL=ON
> -DTPL_ENABLE_X11:BOOL=OFF
> -DTPL_ENABLE_SuperLUDist:BOOL=ON
> -DSuperLUDist_INCLUDE_DIRS=/usr/local/opt/superlu_dist/include/superlu_dist
> -DTPL_ENABLE_SuperLU:BOOL=ON
> -DSuperLU_INCLUDE_DIRS=/usr/local/opt/superlu/include/superlu
> -DTrilinos_ENABLE_Fortran=ON
> -DTrilinos_ENABLE_PyTrilinos:BOOL=OFF
> 
> 
> 
> Kind regards,
> Denis 
> 



More information about the Trilinos-Users mailing list