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

Drake, Richard R rrdrake at sandia.gov
Wed Aug 3 09:06:29 EDT 2016


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/c4780bd6/attachment.html>


More information about the Trilinos-Users mailing list