[Trilinos-Users] [EXTERNAL] FW: compiling Trilinos with clang and c++11

Bradley, Andrew Michael ambradl at sandia.gov
Wed Aug 3 11:06:37 EDT 2016


Hi ?Richard,


This: "include/c++/4.4.7" implies the problem is the gcc compatibility. Looks like gcc 4.4.7 headers are being used. Min version for C++11 is 4.7.2. How to fix that depends on the system, but a start is to look at what gcc's are available on the system.


Andrew


________________________________
From: Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf of Drake, Richard R <rrdrake at sandia.gov>
Sent: Wednesday, August 3, 2016 7:06 AM
To: trilinos-users at trilinos.org
Subject: [EXTERNAL] [Trilinos-Users] FW: compiling Trilinos with clang and c++11

Does Trilinos build with clang?  I'm trying clang 3.5 with -std=c++11 but the configure fails in the C++11 probe.  The top of the CMakeFiles/CMakeError.log file shows this:

Building CXX object CMakeFiles/cmTryCompileExec1736882239.dir/src.cxx.o
/projects/alegra/mpi/ompi1.8.3_clang350/bin/mpiCC    -std=c++11 -O2 -DCODE_MP -DOMPI_SKIP_MPICXX -DNDEBUG -DCXX11_FLAGS_COMPILE_RESULT_0  -std=c++11   -o CMakeFiles/cmTryCompileExec1736882239.dir/src.cxx.o -c /scratch/rrdrake/tpl/TPL/trilinos/devel/build/clang_opt/CMakeFiles/CMakeTmp/src.cxx
In file included from /scratch/rrdrake/tpl/TPL/trilinos/devel/build/clang_opt/CMakeFiles/CMakeTmp/src.cxx:2:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/vector:62:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/allocator.h:48:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/x86_64-redhat-linux/bits/c++allocator.h:34:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ext/new_allocator.h:33:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/new:40:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception:148:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception_ptr.h:143:13: error: unknown type name 'type_info'
      const type_info*
            ^
1 error generated.
gmake[1]: *** [CMakeFiles/cmTryCompileExec1736882239.dir/src.cxx.o] Error 1

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


More information about the Trilinos-Users mailing list