<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 - Fail to build LLVM due to cmath on macOS 10.13"
   href="https://bugs.llvm.org/show_bug.cgi?id=52575">52575</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Fail to build LLVM due to cmath on macOS 10.13
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>chris@chrislong.dev
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25464" name="attach_25464" title="Full build log">attachment 25464</a> <a href="attachment.cgi?id=25464&action=edit" title="Full build log">[details]</a></span>
Full build log

I originally reported this at <a href="https://github.com/rust-lang/rust/issues/88068">https://github.com/rust-lang/rust/issues/88068</a>
and was told this is an upstream issue in LLVM; from browsing the Rust source,
it appears the regression appeared between LLVM 11 and 12.

When trying to build Rust using Homebrew on macOS 10.13, I'm receiving several
errors similar to:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:325:9:
error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^

I've attached the whole build log. Per
<a href="https://stackoverflow.com/a/68113682/165713">https://stackoverflow.com/a/68113682/165713</a>, a mitigation seems to be to add a
CMake directive like "set(CMAKE_OSX_SYSROOT
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk)".
A Rust engineer also suggested possible fixes at
<a href="https://stackoverflow.com/a/58670035">https://stackoverflow.com/a/58670035</a>.

Apologies for not having more detail; I'm new to Rust and even newer to LLVM,
but I'll definitely help here however I can!</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>