https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86672
Bug ID: 86672 Summary: Facing issue with gcc-4.9.0 while using with llvm-6.0.1 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: abinaya.manikandan at wipro dot com Target Milestone: --- Hi, We are trying to build llvm-6.0.1 with gcc version 4.9.0. Please find our machine and installed component details below: ********************************************************************************** [root@abinaya-llvm6 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.9 (Santiago) [root@abinaya-llvm6 ~]# gcc --version gcc (GCC) 4.9.0 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ********************************************************************************** Please find below command which we are trying to install llvm with gcc: ******************************************************************************** cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \ -DCMAKE_INSTALL_RPATH=$ORIGIN/../lib:%{gccpath}/lib64\ -DCMAKE_CROSSCOMPILING=True -DCMAKE_BUILD_TYPE=Release \ -Wno-dev --enable-zlib -DCMAKE_BUILD_TYPE=Release \ --enable-gold --enable-plugins \ -DLLVM_ENABLE_ZLIB:BOOL=ON .. make make install ******************************************************************************** Only the cmake step getting success. When we are trying to run "make" facing below issue: ******************************************************************************* In file included from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/utility:198:0, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/algorithm:642, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/src/algorithm.cpp:10: /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple: In substitution of 'template<bool ..._Pred> using __all = std::__1::is_same<std::__1::__all_dummy<_Pred ...>, std::__1::__all_dummy<(void(_Pred), true)...> > [with bool ..._Pred = {{true}...}]': /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:401:84: required from here /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:395:82: internal compiler error: unexpected expression '(void({true}), true)...' of kind expr_pack_expansion using __all = is_same<__all_dummy<_Pred...>, __all_dummy<((void)_Pred, true)...>>; ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. make[2]: *** [projects/libcxx/lib/CMakeFiles/cxx_objects.dir/__/src/algorithm.cpp.o] Error 1 In file included from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/utility:198:0, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/algorithm:642, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__bit_reference:15, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/vector:266, from /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxxabi/src/cxa_demangle.cpp:20: /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple: In substitution of 'template<bool ..._Pred> using __all = std::__1::is_same<std::__1::__all_dummy<_Pred ...>, std::__1::__all_dummy<(void(_Pred), true)...> > [with bool ..._Pred = {{true}...}]': /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:401:84: required from here /root/rpmbuild/BUILD/llvm-6.0.0.src/projects/libcxx/include/__tuple:395:82: internal compiler error: unexpected expression '(void({true}), true)...' of kind expr_pack_expansion using __all = is_same<__all_dummy<_Pred...>, __all_dummy<((void)_Pred, true)...>>; ^ ******************************************************************************* Can anyone help me to fix this issue. Regards, Abinaya