<div dir="ltr">Hi,<div>I'm having trouble building Clang on CentOS 6 and am hoping someone here can help. I followed the instructions on this website:</div><div><br></div><div><a href="http://btorpey.github.io/blog/2015/01/02/building-clang/">http://btorpey.github.io/blog/2015/01/02/building-clang/</a><br></div><div><br></div><div>I'm using GCC 6.3.0 and Python 2.7.13, both also built from source using these options:</div><div><br></div><div>-DCMAKE_C_COMPILER=<gcc-6.3.0>/redhat6/bin/gcc</div><div>-DCMAKE_CXX_COMPILER=<gcc-6.3.0>/redhat6/bin/g++</div><div>-DCMAKE_CXX_LINK_FLAGS='-L<gcc-6.3.0>/redhat6/lib64 -Wl,-rpath,<gcc-6.3.0>/redhat6/lib64'</div><div>-DLLVM_ENABLE_ASSERTIONS=ON</div><div>-DCMAKE_BUILD_TYPE=Release</div><div>-DLLVM_TARGETS_TO_BUILD=X86</div><div>-DGCC_INSTALL_PREFIX=<gcc-6.3.0>/redhat6</div><div>-DPYTHON_EXECUTABLE:FILEPATH=<python-2.7.13>/redhat6/bin/python</div><div>-DCMAKE_INSTALL_PREFIX=<clang-4.0.1>/redhat6<br></div><div><br></div><div>The errors I'm seeing look like this (I used -j32):</div><div><br></div><div><div>[  4%] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Main.cpp.o</div><div>[  4%] Building CXX object lib/Option/CMakeFiles/LLVMOption.dir/OptTable.cpp.o</div><div>[  6%] Building C object projects/compiler-rt/lib/builtins/CMakeFiles/clang_rt.builtins-x86_64.dir/absvdi2.c.o</div><div>[  6%] Building CXX object projects/compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonLibc.x86_64.dir/sanitizer_coverage_mapping_libcdep.cc.o</div><div>Scanning dependencies of target LLVMSupport</div><div>g++: fatal error: no input files</div><div>compilation terminated.</div><div>make[2]: *** [bin/llvm-PerfectShuffle] Error 1</div><div>make[1]: *** [utils/PerfectShuffle/CMakeFiles/llvm-PerfectShuffle.dir/all] Error 2</div></div><div><br></div><div><div>[ 28%] Linking CXX static library ../libLLVMSupport.a</div><div>[ 28%] Built target LLVMSupport</div><div>[ 28%] Built target RTAsan.x86_64</div><div>make: *** [all] Error 2</div><div>make install</div><div>[  0%] Built target LLVMDemangle</div><div>[  3%] Built target LLVMSupport</div><div>[  3%] Built target LLVMTableGen</div><div>[  4%] Built target obj.llvm-tblgen</div><div>Scanning dependencies of target llvm-tblgen</div><div>[  4%] Linking CXX executable ../../bin/llvm-tblgen</div><div>g++: fatal error: no input files</div><div>compilation terminated.</div><div>make[2]: *** [bin/llvm-tblgen] Error 1</div><div>make[1]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div><div><br></div><div>Any thoughts about what else I need to do?</div><div><br></div><div>Thanks,</div><div>Uri</div></div>