[Trilinos-Users] Teuchos_RCP error

Natarajan CS csnataraj at gmail.com
Wed Oct 12 12:31:23 MDT 2011


Hello all,
      I am getting an error (below) while building Teuchos tests for 10.8.2
with MKL BLAS and LAPACK. I couldn't find a similar error in the mail
archive ( I haven't come across this error in my previous build of 10.2) and
I am a little wary of futzing around in the source. I was wondering if
someone might know the workaround.

Thanks in advance,
C.S.N

*****************************************ERROR*************************************************
/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_RCP.hpp(288):
error: a value of type
"Teuchos::SerialComm<Teuchos::Ordinal={Teuchos_Ordinal={ptrdiff_t={long}}}>
*" cannot be used to initialize an entity of type "const Teuchos::Comm<int>
*"
    : ptr_(r_ptr.get()), // will not compile if T is not base class of T2
           ^
          detected during:
            instantiation of "Teuchos::RCP<T>::RCP(const Teuchos::RCP<T2> &)
[with T=const Teuchos::Comm<int>,
T2=Teuchos::SerialComm<Teuchos::Ordinal={Teuchos_Ordinal={ptrdiff_t={long}}}>]"
at line 119 of
"/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_DefaultComm.hpp"
            implicit definition of "Teuchos::RCP<const Teuchos::Comm<int>>
Teuchos::DefaultComm<Ordinal>::defaultSerialComm_ [with Ordinal=int]" at
line 109 of
"/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/src/Teuchos_DefaultComm.hpp"
            instantiation of "Teuchos::RCP<const Teuchos::Comm<Ordinal>>
Teuchos::DefaultComm<Ordinal>::getDefaultSerialComm(const Teuchos::RCP<const
Teuchos::Comm<Ordinal>> &) [with Ordinal=int]" at line 173 of
"/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/test/Time/TimeMonitor_UnitTests.cpp"

compilation aborted for
/hpc/soft/natac0/trilinos-10.8.2-Source/packages/teuchos/test/Time/TimeMonitor_UnitTests.cpp
(code 2)
make[2]: ***
[packages/teuchos/test/Time/CMakeFiles/Teuchos_TimeMonitor_UnitTests.dir/TimeMonitor_UnitTests.cpp.o]
Error 2
make[2]: *** Waiting for unfinished jobs....
******************************************************************************************************************************************************
********************************************BUILD
OPTIONS*****************************************************************
cmake \
  -D
CMAKE_AR:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/composerxe-2011.4.191/bin/intel64/xiar\
  -D
CMAKE_LINKER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/composerxe-2011.4.191/bin/intel64/xild\
  -D CMAKE_CXX_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
4.0.2.003/intel64/bin/mpiicpc\
  -D CMAKE_C_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
4.0.2.003/intel64/bin/mpiicc\
  -D
CMAKE_Fortran_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-2011.0.013/impi/
4.0.2.003/intel64/bin/mpiifort\
  -D CMAKE_INSTALL_PREFIX:PATH=/hpc/soft/natac0/tl_10_8_2 \
  -D Trilinos_ENABLE_Epetra:BOOL=ON\
  -D Trilinos_ENABLE_Stratimikos:BOOL=ON\
  -D Trilinos_ENABLE_Teuchos:BOOL=ON\
  -D Trilinos_ENABLE_AztecOO:BOOL=ON\
  -D Trilinos_ENABLE_Triutils:BOOL=ON\
  -D Trilinos_ENABLE_ML:BOOL=ON\
  -D Trilinos_ENABLE_ML_Metis:BOOL=ON\
  -D Trilinos_ENABLE_Galeri:BOOL=ON\
  -D Trilinos_ENABLE_Amesos:BOOL=ON\
  -D Trilinos_ENABLE_Didasko:BOOL=ON\
  -D Trilinos_ENABLE_Pamgen:BOOL=ON\
  -D Trilinos_ENABLE_FEI:BOOL=ON\
  -D Trilinos_ENABLE_Sacado:BOOL=ON\
  -D TPL_ENABLE_ParMETIS:BOOL=ON \
  -D ParMETIS_INCLUDE_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
  -D ParMETIS_LIBRARY_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
  -D TPL_ENABLE_METIS:BOOL=ON\
  -D METIS_INCLUDE_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1/METISLib\
  -D METIS_LIBRARY_DIRS:PATH=/hpc/soft/natac0/ParMetis-3.1.1\
  -D TPL_ENABLE_BLAS:BOOL=ON\
  -D
TPL_BLAS_LIBRARIES:STRING="-L$MKL_PATH;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core;;-lpthread;"\
  -D TPL_ENABLE_LAPACK:BOOL=ON\
  -D
TPL_LAPACK_LIBRARIES:STRING="-L$MKL_PATH;-lmkl_intel_lp64;-lmkl_sequential;-lmkl_core;-lpthread"\
  -D Trilinos_ENABLE_TESTS:BOOL=ON\
  -D DART_TESTING_TIMEOUT:STRING=600\
  -D TPL_ENABLE_MPI:BOOL=ON\
  -D MPI_BASE_DIR:PATH=/hpc/soft/intel/x86_64/default/impi/lib64\
  -D MPI_BIN_DIR:PATH=/hpc/soft/intel/x86_64/default/impi/bin64\
  -D CMAKE_CXX_FLAGS:STRING="-limf -O3 -DMPICH_IGNORE_CXX_SEEK"\
  -D MPI_USE_COMPILER_WRAPPERS:BOOL=OFF\
  $EXTRA_ARGS\
  ${TRILINOS_HOME}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20111012/5d50ad2a/attachment.html 


More information about the Trilinos-Users mailing list