[Trilinos-Users] Unable to build pytrilinos

JR Cary cary at colorado.edu
Wed Sep 3 07:21:58 MDT 2014


Okay, blowing away the entire build tree works.  Looks
like a dependency missing for swig generated files.

Thanks!

John

On 9/3/14, 7:06 AM, JR Cary wrote:
> Thanks, Chetan, but no luck.  In that file I have
>
> #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
>
> but I still get
>
> -c 
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp
> In file included from 
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/packages/teuchos/comm/src/Teuchos_CommHelpers.hpp:50:0,
>                  from 
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp:5207:
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/packages/teuchos/core/src/Teuchos_ScalarTraits.hpp:368:8: 
> error: redefinition of 'struct Teuchos::ScalarTraits<long long int>'
>  struct ScalarTraits<long long int>
>         ^
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp:4728:8: 
> error: previous definition of 'struct Teuchos::ScalarTraits<long long 
> int>'
>  struct ScalarTraits<long long>
>         ^
> In file included from 
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/packages/teuchos/comm/src/Teuchos_CommHelpers.hpp:50:0,
>                  from 
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp:5207:
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/packages/teuchos/core/src/Teuchos_ScalarTraits.hpp:405:8: 
> error: redefinition of 'struct Teuchos::ScalarTraits<long long 
> unsigned int>'
>  struct ScalarTraits<unsigned long long int>
>         ^
> /home/research/cary/projects/vorpalall/builds/trilinos-11.10.2/sercommsh/packages/PyTrilinos/src/TeuchosPYTHON_wrap.cpp:4756:8: 
> error: previous definition of 'struct Teuchos::ScalarTraits<long long 
> unsigned int>'
>  struct ScalarTraits<unsigned long long>
>
>
> after a "make clean".
>
> I will try blowing away everything and starting from scratch.
>
> John
>
>
>
>
>
> On 9/2/14, 5:43 PM, Chetan Jhurani wrote:
>> 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
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140903/01602c0b/attachment.html>


More information about the Trilinos-Users mailing list