[Trilinos-Users] Teucho_RCP error

Natarajan CS csnataraj at gmail.com
Fri Oct 14 15:04:32 MDT 2011


Eric is correct! I have attached the error.log but the cause is what Eric
pointed out. I got confused between between Teuchos::Ordinal and Ordinal
parameter for Comm, sorry about that!

Cheers,
C.S.N

On Fri, Oct 14, 2011 at 1:58 PM, Bartlett, Roscoe A. <bartlettra at ornl.gov>wrote:

> We have nightly testing for Intel 12.0.4 shown at:
>
>
> http://testing.sandia.gov/cdash/index.php?project=Trilinos&display=project
>
> Just look for the ICPC-12.0.4 builds.
>
> Can you please figure out exactly what *.o file is creating this error and
> then build it with:
>
>    $ make VERBOSE=1  <the_object_file_showing_the_error>
>
> and send me the output?  (To see the targets for the objects files, go into
> the build directory this is getting built form (src or some test dir) and
> run 'make help' and grep for the *.cpp files name.)
>
> I want to understand what is going on here so that we can fix this.
>
> Thanks,
>
> -Ross
>
>
> > -----Original Message-----
> > From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
> > bounces at software.sandia.gov] On Behalf Of Natarajan CS
> > Sent: Friday, October 14, 2011 12:29 PM
> > To: trilinos-users at software.sandia.gov; ericbavier at gmail.com; Bartlett,
> > Roscoe A.
> > Subject: Re: [Trilinos-Users] Teucho_RCP error
> >
> > Hello Eric, Ross,
> >
> >       I am using an intel compiler too (12.0.4). My initial thought was
> that
> > the error is because of explicit instantiation with int (as opposed to
> > Ordinal--Type) in the timing tests (changing this resolved the issue).
> Also,
> > this seems to be the only place this is happening. If I remember
> correctly
> > Ordinal_type at some point was int and then changed to ptrdiff_t, hence
> my
> > thought that this change probably wasn't propagated.
> >
> > Am I completely messing this up?
> >
> > Cheers,
> >
> > C.S.N
> >
> >
> >
> > -----Original Message-----
> > From: trilinos-users-bounces at software.sandia.gov [mailto:
> > trilinos-users-bounces at software.sandia.gov] On Behalf Of Bartlett,
> Roscoe
> > A.
> > Sent: Friday, October 14, 2011 10:11 AM
> > To: 'Eric Bavier'; 'trilinos-users at software.sandia.gov'
> > Subject: Re: [Trilinos-Users] Teucho_RCP error
> >
> >
> >
> > Wow, is that what is happening?  What compiler are you using?  Looks like
> > some Intel compiler.
> >
> >
> >
> > -Ross
> >
> >
> >
> >
> >
> > > -----Original Message-----
> >
> > > From: trilinos-users-bounces at software.sandia.gov [mailto:
> trilinos-users-
> >
> > > bounces at software.sandia.gov] On Behalf Of Eric Bavier
> >
> > > Sent: Friday, October 14, 2011 11:00 AM
> >
> > > To: trilinos-users at software.sandia.gov
> >
> > > Subject: Re: [Trilinos-Users] Teucho_RCP error
> >
> > >
> >
> > > It seems that the problem has to do with template parameter name
> >
> > > resolution.  The "Ordinal" template parameter in
> >
> > > Teuchos::DefaultComm<Ordinal> is being resolved in some cases to
> >
> > > Teuchos::Ordinal (typedef'd elsewhere as ptrdiff_t) rather than the
> type
> >
> > > which DefaultComm is instantiated with.
> >
> > >
> >
> > > An easy fix: in Teuchos_DefaultComm.hpp change all "Ordinal" template
> >
> > > parameters to "OrdinalType" or something similar to prevent the clash
> with
> >
> > > Teuchos::Ordinal.
> >
> > >
> >
> > > `~Eric Bavier
> >
> > >
> >
> > >
> >
> > > Date: Wed, 12 Oct 2011 17:31:50 -0400
> >
> > > > From: "Bartlett, Roscoe A." <bartlettra at ornl.gov>
> >
> > > > Subject: Re: [Trilinos-Users] Teuchos_RCP error
> >
> > > > To: "Natarajan CS" <csnataraj at gmail.com>,
> >
> > > >        "trilinos-users at software.sandia.gov"
> >
> > > >        <trilinos-users at software.sandia.gov>
> >
> > > > Message-ID:
> >
> > > >
> >
> > > <7D79831ADC03DE47A3626F74554229CF072529DD4D at EXCHMB.ornl.gov>
> >
> > > > Content-Type: text/plain; charset=us-ascii
> >
> > > >
> >
> > > > We need to remove the unnecessary template argument from
> >
> > > Teuchos::Comm that
> >
> > > > can cause these type of incompatibilities.  However, doing so will
> break
> >
> > > > backward compatibility so it will have to be done across a major
> version
> >
> > > > number change from 10.X to 11.0.
> >
> > > >
> >
> > > > -Ross
> >
> > > >
> >
> > > >
> >
> > > > > -----Original Message-----
> >
> > > > > From: trilinos-users-bounces at software.sandia.gov [mailto:
> > trilinos-users-
> >
> > > > > bounces at software.sandia.gov] On Behalf Of Natarajan CS
> >
> > > > > Sent: Wednesday, October 12, 2011 2:31 PM
> >
> > > > > To: trilinos-users at software.sandia.gov
> >
> > > > > Subject: [Trilinos-Users] Teuchos_RCP error
> >
> > > > >
> >
> > > > > 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={lo
> >
> > > > > ng}}}>]"
> >
> > > > > 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\<http://4.0.2.003/intel64/bin/mpiicpc%5C>
> >
> > > <hxxp://4.0.2.003/intel64/bin/mpiicpc%5C>
> >
> > > > >   -D CMAKE_C_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-
> >
> > > > > 2011.0.013/impi/
> >
> > > > > 4.0.2.003/intel64/bin/mpiicc\<http://4.0.2.003/intel64/bin/mpiicc%5C><hxxp://
> 4.0.2.003/intel64/bin/mpiicc%5C>
> >
> > > > >   -D
> >
> > > > > CMAKE_Fortran_COMPILER:FILEPATH=/hpc/soft/intel/x86_64/ics-
> >
> > > > > 2011.0.013/impi/
> >
> > > > >
> >
> > > 4.0.2.003/intel64/bin/mpiifort\<http://4.0.2.003/intel64/bin/mpiifort%5C>
> <hxxp://4.0.2.003/intel64/bin/mpiifort%5C>
> >
> > > > >   -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}
> >
> > > >
> >
> > > >
> >
> > > >
> >
> > > >
> >
> > > > ------------------------------
> >
> > > >
> >
> > > > _______________________________________________
> >
> > > > Trilinos-Users mailing list
> >
> > > > Trilinos-Users at software.sandia.gov
> >
> > > > hxxp://software.sandia.gov/mailman/listinfo/trilinos-users
> >
> > > >
> >
> > > >
> >
> > > > End of Trilinos-Users Digest, Vol 74, Issue 10
> >
> > > > **********************************************
> >
> > > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > --
> >
> > > Please avoid sending me Word or PowerPoint attachments.
> >
> > > See hxxp://www.gnu.org/philosophy/no-word-attachments.html
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Trilinos-Users mailing list
> >
> > Trilinos-Users at software.sandia.gov
> > hxxp://software.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20111014/75e1e613/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.log
Type: application/octet-stream
Size: 6296 bytes
Desc: not available
Url : https://software.sandia.gov/pipermail/trilinos-users/attachments/20111014/75e1e613/attachment.obj 


More information about the Trilinos-Users mailing list