<div dir="ltr">Hi Csaba,<div>I started with the instructions on the LLVM website. The problem is that CentOS 6 does not meet the build requirements, shown here:</div><div><br></div><div><a href="http://llvm.org/docs/GettingStarted.html#requirements" target="_blank">http://llvm.org/docs/GettingSt<wbr>arted.html#requirements</a><br></div><div><br></div><div>I built the required versions of software but the instructions don't cover how to utilize them.</div><div><br></div><div>Anyway, I compiled again with VERBOSE and discovered the problem is missing LibraryDependencies.inc. I specified python27 with a CMake variable and added it to my PATH but it still didn't solve the problem:</div><div><br></div><div><div>make[2]: Nothing to be done for `projects/compiler-rt/lib/builtins/CMakeFiles/builtins.dir/build'.</div><div>make[2]: Leaving directory `<clang-4.0.1>/src/build/llvm-4.0.1-redhat6'</div><div>[ 36%] Built target builtins</div><div><llvm-4.0.1>/tools/llvm-config/llvm-config.cpp:47:35: fatal error: LibraryDependencies.inc: No such file or directory</div><div> #include "LibraryDependencies.inc"</div><div>                                   ^</div><div>compilation terminated.</div><div>make[2]: *** [tools/llvm-config/CMakeFiles/llvm-config.dir/llvm-config.cpp.o] Error 1</div><div>make[2]: Leaving directory `<clang-4.0.1>/src/build/llvm-4.0.1-redhat6'</div><div>make[1]: *** [tools/llvm-config/CMakeFiles/llvm-config.dir/all] Error 2</div></div><div><br></div><div>How can I move past this error? Despite setting LD_LIBRARY_PATH and CMAKE_CXX_LINK_FLAGS as indicated in the instructions above, I also still seem to be getting GLIBC errors too :(</div><div><br></div><div>Thanks,</div><div>Uri</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 31, 2017 at 3:47 AM, Csaba Raduly <span dir="ltr"><<a href="mailto:rcsaba@gmail.com" target="_blank">rcsaba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Uri,<br>
<span class=""><br>
On Wed, Aug 30, 2017 at 11:35 PM, Uri Moszkowicz via cfe-dev<br>
<<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br>
> Hi,<br>
> I'm having trouble building Clang on CentOS 6 and am hoping someone here can<br>
> help. I followed the instructions on this website:<br>
><br>
> <a href="http://btorpey.github.io/blog/2015/01/02/building-clang/" rel="noreferrer" target="_blank">http://btorpey.github.io/blog/<wbr>2015/01/02/building-clang/</a><br>
<br>
</span>Seems a bit old, why not  <a href="https://clang.llvm.org/get_started.html" rel="noreferrer" target="_blank">https://clang.llvm.org/get_<wbr>started.html</a><br>
<div><div class="h5"><br>
><br>
> I'm using GCC 6.3.0 and Python 2.7.13, both also built from source using<br>
> these options:<br>
><br>
> -DCMAKE_C_COMPILER=<gcc-6.3.0><wbr>/redhat6/bin/gcc<br>
> -DCMAKE_CXX_COMPILER=<gcc-6.3.<wbr>0>/redhat6/bin/g++<br>
> -DCMAKE_CXX_LINK_FLAGS='-L<<wbr>gcc-6.3.0>/redhat6/lib64<br>
> -Wl,-rpath,<gcc-6.3.0>/<wbr>redhat6/lib64'<br>
> -DLLVM_ENABLE_ASSERTIONS=ON<br>
> -DCMAKE_BUILD_TYPE=Release<br>
> -DLLVM_TARGETS_TO_BUILD=X86<br>
> -DGCC_INSTALL_PREFIX=<gcc-6.3.<wbr>0>/redhat6<br>
> -DPYTHON_EXECUTABLE:FILEPATH=<<wbr>python-2.7.13>/redhat6/bin/<wbr>python<br>
> -DCMAKE_INSTALL_PREFIX=<clang-<wbr>4.0.1>/redhat6<br>
><br>
> The errors I'm seeing look like this (I used -j32):<br>
><br>
> [  4%] Building CXX object<br>
> lib/TableGen/CMakeFiles/<wbr>LLVMTableGen.dir/Main.cpp.o<br>
> [  4%] Building CXX object<br>
> lib/Option/CMakeFiles/<wbr>LLVMOption.dir/OptTable.cpp.o<br>
> [  6%] Building C object<br>
> projects/compiler-rt/lib/<wbr>builtins/CMakeFiles/clang_rt.<wbr>builtins-x86_64.dir/absvdi2.c.<wbr>o<br>
> [  6%] Building CXX object<br>
> projects/compiler-rt/lib/<wbr>sanitizer_common/CMakeFiles/<wbr>RTSanitizerCommonLibc.x86_64.<wbr>dir/sanitizer_coverage_<wbr>mapping_libcdep.cc.o<br>
> Scanning dependencies of target LLVMSupport<br>
> g++: fatal error: no input files<br>
> compilation terminated.<br>
> make[2]: *** [bin/llvm-PerfectShuffle] Error 1<br>
> make[1]: *** [utils/PerfectShuffle/<wbr>CMakeFiles/llvm-<wbr>PerfectShuffle.dir/all]<br>
> Error 2<br>
</div></div>(snip)<br>
<span class="">><br>
> Any thoughts about what else I need to do?<br>
<br>
</span>For debugging purposes, build with<br>
<br>
make VERBOSE=1<br>
<br>
This would print the actual compiler invocation; the we'll have a<br>
better chance figuring out what went wrong.<br>
<span class="HOEnZb"><font color="#888888"><br>
Csaba<br>
--<br>
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++<br>
The Tao of math: The numbers you can count are not the real numbers.<br>
Life is complex, with real and imaginary parts.<br>
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds<br>
"People disagree with me. I just ignore them." -- Linus Torvalds<br>
</font></span></blockquote></div><br></div>