[Trilinos-Users] Thyra - undeclared identifier

Bartlett, Roscoe A. bartlettra at ornl.gov
Tue Mar 20 08:38:01 MDT 2012


Biswa,

So the Apple modified GCC compilers are more standards compliant than say GCC 4.6.1 on Linux?  If so, I am wondering if we can't get a nighty build of Trilinos set up using these more pedantic Apple compilers on some system.  I wonder if there is someone with one of these systems that would be willing to run a nightly build of Trilinos development version.

Thanks for the feedback,

-Ross


> -----Original Message-----
> From: Biswa Sengupta [mailto:biswaiisc at aol.com]
> Sent: Monday, March 19, 2012 11:59 PM
> To: Bartlett, Roscoe A.
> Cc: trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] Thyra - undeclared identifier
> 
> Dear Ross,
> 
> I had been using the openmpi port available via Macports which has on turn
> been compiled on my system using gcc version 4.2.1 (Based on Apple Inc.
> build 5658) (LLVM build 2336.9.00). It seems the command line tools (that
> Macport uses to compile mpicxx, etc) included with the latest Xcode 4.3.1 are
> too pedantic on how templates are instantiated. After manually changing
> many of the trilinos source code I grew tired and decided to compile
> openmpi 1.4.5 using the compilers available for Mac OSX Lion in
> http://hpc.sourceforge.net/ . Using mpi* compilers obtained via the gcc
> version 4.7.0 20120204 (experimental) (GCC)  compiler solves the problem
> albeit it threw an instantiation error for one of the Sundance source code
> (again, fixed manually).
> 
> Therefore, one of the issue is the highly-pendantic compilers from Apple that
> throws errors for two-phase name lookup in templated codes, among
> others.
> 
> I am yet to see if the original code using Sundance that compiled well with
> 10.6.4 still works on 10.10.1. Will let you know if I hit the wall.
> 
> Best,
> Biswa
> 
> On 20-Mar-2012, at 12:08 AM, Bartlett, Roscoe A. wrote:
> 
> > Biswa,
> >
> > What compiler exactly is this?  Did you get this problem to go away?
> >
> > -Ross
> >
> > Dr. Roscoe A. Bartlett, PhD
> > Oak Ridge National Laboratories
> > Trilinos Software Engineering Technologies and Integration Lead
> > CASL Virtual Reactor Software Engineering Lead
> >
> >
> >
> >> -----Original Message-----
> >> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-
> >> bounces at software.sandia.gov] On Behalf Of Biswa Sengupta
> >> Sent: Friday, March 16, 2012 9:22 AM
> >> To: trilinos-users at software.sandia.gov
> >> Subject: Re: [Trilinos-Users] Thyra - undeclared identifier
> >>
> >> PS: Perhaps I will just add this-> manually to initialize(diag) to correct the
> >> issue and see whether compilation fails again? In the meantime, if you
> have
> >> any other suggestion just let me know.  Biswa
> >>
> >>
> >> On 16-Mar-2012, at 6:33 PM, Biswa Sengupta wrote:
> >>
> >>> Hi guys,
> >>>
> >>> I just thought to upgrade my Trlinos 10.8 (which works fine) to 10.10.1 on
> >> an i7 based OSX Lion (Xcode 4.3.1) and work on a Sundance based project.
> >> Unfortunately, it seems I am having some problems related to
> "undeclared
> >> identifier" in Thyra. To be more specific, after a successful configuration, I
> get
> >> the following error message:
> >>>
> >>>
> >>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >> %%%%%%%%
> >>> ...
> >>> [ 43%] Building CXX object
> >>
> packages/ifpack/src/CMakeFiles/ifpack.dir/Ifpack_METISReordering.cpp.o
> >>> [ 43%] Building CXX object
> >>
> packages/isorropia/src/CMakeFiles/isorropia.dir/epetra/Isorropia_EpetraPro
> >> ber.cpp.o
> >>> [ 43%] Building CXX object
> >> packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_Parameters.cpp.o
> >>> [ 43%] Building CXX object
> >>
> packages/ifpack/src/CMakeFiles/ifpack.dir/Ifpack_OverlappingRowMatrix.cp
> >> p.o
> >>> [ 43%] Building CXX object
> >>
> packages/thyra/core/src/CMakeFiles/thyracore.dir/support/operator_solve
> >>
> /client_support/Thyra_DefaultBlockedTriangularLinearOpWithSolveFactory.c
> >> pp.o
> >>> [ 43%] Building CXX object
> >>
> packages/isorropia/src/CMakeFiles/isorropia.dir/epetra/Isorropia_Epetra.cp
> >> p.o
> >>> [ 43%] Building CXX object
> >>
> packages/thyra/core/src/CMakeFiles/thyracore.dir/support/operator_solve
> >> /client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp.o
> >>> [ 43%] Building CXX object
> >> packages/ifpack/src/CMakeFiles/ifpack.dir/Ifpack_ValidParameters.cpp.o
> >>> In file included from /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_solve/client_support/Th
> >> yra_DefaultDiagonalLinearOpWithSolve.cpp:48:
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_solve/client_support/Th
> >> yra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: error:
> >>>     use of undeclared identifier 'initialize'
> >>> initialize(diag);
> >>> ^
> >>> this->
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_solve/client_support/Th
> >> yra_DefaultDiagonalLinearOpWithSolve.cpp:53:45: note:
> >>>     in instantiation of member function
> >>>
> >>
> 'Thyra::DefaultDiagonalLinearOpWithSolve<float>::DefaultDiagonalLinearOp
> >> WithSolve' requested here
> >>>
> >>
> TEUCHOS_CLASS_TEMPLATE_INSTANT_SCALAR_TYPES(DefaultDiagonalLinea
> >> rOpWithSolve)
> >>>                                           ^
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/teuchos/src/Teuchos_ExplicitInstantiationHelpers.hpp:134:
> >> 40: note:
> >>>     expanded from macro
> >> 'TEUCHOS_CLASS_TEMPLATE_INSTANT_SCALAR_TYPES'
> >>> TEUCHOS_CLASS_TEMPLATE_INSTANT_FLOAT(CLASSNAME) \
> >>>                                      ^
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/teuchos/src/Teuchos_ExplicitInstantiationHelpers.hpp:70:2
> >> 0: note:
> >>>     expanded from macro 'TEUCHOS_CLASS_TEMPLATE_INSTANT_FLOAT'
> >>>   template class CLASSNAME<float>;
> >>>                  ^
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_vector/client_support/T
> >> hyra_DefaultDiagonalLinearOp_decl.hpp:132:8: note:
> >>>     must qualify identifier to find this declaration in dependent base class
> >>> void initialize(
> >>>      ^
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_vector/client_support/T
> >> hyra_DefaultDiagonalLinearOp_decl.hpp:151:8: note:
> >>>     must qualify identifier to find this declaration in dependent base class
> >>> void initialize(const RCP<VectorBase<Scalar> > &diag);
> >>>      ^
> >>> /Users/biswa/Software/trilinos-10.10.1-
> >>
> Source/packages/thyra/core/src/support/operator_vector/client_support/T
> >> hyra_DefaultDiagonalLinearOp_decl.hpp:168:8: note:
> >>>     must qualify identifier to find this declaration in dependent base class
> >>> void initialize(
> >>>      ^
> >>> 1 error generated.
> >>> ...
> >>>
> >>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >> %%%%%%%%
> >>>
> >>> Any ideas about how should I go about fixing it?
> >>>
> >>> Best regards,
> >>> Biswa
> >>
> >>
> >>
> >> _______________________________________________
> >> 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