[Trilinos-Users] Unable to build pytrilinos

Chetan Jhurani chetan.jhurani at gmail.com
Tue Sep 2 17:53:50 MDT 2014


Attached is the full patch file anyway since I realized you might
see another error for ScalarTraits once this one was fixed.

> -----Original Message-----
> From: Chetan Jhurani [mailto:chetan.jhurani at gmail.com]
> Sent: Tuesday, September 02, 2014 4:44 PM
> To: 'JR Cary'; 'trilinos-users at software.sandia.gov'
> Subject: RE: [Trilinos-Users] Unable to build pytrilinos
> 
> John,
> 
> Could you try again after adding the two following #if/#endif
> pairs to packages/PyTrilinos/src/Teuchos_Traits.i around line 60?
> 
> I found this issue too when working on other long long related parts
> and this will be committed to the master very soon.  I'm not sending
> a full patch file since there are other changes to this file that
> might complicate things further for you.
> 
> --- start ---
> 
>    : public DirectSerializationTraits<Ordinal,unsigned long>
>  {};
>  #endif
> +#if defined(TEUCHOS_SERIALIZATIONTRAITS_LONG_LONG) || !defined(HAVE_TEUCHOS_LONG_LONG_INT)
>  template<typename Ordinal>
>  class SerializationTraits<Ordinal,long long>
>    : public DirectSerializationTraits<Ordinal,long long>
>  {};
> +#endif
> +#if defined(TEUCHOS_SERIALIZATIONTRAITS_UNSIGNED_LONG_LONG) || !defined(HAVE_TEUCHOS_LONG_LONG_INT)
>  template<typename Ordinal>
>  class SerializationTraits<Ordinal,unsigned long long>
>    : public DirectSerializationTraits<Ordinal,unsigned long long>
>  {};
> +#endif
> 
> --- end ---
> 
> Chetan
> 
> > -----Original Message-----
> > From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov]
> > On Behalf Of JR Cary
> > Sent: Tuesday, September 02, 2014 4:17 PM
> > To: trilinos-users at software.sandia.gov
> > Subject: [Trilinos-Users] Unable to build pytrilinos
> >
> > I have tried this with several versions, now with trilinos-11.10.2,
> > and using gcc-4.8.3.
> >
> > The failure is in compiling
> >
> > TeuchosPYTHON_wrap.cpp
> >
> > with multiple messages like
> >
> > /home/research/cary/projects/vorpalall/builds/trilinos-
> > 11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp:4592:7:
> > error: redefinition of 'class Teuchos::SerializationTraits<Ordinal, long
> > long int>'
> > class SerializationTraits<Ordinal,long long>
> >
> > My configure line is below. Thanks for any help.....John
> >
> >
> >
> > '/home/contrib/cmake/bin/cmake' \
> > -DCMAKE_INSTALL_PREFIX:PATH=/home/contrib/trilinos-11.10.2-sercommsh \
> > -DCMAKE_BUILD_TYPE:STRING=Release \
> > -DCMAKE_COLOR_MAKEFILE:BOOL=FALSE \
> > -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
> > -DBUILD_SHARED_LIBS:BOOL=ON \
> > -DCMAKE_C_COMPILER:FILEPATH='/usr/bin/gcc' \
> > -DCMAKE_CXX_COMPILER:FILEPATH='/usr/bin/g++' \
> > -DCMAKE_Fortran_COMPILER:FILEPATH='/usr/bin/gfortran' \
> > -DCMAKE_C_FLAGS:STRING='-pipe -fPIC' \
> > -DCMAKE_CXX_FLAGS:STRING='-pipe -fPIC' \
> > -DCMAKE_Fortran_FLAGS:STRING='-fPIC' \
> > -DTrilinos_ENABLE_ML:BOOL=ON \
> > -DTrilinos_ENABLE_AztecOO:BOOL=ON \
> > -DTrilinos_ENABLE_Amesos:BOOL=ON \
> > -DTrilinos_ENABLE_Galeri:BOOL=ON \
> > -DTrilinos_ENABLE_Shards:BOOL=ON \
> > -DTrilinos_ENABLE_Intrepid:BOOL=ON \
> > -DTrilinos_ENABLE_Komplex:BOOL=ON \
> > -DTrilinos_ENABLE_Phalanx:BOOL=ON \
> > -DTrilinos_ENABLE_NOX:STRING=ON \
> > -DTrilinos_ENABLE_EpetraExt:BOOL=ON \
> > -DTrilinos_ENABLE_Epetra:BOOL=ON \
> > -DTrilinos_ENABLE_Triutils:BOOL=ON \
> > -DTrilinos_ENABLE_Teuchos:BOOL=ON \
> > -DTeuchos_ENABLE_LONG_LONG_INT:BOOL=ON \
> > -DTrilinos_ENABLE_Ifpack:BOOL=ON \
> > -DTPL_ENABLE_BinUtils:BOOL=OFF \
> > -DTPL_ENABLE_Boost:STRING=ON \
> > -DDART_TESTING_TIMEOUT:STRING=600 \
> > -DPYTHON_EXECUTABLE:FILEPATH=/home/contrib/python/bin/python \
> > -DTrilinos_EXTRA_LINK_FLAGS:STRING='-L/usr/lib/gcc/x86_64-redhat-linux/4.8.3
> > -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.8.3' \
> > -DTPL_Boost_INCLUDE_DIRS:FILEPATH=/home/contrib/boost-sersh/include \
> > -DLAPACK_LIBRARY_DIRS:PATH='/usr/lib64' \
> > -DBLAS_LIBRARY_DIRS:PATH='/usr/lib64' \
> > -DLAPACK_LIBRARY_NAMES:STRING='lapack' \
> > -DBLAS_LIBRARY_NAMES:STRING='blas' \
> > -DTPL_ENABLE_SuperLU:BOOL=ON \
> > -DSuperLU_INCLUDE_DIRS:PATH='/home/contrib/superlu-4.1-sersh/include' \
> > -DSuperLU_LIBRARY_DIRS:PATH='/home/contrib/superlu-4.1-sersh/lib' \
> > -DSuperLU_LIBRARY_NAMES:STRING='superlu' \
> > -DTrilinos_ENABLE_PyTrilinos:STRING=ON \
> > -DPYTHON_INCLUDE_DIR:PATH=/home/contrib/Python-2.7.3-sersh/include/python2.7
> > \
> > -DPYTHON_LIBRARY:FILEPATH=/home/contrib/python/lib/libpython2.7.so
> > /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2
> >
> > _______________________________________________
> > Trilinos-Users mailing list
> > Trilinos-Users at software.sandia.gov
> > https://software.sandia.gov/mailman/listinfo/trilinos-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyt.diff
Type: application/octet-stream
Size: 3727 bytes
Desc: not available
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140902/1fcdbfa7/attachment.obj>


More information about the Trilinos-Users mailing list