[Trilinos-Users] [EXTERNAL] Re: Compilation error

Gates, Jason Matthew jmgate at sandia.gov
Fri Oct 6 09:23:35 EDT 2017


What compiler are you using?  You probably need an updated version.
On Oct 5, 2017, at 9:43 PM, Chukwudi Chukwudozie <chdozie at gmail.com<mailto:chdozie at gmail.com>> wrote:

Hi,

I keep getting the same error messages as below.


CMake Error at cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake:1879 (MESSAGE):

  Error, C++11 support does not appear to be supported with this C++ compiler

  and/or with the C++11 flags Trilinos_CXX11_FLAGS='-std=c++11

  -expt-extended-lambda'! If the flags Trilinos_CXX11_FLAGS='-std=c++11

  -expt-extended-lambda' where set manually, then try clearing the CMake

  cache and configure without setting Trilinos_CXX11_FLAGS and let the

  configure process try to find flags that work automatically.  However, if

  these compile-time tests still fail, consider selecting a different C++

  compiler (and compatible compilers for other languages) that supports

  C++11.  Or, if C++11 support in this project is not needed or desired, then

  set -DTrilinos_ENABLE_CXX11=OFF.

Call Stack (most recent call first):

  cmake/tribits/core/package_arch/TribitsProjectImpl.cmake:188 (TRIBITS_SETUP_ENV)

  cmake/tribits/core/package_arch/TribitsProject.cmake:93 (TRIBITS_PROJECT_IMPL)

  CMakeLists.txt:93 (TRIBITS_PROJECT)


Thanks

On Thu, Oct 5, 2017 at 10:16 PM, Balakrishnan, Ramesh <bramesh at alcf.anl.gov<mailto:bramesh at alcf.anl.gov>> wrote:
Try building with the option -std=c++11

Best,
RB

On Oct 5, 2017, at 7:48 PM, Chukwudi Chukwudozie <chdozie at gmail.com<mailto:chdozie at gmail.com>> wrote:

So, I manage to get trilinos to compile by removing some options. However, I still run into some errors as shown here below. Any help will be appreciated.


[ 66%] Built target thyra_nonlinear_test_models

[ 67%] Built target thyraepetra

[ 67%] Built target thyraepetraext

[ 68%] Built target xpetra

[ 68%] Building CXX object packages/xpetra/sup/CMakeFiles/xpetra-sup.dir/Utils/Xpetra_IteratorOps.cpp.o

/work/cchukw1/geocentric/packages/trilinos-12.12.1-Source/packages/xpetra/src/BlockedVector/Xpetra_BlockedVector.hpp(387): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)

        RCP<const Xpetra::Vector<Scalar,LocalOrdinal,GlobalOrdinal,Node>> rcpA = Teuchos::rcpFromRef(A);

                                                                       ^

          detected during instantiation of "Xpetra::BlockedVector<Scalar, LocalOrdinal, GlobalOrdinal, Node>::BlockedVector(const Teuchos::RCP<const Xpetra::BlockedMap<LocalOrdinal, GlobalOrdinal, Node>> &, bool) [with Scalar=double, LocalOrdinal=int, GlobalOrdinal=int, Node=Xpetra::EpetraNode]" at line 128 of "/work/cchukw1/geocentric/packages/trilinos-12.12.1-Source/packages/xpetra/src/Vector/Xpetra_VectorFactory.hpp"


compilation aborted for /work/cchukw1/geocentric/packages/trilinos-12.12.1-Source/packages/xpetra/sup/Utils/Xpetra_IteratorOps.cpp (code 2)

make[2]: *** [packages/xpetra/sup/CMakeFiles/xpetra-sup.dir/Utils/Xpetra_IteratorOps.cpp.o] Error 2

make[1]: *** [packages/xpetra/sup/CMakeFiles/xpetra-sup.dir/all] Error 2

make: *** [all] Error 2

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at trilinos.org<mailto:Trilinos-Users at trilinos.org>
https://trilinos.org/mailman/listinfo/trilinos-users


_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at trilinos.org<mailto:Trilinos-Users at trilinos.org>
https://trilinos.org/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20171006/a753b530/attachment.html>


More information about the Trilinos-Users mailing list