<div dir="ltr"><div>Hi,<br><br>Is libcxx supported on gcc 4.4.7 which comes with CentOS 6.6. Are LLVM releases very much constrained to the gcc version specified in the software requirements ?<br></div>I followed the patch mentioned in this link <a href="http://comments.gmane.org/gmane.comp.compilers.clang.scm/87139">http://comments.gmane.org/gmane.comp.compilers.clang.scm/87139</a><br><br><pre>Index: include/__config
===================================================================
--- include/__config    (revision 194869)
+++ include/__config    (working copy)
 <at>  <at>  -389,9 +389,7  <at>  <at> 
 #endif

 #if _GNUC_VER < 404
-#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
 #define _LIBCPP_HAS_NO_DECLTYPE
-#define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
 #define _LIBCPP_HAS_NO_DELETED_FUNCTIONS
 #define _LIBCPP_HAS_NO_UNICODE_CHARS
 #define _LIBCPP_HAS_NO_VARIADICS
 <at>  <at>  -402,6 +400,11  <at>  <at> 
 #define _LIBCPP_HAS_NO_NULLPTR
 #endif

+#if _GNUC_VER < 407
+#define _LIBCPP_HAS_NO_ADVANCED_SFINAE
+#define _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS
+#endif
+
 #endif  // __GXX_EXPERIMENTAL_<u>CXX0X</u>__

 #define _LIBCPP_BEGIN_NAMESPACE_STD namespace std { namespace _LIBCPP_NAMESPACE {<br><br><br><br><br></pre><pre>To get rid of the type_traits:3280 error. But I am now stuck with <br><br><br><br><br><br>[ 54%] Building CXX object projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/string.cpp.o<br>In file included from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx/include/memory:603,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx/include/algorithm:627,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx/include/string:439,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx/src/string.cpp:12:<br>/home/bemineni/llvm/llvm-3.4.2/projects/libcxx/include/tuple:461: error: ‘std::__1::__tuple_impl<std::__1::__tuple_indices<_Indx ...>, _Tp ...>::__tuple_impl(std::__1::__tuple_impl<std::__1::__tuple_indices<_Indx ...>, _Tp ...>&&)’ cannot be defaulted<br>make[2]: *** [projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/string.cpp.o] Error 1<br>make[1]: *** [projects/libcxx/lib/CMakeFiles/cxx.dir/all] Error 2<br>make: *** [all] Error 2<br><br></pre>Srikanth Bemineni<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 26, 2015 at 5:04 PM, Srikanth Bemineni <span dir="ltr"><<a href="mailto:bemineni.srikanth@gmail.com" target="_blank">bemineni.srikanth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>I am trying to build llvm 3.4.2 on Centos 6.6. I am getting this below build error , while building the libcxx. I followed the build procedure based of <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a>. I cannot move to a higher version, Since we need to develop on CentOS 6.6  and LLVM 3.4.2 ,is the last version that supports gcc 3.4.2. Starting from LLVM 3.5.0, there has been a huge  jump to gcc 4.7.0.<br><br></div><div>I am just starting to get acquainted to LLVM. So please bare with my questions.<br></div><div><br>Linking CXX executable ../../bin/not<br>[ 52%] Built target not<br>Scanning dependencies of target yaml-bench<br>[ 52%] Building CXX object utils/yaml-bench/CMakeFiles/yaml-bench.dir/YAMLBench.cpp.o<br>Linking CXX executable ../../bin/yaml-bench<br>[ 52%] Built target yaml-bench<br>Scanning dependencies of target cxx<br>[ 52%] Building CXX object projects/libcxx-3.4.2/lib/CMakeFiles/cxx.dir/__/src/string.cpp.o<br>In file included from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/algorithm:624,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/string:439,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/src/string.cpp:12:<br>/home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/type_traits:3280: error: expected primary-expression before ‘decltype’<br>/home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/type_traits:3280: error: expected ‘;’ before ‘decltype’<br>In file included from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/algorithm:626,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/string:439,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/src/string.cpp:12:<br>/home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/utility:320: error: ‘std::__1::pair<_T1, _T2>::pair(std::__1::pair<_T1, _T2>&&)’ cannot be defaulted<br>In file included from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/memory:603,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/algorithm:627,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/string:439,<br>                 from /home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/src/string.cpp:12:<br>/home/bemineni/llvm/llvm-3.4.2/projects/libcxx-3.4.2/include/tuple:461: error: ‘std::__1::__tuple_impl<std::__1::__tuple_indices<_Indx ...>, _Tp ...>::__tuple_impl(std::__1::__tuple_impl<std::__1::__tuple_indices<_Indx ...>, _Tp ...>&&)’ cannot be defaulted<br>make[2]: *** [projects/libcxx-3.4.2/lib/CMakeFiles/cxx.dir/__/src/string.cpp.o] Error 1<br>make[1]: *** [projects/libcxx-3.4.2/lib/CMakeFiles/cxx.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br></div><div><br></div><div>With Regards<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Srikanth Bemineni<br><div><br></div></font></span></div>
</blockquote></div><br></div>