[Trilinos-Users] Errors while compiling Thyra_IfpackPreconditionerFactory.cpp

Rao Garimella rao at lanl.gov
Wed Sep 5 11:11:52 MDT 2012


Hello

I looked through some of my older messages and did not see this
reported, so here goes...

I am trying to compile Trilinos 10.12.2 with gcc-4.5.2 on an Ubuntu
platform. I use the following configure script:

--------------------------------------------------------
ARCH=`uname -m`
OS=`uname -s`
ARCHOS=${ARCH}_${OS}
TRILINOS_PATH=$HOME/packages/trilinos-10.12.2-Source
EXTRA_ARGS=$@
FORTRAN_LIBRARIES="-L/usr/lib64 -lgfortran -lgfortranbegin"

rm -f CMakeCache.txt
cmake \
-D CMAKE_BUILD_TYPE:STRING=DEBUG \
-D CMAKE_Fortran_COMPILER:FILEPATH=/usr/bin/gfortran \
-D CMAKE_INSTALL_PREFIX:PATH=$HOME/packages/$ARCHOS/trilinos-10.12.2 \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_STK:BOOL=ON \
-D Trilions_ENABLE_TESTS:BOOL=ON \
-D TPL_ENABLE_MPI:BOOL=ON \
-D TPL_Boost_INCLUDE_DIRS:FILEPATH=
$HOME/packages/$ARCHOS/ascem-tpl/include/ \
 ${EXTRA_ARGS} \
 ${TRILINOS_PATH}
--------------------------------------------------------

I get the following compile errors:


[ 51%] Built target ifpack2
[ 51%] Building CXX object
packages/stratimikos/adapters/ifpack/src/CMakeFiles/stratimikosifpack.dir/Thyra_IfpackPreconditionerFactory.cpp.o
In file included
from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:49:0,

from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_PerformanceMonitorBase.hpp:54,

from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TimeMonitor.hpp:67,

from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/stratimikos/adapters/ifpack/src/Thyra_IfpackPreconditionerFactory.cpp:38:
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TwoDArray.hpp: In static member function ‘static Teuchos::TwoDArray<T> Teuchos::TwoDArray<T>::fromString(const std::string&)’:
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TwoDArray.hpp:334:37: error: expected primary-expression before ‘,’ token
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TwoDArray.hpp:336:8: error: invalid operands of types ‘const char [66]’ and ‘size_t’ to binary ‘operator<<’
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TwoDArray.hpp:342:3: error: expected ‘;’ before ‘TwoDArray’
nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TwoDArray.hpp:343:3: error: ‘toReturn’ was not declared in this scope
In file included
from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_PerformanceMonitorBase.hpp:54:0,

from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_TimeMonitor.hpp:67,

from /nh/u/rao/packages/trilinos-10.12.2-Source/packages/stratimikos/adapters/ifpack/src/Thyra_IfpackPreconditionerFactory.cpp:38:
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp: At global scope:
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:216:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:255:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:272:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:273:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:684:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:1215:3: error: ‘ValidStringsList’ does not name a type
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp: In member function ‘void Teuchos::EnhancedNumberValidator<T>::validate(const Teuchos::ParameterEntry&, const std::string&, const std::string&) const’:
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:1283:37: error: expected primary-expression before ‘,’ token
/nh/u/rao/packages/trilinos-10.12.2-Source/packages/teuchos/src/Teuchos_StandardParameterEntryValidators.hpp:1285:5: error: no match for ‘operator<<’ in ‘"Aww shoot! Sorry bud, but it looks like the \"" << paramName’


and so on.....


Has anyone encountered this? Any ideas on what I may be doing wrong?

Thanks
Rao


-- 
-------------------------------------------------------------------
Rao V Garimella                  Tel: (505) 665-2928
T-5, MS B284                   '\   '\        FAX: (505) 665-5757
Los Alamos National Lab      ( )-( )   Email: rao at lanl.gov
Los Alamos, NM 87545                      Web:
http://math.lanl.gov/~rao 
--------------------------------------------------------------------








More information about the Trilinos-Users mailing list