<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi All,<div class=""><br class=""></div><div class="">I am looking for the best way to install LLVM+clang, but I do not seem to find a way that works for me.</div><div class=""><br class=""></div><div class="">I followed the steps in this document <a href="https://llvm.org/docs/GettingStarted.html" class="">Getting Started with the LLVM System — LLVM 9 documentation</a> except that I created the following folder structure as I do not want clang and llc to go to /usr/local</div><div class=""><br class=""></div><div class="">LLVM-9</div><div class=""> llvm-project (cloned from github)</div><div class=""> install</div><div class=""><br class=""></div><div class="">I ran the following command line from the build directory in llvm-project as described in the doc, but added the DLLVM_OPTIMIZED_TABLEGEN=On variable :</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">cmake -G Xcode -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_INSTALL_PREFIX=/Users/joan/LLVM-9/install -DLLVM_OPTIMIZED_TABLEGEN=On ../llvm</span></div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class="">The cmake command above seems to work ok, but after that, when I compile the “install” or “build_all” schemes I get a lot of linker errors. Such as these ones and more:</div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><br class=""></div><div style="margin: 0px; line-height: normal; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">clang: error: no such file or directory: '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAST.a'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">clang: error: no such file or directory: '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangLex.a'</div><div style="margin: 0px 0px 0px 12px; text-indent: -12px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">clang: error: no such file or directory: '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangBasic.a'</div></div><div class=""><br class=""></div><div class="">Up until recently, I have worked with LLVM 7.0 and all what I did was downloading both llvm and clang from <a href="http://llvm.org" class="">llvm.org</a>, copied clang into llvm/tools, and ran the cmake application (not command line). That kind of worked except for some minor glitches but of course I didn’t get the benefits of git.</div><div class=""><br class=""></div><div class="">So what am I doing wrong now? Why I’m getting such linker errors?</div><div class=""><br class=""></div><div class="">It seems that a few required libraries are not created, but I do not understand why. Any ideas?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">John</div><div class=""><br class=""></div></div></body></html>