https://bugs.llvm.org/show_bug.cgi?id=52575

            Bug ID: 52575
           Summary: Fail to build LLVM due to cmath on macOS 10.13
           Product: new-bugs
           Version: 12.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: ch...@chrislong.dev
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

Created attachment 25464
  --> https://bugs.llvm.org/attachment.cgi?id=25464&action=edit
Full build log

I originally reported this at https://github.com/rust-lang/rust/issues/88068
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
https://stackoverflow.com/a/68113682/165713, 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
https://stackoverflow.com/a/58670035.

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!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to