<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - "Expected at most one ThinLTO module per bitcode files" when linking in two files with same name (but different files)"
   href="https://bugs.llvm.org/show_bug.cgi?id=42951">42951</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Expected at most one ThinLTO module per bitcode files" when linking in two files with same name (but different files)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>COFF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>markus.boeck02@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Seen bug reports for this for ELF that have been resolved as well as commits
suggesting this may be solved for COFF but this seems to not be the case. When
using ThinLTO and linking together two object files that have the same name but
different paths it will fail with the error "Expected at most one ThinLTO
module per bitcode files" and then list undefined references to all the files
contained in the second object file. I tested this with current trunk version
of LLVM, lld and clang using MinGW. To reproduce great following project
layout:
-main.cpp
-test1/Object.hpp
-test1/Object.cpp
-test2/Object.hpp
-test2/Object.cpp

Then create a function in each Object.cpp's that are used in main and compile
and link all 3 together.</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>