<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><font size="-1">John, I compiled and installed to /usr/local all
        the projects under llvm except llgo yesterday. The three files
        you noted are in</font></p>
    <p><font size="-1">../llvm-project/build/lib<br>
      </font></p>
    <p><font size="-1">I do not have a llvm-project/build/Debug
        directory.</font></p>
    <p><font size="-1">Xubuntu 19.04. llvm downloaded from github on
        6/18 using instructions from the page you note.</font></p>
    <p><font size="-1">cmake -G Ninja
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;compiler-rt;debuginfo-tests;libclc;libcxx;libcxxabi;libunwind;lld;lldb;llvm;openmp;parallel-libs;polly;pstl"
        -DLLVM_USE_LINKER=lld -DCMAKE_BUILD_TYPE="Release" ../llvm</font></p>
    <p><font size="-1">Installed additional packages as needed.<br>
      </font></p>
    <p><font size="-1">Neil<br>
      </font></p>
    <div class="moz-cite-prefix"><font size="-1">On 7/5/19 6:46 AM, Joan
        Lluch via llvm-dev wrote:<br>
      </font></div>
    <blockquote type="cite"
      cite="mid:87EE0948-7275-4451-AE4D-71F599E6CC3A@icloud.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; -webkit-line-break: after-white-space;" class=""><font
          size="-1">Hi All,</font>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">I am looking for the best way to
            install LLVM+clang,  but I do not seem to find a way that
            works for me.</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">I followed the steps in this
            document <a href="https://llvm.org/docs/GettingStarted.html"
              class="" moz-do-not-send="true">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</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">LLVM-9</font></div>
        <div class=""><font size="-1">   llvm-project  (cloned from
            github)</font></div>
        <div class=""><font size="-1">   install</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">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 :</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class="">
          <div style="margin: 0px; font-size: 10px; line-height: normal;
            font-family: Monaco; background-color: rgb(255, 255, 255);"
            class=""><font size="-1"><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></font></div>
        </div>
        <div style="margin: 0px; font-size: 10px; line-height: normal;
          font-family: Monaco; background-color: rgb(255, 255, 255);"
          class=""><font size="-1"><br class="">
          </font></div>
        <div style="margin: 0px; line-height: normal; background-color:
          rgb(255, 255, 255);" class=""><font size="-1">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:</font></div>
        <div style="margin: 0px; line-height: normal; background-color:
          rgb(255, 255, 255);" class=""><font size="-1"><br class="">
          </font></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=""><font size="-1">clang: error: no such file or
              directory:
              '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangAST.a'</font></div>
          <div style="margin: 0px 0px 0px 12px; text-indent: -12px;
            font-size: 11px; line-height: normal; font-family: Menlo;"
            class=""><font size="-1">clang: error: no such file or
              directory:
              '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangLex.a'</font></div>
          <div style="margin: 0px 0px 0px 12px; text-indent: -12px;
            font-size: 11px; line-height: normal; font-family: Menlo;"
            class=""><font size="-1">clang: error: no such file or
              directory:
              '/Users/joan/LLVM-9/llvm-project/build/Debug/lib/libclangBasic.a'</font></div>
        </div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">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=""
              moz-do-not-send="true">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.</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">So what am I doing wrong now? Why
            I’m getting such linker errors?</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">It seems that a few required
            libraries are not created, but I do not understand why. Any
            ideas?</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">Thanks,</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
        <div class=""><font size="-1">John</font></div>
        <div class=""><font size="-1"><br class="">
          </font></div>
      </div>
      <font size="-1">
      </font><br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
  </body>
</html>