[Trilinos-Users] Trilinos 11.0.3, Unable to compile EpetraExt python wrapper

Paul Rigor paul.rigor at uci.edu
Wed Apr 3 06:16:57 MDT 2013


Great, that worked! Thanks,
Paul

--
Paul Rigor
http://www.ics.uci.edu/~prigor


On Tue, Apr 2, 2013 at 4:38 PM, John Foster <johntfosterjr at gmail.com> wrote:
> I'm know there is an issue with the way SWIG 2.0.9 handles submodules.
> Revert to 2.0.8 and it might compile.
>
>> Sent from Mailbox for iPhone
>
>
> On Tue, Apr 2, 2013 at 7:06 PM, Paul Rigor <paul.rigor at uci.edu> wrote:
>>
>> Hi all,
>>
>> Has anyone successfully compiled PyTrilinos (Trilinos 11.0.6) on
>> CentOS 6 with swig 2.0.9, cmake 2.8.3, python 2.6.6, g++/gfortran
>> 4.4.7?
>>
>> When attempting to compile, there's an error with the EpetraExt
>> wrappers. I've included the error below the cmake call. Please let me
>> know if I've missed something.
>>
>> Thanks for your time!
>> Paul
>>
>>
>> ==cmake config==
>>
>> This call is made in a child folder underneath the source tree.
>>
>> cmake -D Trilinos_ENABLE_OPTIONAL_PACKAGES:BOOL=ON \
>> -D Trilinos_ENABLE_Sacado:BOOL=ON \
>> -D Trilinos_ENABLE_Stratimikos:BOOL=ON \
>> -D CMAKE_BUILD_TYPE:STRING=RELEASE \
>> -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
>> -D Trilinos_VERBOSE_CONFIGURE:BOOL=ON \
>> -D TPL_ENABLE_MPI:BOOL=ON \
>> -D CMAKE_INSTALL_PREFIX:PATH=$TRILINOS \
>> -D Trilinos_ENABLE_PyTrilinos:BOOL=ON \
>> -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
>> -D BUILD_SHARED_LIBS:BOOL=ON `pwd`/..
>>
>>
>>
>> ==Error==
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:
>> In function ‘PyObject* _wrap_CrsGraph_MapColoring___call__(PyObject*,
>> PyObject*)’:
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9273:
>> error: ‘arg2’ declared as reference but not initialized
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9280:
>> error: ‘result’ declared as reference but not initialized
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9296:
>> error: cannot declare pointer to ‘class Epetra_CrsGraph&’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9296:
>> error: cannot declare pointer to ‘class Epetra_CrsGraph&’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/packages/epetra/src/Epetra_MapColoring.h:313:
>> error: ‘Epetra_MapColoring& Epetra_MapColoring::operator=(const
>> Epetra_MapColoring&)’ is private
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9304:
>> error: within this context
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9341:
>> error: cannot declare reference to ‘class Epetra_MapColoring&’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9341:
>> error: new cannot be applied to a reference type
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:
>> In function ‘PyObject*
>> _wrap_CrsGraph_MapColoringIndex___call__(PyObject*, PyObject*)’:
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9492:
>> error: ‘OriginalTypeRef’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9492:
>> error: expected ‘;’ before ‘arg2’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9499:
>> error: ‘NewTypeRef’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9499:
>> error: expected ‘;’ before ‘result’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: ‘temp’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: expected type-specifier before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: expected ‘>’ before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: expected ‘(’ before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: expected primary-expression before ‘>’ token
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9515:
>> error: expected ‘)’ before ‘;’ token
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9516:
>> error: ‘arg2’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9517:
>> error: type ‘<type error>’ argument given to ‘delete’, expected
>> pointer
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9523:
>> error: ‘result’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9523:
>> error: ‘arg2’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9560:
>> error: expected type-specifier before ‘NewTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9560:
>> error: expected ‘)’ before ‘NewTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:9560:
>> error: expected ‘)’ before ‘;’ token
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:
>> In function ‘PyObject* _wrap_CrsMatrix_SubCopy___call__(PyObject*,
>> PyObject*)’:
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12837:
>> error: ‘OriginalTypeRef’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12837:
>> error: expected ‘;’ before ‘arg2’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12844:
>> error: ‘NewTypeRef’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12844:
>> error: expected ‘;’ before ‘result’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: ‘temp’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: expected type-specifier before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: expected ‘>’ before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: expected ‘(’ before ‘OriginalTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: expected primary-expression before ‘>’ token
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12860:
>> error: expected ‘)’ before ‘;’ token
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12861:
>> error: ‘arg2’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12862:
>> error: type ‘<type error>’ argument given to ‘delete’, expected
>> pointer
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12868:
>> error: ‘result’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12868:
>> error: ‘arg2’ was not declared in this scope
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12905:
>> error: expected type-specifier before ‘NewTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12905:
>> error: expected ‘)’ before ‘NewTypeRef’
>>
>> /home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py/packages/PyTrilinos/src/EpetraExtPYTHON_wrap.cpp:12905:
>> error: expected ‘)’ before ‘;’ token
>> make[2]: ***
>> [packages/PyTrilinos/src/CMakeFiles/EpetraExt.dir/EpetraExtPYTHON_wrap.cpp.o]
>> Error 1
>> make[2]: Leaving directory
>> `/home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py'
>> make[1]: *** [packages/PyTrilinos/src/CMakeFiles/EpetraExt.dir/all] Error
>> 2
>> make[1]: Leaving directory
>> `/home/workspace/scratch/trilinos/trilinos-11.0.3-Source/build-py'
>> make: *** [all] Error 2
>>
>> --
>> Paul Rigor
>> http://www.ics.uci.edu/~prigor
>>
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>



More information about the Trilinos-Users mailing list