[Trilinos-Users] Compiling and Linking Errors with Intel

Bartlett, Roscoe A. bartlettra at ornl.gov
Thu May 21 14:42:49 EDT 2015


<Project> == Trilinos

So

 -DTrilinos_ENABLE_CXX11=ON

It is all or nothing.

-Ross
________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of Truman Ellis <truman.e.ellis at gmail.com>
Sent: Thursday, May 21, 2015 11:10:16 AM
To: Bartlett, Roscoe A.; trilinos-users at trilinos.org
Subject: Re: [Trilinos-Users] Compiling and Linking Errors with Intel

Is there a shortcut to enable C++11 support for all packages, or do I need a line like that for every project I want to build?

On Thu, May 21, 2015 at 12:08 PM Bartlett, Roscoe A. <bartlettra at ornl.gov<mailto:bartlettra at ornl.gov>> wrote:
Truman,

Instructions for turning on C++11 support is described here:

   https://tribits.org/doc/TribitsBuildReference.html#enabling-support-for-c-11

The variable CMAKE_CXX_STANDARD was not present in CMake 2.8.11:

       http://www.cmake.org/cmake/help/v2.8.11/cmake.html

and therefore we can't use it.  We have to maintain backward compatibility to CMake 2.8.11, at least for now.

-Ross


From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org<mailto:trilinos-users-bounces at trilinos.org>] On Behalf Of Truman Ellis
Sent: Thursday, May 21, 2015 12:48 PM
To: trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>
Subject: [Trilinos-Users] Compiling and Linking Errors with Intel

I downloaded Trilinos 12.0.1 and compiled it with intel compilers on TACC's Stampede supercomputer. However, when I try to link to it from my application, I get a bunch of errors similar to
In file included from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Kokkos_View.hpp(56),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Kokkos_Parallel.hpp(52),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Kokkos_Serial.hpp(52),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Kokkos_Core.hpp(61),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/KokkosRank.hpp(4),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Intrepid_ArrayTools.hpp(57),
                 from /work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/Intrepid_FunctionSpaceTools.hpp(53),
                 from /work/01837/truman/Camellia/src/ScratchPad/IP.cpp(9):
/work/01837/truman/trilinosRelease/lib/cmake/Trilinos/../../../include/impl/Kokkos_ViewOffset.hpp(1215): error: namespace "std" has no member "enable_if"
    typename std::enable_if< (std::is_integral<I0>::value) && (shape_type::rank==1),size_type>::type

I've made sure my do-configure scripts for both Trilinos and my own application include a line
-D CMAKE_CXX_STANDARD:STRING="11" \
in order to guarantee compilation with C++11. Any advice on how to fix this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150521/1e15b99d/attachment.html>


More information about the Trilinos-Users mailing list