[Trilinos-Users] [EXTERNAL] Error Building Trilinos 10.10.1 on Mac OS X

Perschbacher, Brent M bmpersc at sandia.gov
Thu Apr 5 11:14:52 MDT 2012


This looks like the same issue we’re seeing the the Clang compiler, which leads me to believe you’re using an xcode that has a gcc with a llvm back end. I’m actually fixing most of these errors right now, though they won’t be out in a release tarball in the very near future.

One thing I’ve found while working on these issues is that disabling explicit instantiation produces fewer of these errors(though some do still exist). I have been able to successfully build all of Thyra without any code modifications when explicit instantiation is disabled. I noticed that you were enabling all packages, I would suggest not doing that with llvm right now and instead enable the packages you know you need and disable explicit instantiation. That will most likely get you past these errors as there are only a handful of packages that don’t build correctly with llvm right now. Be assured, though, that we are working to get Trilinos building completely with llvm without having to disable features.

Brent


On 4/5/12 11:02 AM, "Ted Kord" <teddy.kord at gmail.com> wrote:

Hi

I get the following error whilst building Trilinos 10.10.1:

======>
In file included from /Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp:48:0:

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp: In instantiation of 'Thyra::DefaultDiagonalLinearOpWithSolve<Scalar>::DefaultDiagonalLinearOpWithSolve(const Teuchos::RCP<const Thyra::VectorBase<Scalar> >&) [with Scalar = float]':

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp:53:1:   required from here

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: error: 'initialize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: declarations in dependent base 'Thyra::DefaultDiagonalLinearOp<float>' are not found by unqualified lookup

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: use 'this->initialize' instead

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp: In instantiation of 'Thyra::DefaultDiagonalLinearOpWithSolve<Scalar>::DefaultDiagonalLinearOpWithSolve(const Teuchos::RCP<const Thyra::VectorBase<Scalar> >&) [with Scalar = double]':

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp:53:1:   required from here

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: error: 'initialize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: declarations in dependent base 'Thyra::DefaultDiagonalLinearOp<double>' are not found by unqualified lookup

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: use 'this->initialize' instead

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp: In instantiation of 'Thyra::DefaultDiagonalLinearOpWithSolve<Scalar>::DefaultDiagonalLinearOpWithSolve(const Teuchos::RCP<const Thyra::VectorBase<Scalar> >&) [with Scalar = std::complex<float>]':

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp:53:1:   required from here

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: error: 'initialize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: declarations in dependent base 'Thyra::DefaultDiagonalLinearOp<std::complex<float> >' are not found by unqualified lookup

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: use 'this->initialize' instead

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp: In instantiation of 'Thyra::DefaultDiagonalLinearOpWithSolve<Scalar>::DefaultDiagonalLinearOpWithSolve(const Teuchos::RCP<const Thyra::VectorBase<Scalar> >&) [with Scalar = std::complex<double>]':

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp:53:1:   required from here

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: error: 'initialize' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: declarations in dependent base 'Thyra::DefaultDiagonalLinearOp<std::complex<double> >' are not found by unqualified lookup

/Users/tedkord/trilinos-10.10.1-Source/packages/thyra/core/src/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve_def.hpp:69:3: note: use 'this->initialize' instead

make[2]: *** [packages/thyra/core/src/CMakeFiles/thyracore.dir/support/operator_solve/client_support/Thyra_DefaultDiagonalLinearOpWithSolve.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

========>



Here's my configure script:


#!/bin/sh

EXTRA_ARGS=$@



rm -f CMakeCache.txt



cmake \

-D CMAKE_INSTALL_PREFIX:PATH=/Users/tedkord/TRILINOS/BUILD/ \

-D CMAKE_BUILD_TYPE:STRING=RELEASE \

-D BUILD_SHARED_LIBS:BOOL=ON \

-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \

-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \

-D Trilinos_ENABLE_ALL_SECONDARY_STABLE_CODE:BOOL=ON \

-D Trilinos_ENABLE_TESTS:BOOL=ON \

-D Trilinos_ENABLE_EXAMPLES:BOOL=ON \

-D Trilinos_ENABLE_FEI:BOOL=OFF \

-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \

-D Trilinos_ENABLE_DIDASKO:BOOL=ON \

-D HAVE_GCC_ABI_DEMANGLE:BOOL=ON \

-D DART_TESTING_TIMEOUT:STRING=600 \

-D TPL_ENABLE_MPI:BOOL=ON \

-D TPL_ENABLE_Boost:BOOL=ON \

-D Boost_INCLUDE_DIRS:PATH=/opt/local/include/boost \

    -D Boost_LIBRARY_DIRS:PATH=/opt/local/lib \

    $EXTRA_ARGS \

    ${TRILINOS_HOME}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120405/66873139/attachment.html 


More information about the Trilinos-Users mailing list