<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 - Mac OS tarballs do not provide usable linker"
   href="https://bugs.llvm.org/show_bug.cgi?id=34793">34793</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mac OS tarballs do not provide usable linker
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Packaging
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>binary tarballs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Installing the Mac OS "clang" tarball on a Mac OS system almost provides a
usable toolchain, but fails to do so because the compiler can't run the linker.

The Mac OS tarball contains two symlinks to the lld binary: lld-link (a Windows
link.exe-compatible linker driver), and ld.lld (a GNU ld-compatible linker
driver). It does not provide an "ld" symlink, so the shipped version of clang
does not use the shipped version of lld. (And -fuse-ld=lld doesn't work either,
see PR34792).

Creating a symlink from lld to ld in the bin directory is /almost/ enough for
our release tarball to contain a working toolchain -- one must also remove the
"-lto_library blah" flag that clang adds to the linker command line to work
around PR32175. (LLD emits a couple of warnings about flags that Clang passes
it that it doesn't fully understand, but they seem harmless.)

Presumably we do intend for the Clang and LLD binaries we ship in the Mac OS
release tarball to be usable together to produce Mac OS binaries?</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>