[Trilinos-Users] [EXTERNAL] Problem configuring C++ 11 on Visual Studio 12 (2013) and some mingw fixes in a patch
Phipps, Eric T
etphipp at sandia.gov
Mon May 11 10:36:13 EDT 2015
Kokkos doesn't build with any version of Visual Studio (and several other packages in Trilinos as well). That compiler does not support SFINAE. As a work-around, people have successfully used the Intel compilers within Visual Studio.
-Eric
From: JR Cary <cary at colorado.edu<mailto:cary at colorado.edu>>
Date: Sunday, May 10, 2015 at 8:50 AM
To: "trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>" <trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>>
Cc: "Bartlett, Roscoe A." <bartlettra at ornl.gov<mailto:bartlettra at ornl.gov>>
Subject: [EXTERNAL] [Trilinos-Users] Problem configuring C++ 11 on Visual Studio 12 (2013) and some mingw fixes in a patch
Thanks. That helps.
Now I am up to:
C:\winsame\cary\vorpalall-vs12\builds\trilinos-12.0.1\packages\kokkos\core\src\impl\Kokkos_AllocationTracker.cpp(126) : error C3861: 'atomic_fetch_sub': identifier not found
Is Kokkos unix-centric? Did I invoke its build somehow incorrectly?
BTW, attached is a patch we used to get trilinos to build
with mingw at one point. I have not tried a mingw build in a while,
however.
...John
On 5/9/15 6:25 PM, Bartlett, Roscoe A. wrote:
Try adding
-DTrilinos_CXX11_FLAGS=" "
(note the single space).
We will add " " as one of the set of flags to try.
-Ross
________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org><mailto:trilinos-users-bounces at trilinos.org> on behalf of JR Cary <cary at colorado.edu><mailto:cary at colorado.edu>
Sent: Saturday, May 09, 2015 8:56:03 AM
To: trilinos-users at trilinos.org<mailto:trilinos-users at trilinos.org>
Subject: [Trilinos-Users] Problem configuring C++ 11 on Visual Studio 12 (2013)
cmake fails at
CMake Error at cmake/tribits/core/package_arch/TribitsCXX11Support.cmake:148 (MESSAGE):^M
Error, a set of standard compiler flags cannot be found such that this C++^M
compiler is able to compile basic C++11 features! Please select a C++^M
compiler (and compatible compilers for other languages) that supports^M
C++11. Or, if this C++ compiler does support C++11 but a special set of^M
compiler options is needed, then set these flags using^M
-DTrilinos_CXX11_FLAGS="<c++11-flags>". Or, if C++11 support in this^M
project is not needed or desired, then set -DTrilinos_ENABLE_CXX11=OFF.^M
Call Stack (most recent call first):^
But afaik, VS-12 needs no special flags. So the logic in
TribitsCXX11Support.cmake of
IF ("${${PROJECT_NAME}_CXX11_FLAGS}" STREQUAL "")
MESSAGE(FATAL_ERROR
will fail, as that variable should be empty for VS12.
Thoughts?
Thanks....John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150511/190d904c/attachment.html>
More information about the Trilinos-Users
mailing list