<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - libLLVMSupport.a gets linked twice during CMake based builds"
   href="https://llvm.org/bugs/show_bug.cgi?id=31812">31812</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libLLVMSupport.a gets linked twice during CMake based builds
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cmake
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Awais_Belal@mentor.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Cross building LLVM 3.9.1 sometimes fail reporting undefined symbols in
libLLVMSupport static library. Doing a bit of log digging shows that
libLLVMSupport gets linked twice (both for NATIVE and target builds) and when
this multiple linking step takes place concurrently the libLLVMSupport static
library gets corrupted and the mentioned build failure is seen.
This was discussed on the llvm-dev mailing list and I was asked to report this
here. The mailing list entry is:
<a href="http://lists.llvm.org/pipermail/llvm-dev/2017-January/109570.html">http://lists.llvm.org/pipermail/llvm-dev/2017-January/109570.html</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>