<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 - Global is external, but doesn't have external or weak linkage when linking with ThinLTO"
   href="https://bugs.llvm.org/show_bug.cgi?id=38046">38046</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Global is external, but doesn't have external or weak linkage when linking with ThinLTO
          </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>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>llvm@inglorion.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Error message:
Global is external, but doesn't have external or weak linkage!
[23 x i8]* @"??_C@_0BH@KGIBAJIK@Off?9heap?5backing?5store?$AA@"
LLVM ERROR: Broken module found, compilation aborted!


How to Reproduce:

Configure Chromium with args.gn:
clang_use_chrome_plugins = false
is_clang = true
is_component_build = false
is_debug = false
is_official_build = true
use_lld = true
use_thin_lto = true
symbol_level = 2

Then try to build d8:
ninja -C out/thinlto d8

This will result in the error message shown earlier.

With symbol_level = 0, the error does not occur.</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>