<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 - [Modules TS] libc++ multiple symbol definitions"
   href="https://bugs.llvm.org/show_bug.cgi?id=34068">34068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Modules TS] libc++ multiple symbol definitions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>Modules
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>boris@codesynthesis.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When trying to link two object files corresponding to two module implementation
units I get duplicate symbol errors like this:

libbutl/sha256.so.o:(.rodata+0x1a): multiple definition of
`std::__1::adopt_lock'
libbutl/base64.so.o:(.rodata+0x1a): first defined here
libbutl/sha256.so.o:(.rodata+0x18): multiple definition of
`std::__1::defer_lock'
libbutl/base64.so.o:(.rodata+0x18): first defined here
libbutl/sha256.so.o:(.rodata+0x19): multiple definition of
`std::__1::try_to_lock'
libbutl/base64.so.o:(.rodata+0x19): first defined here
libbutl/sha256.so.o:(.rodata+0x1b): multiple definition of
`std::__1::placeholders::_1'
libbutl/sha256.so.o:(.rodata+0x10): multiple definition of
`std::__1::__find_detail::__ambiguous'
libbutl/base64.so.o:(.rodata+0x10): first defined here
libbutl/sha256.so.o:(.rodata+0x8): multiple definition of
`std::__1::__find_detail::__not_found'
libbutl/base64.so.o:(.rodata+0x8): first defined here
libbutl/sha256.so.o:(.rodata+0x1): multiple definition of
`std::__1::allocator_arg'
libbutl/base64.so.o:(.rodata+0x1): first defined here
libbutl/sha256.so.o:(.rodata+0x0): multiple definition of
`std::__1::piecewise_construct'
libbutl/base64.so.o:(.rodata+0x0): first defined here

Making a reproducer is quite tedious (modules are a real pain without good
build system support). But I could give a link to the sources as well as the
entire compilation log if that would be helpful.</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>