<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">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<br></div>Srikanth Bemineni<br><div><br></div></div>