<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 - Improve LLD's error message for MSVC's LTCG object files"
   href="https://bugs.llvm.org/show_bug.cgi?id=36995">36995</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Improve LLD's error message for MSVC's LTCG object 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>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>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, ruiu@google.com, zturner@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>We correctly reject these files because they have the wrong magic. That was
<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - llvm-lib (and `lld-link /lib`) should error out on cl.exe LTCG obj files"
   href="show_bug.cgi?id=31372">https://bugs.llvm.org/show_bug.cgi?id=31372</a>.

However, the error message could be improved:
[4/4] LIB obj/base/base_static.lib
FAILED: obj/base/base_static.lib
...
obj/base/base_static/base_switches.obj: not a COFF object, bitcode or resource
file
..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe: error: lib
failed
ninja: build stopped: subcommand failed.

It would be nice to proactively detect that this is an LTCG file and tell the
user to rebuild without /GL.</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>