<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 - Binary releases for versions 10 and 11 do not work on macOS 10.11.6"
   href="https://bugs.llvm.org/show_bug.cgi?id=48447">48447</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Binary releases for versions 10 and 11 do not work on macOS 10.11.6
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>levraiphilippeblain@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

I'm on macOS 10.11.6 and I've downloaded different versions of the
binary releases from <a href="https://releases.llvm.org/download.html">https://releases.llvm.org/download.html</a>.
Version 9.0.1 works correctly. However versions 10.0.0 and 11.0.0
do not work; I think the system libc++ is too old:

```
$ ~/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang --version
dyld: lazy symbol binding failed: Symbol not found:
__ZNSt3__118shared_timed_mutexC1Ev
  Referenced from:
/Users/Philippe/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang
  Expected in: /usr/lib/libc++.1.dylib

dyld: Symbol not found: __ZNSt3__118shared_timed_mutexC1Ev
  Referenced from:
/Users/Philippe/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang
  Expected in: /usr/lib/libc++.1.dylib

Trace/BPT trap: 5
```

I tried using the system 'install_name_tool' to fix
the rpath, but without success ("malformed object (unknown load command 10)"):

```
$ install_name_tool -change /usr/lib/libc++.1.dylib @rpath/libc++.1.dylib
~/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool:
object:
/Users/Philippe/Downloads/clang+llvm-10.0.0-x86_64-apple-darwin/bin/clang
malformed object (unknown load command 10)
```

I also tried the 'llvm-install-name-tool' that comes
with the binary release (starting in version 10.0.0 apparently)
but I get the same "Symbol not found" error as above. Using
'llvm-cxxfilt' from the working 9.0.1 download gives me:

```
$ ~/Downloads/clang+llvm-9.0.1-x86_64-apple-darwin/bin/llvm-cxxfilt --types
__ZNSt3__118shared_timed_mutexC1Ev
std::__1::shared_timed_mutex::shared_timed_mutex()
```

Is there any way I can make these binaries work on my system ?
(I don't have the necessary space/memory needed to compile LLVM myself)....

Also, I tried to find the scripts that create these releases in the llvm
monorepo
but it did not find them. The page <a href="https://llvm.org/docs/ReleaseProcess.html">https://llvm.org/docs/ReleaseProcess.html</a>
talks
about 'utils/release' but this path does not exist in the monorepo...</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>