[Trilinos-Users] Compiling and Linking Errors with Intel

Bartlett, Roscoe A. bartlettra at ornl.gov
Thu May 21 13:08:03 EDT 2015


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] On Behalf Of Truman Ellis
Sent: Thursday, May 21, 2015 12:48 PM
To: 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/39c7a150/attachment.html>


More information about the Trilinos-Users mailing list