Skip to content

macOS 10.13: missing cmath members while building llvm #88068

@cglong

Description

@cglong

Issue

When building from source using Homebrew on macOS 10.13, I receive a bunch of errors like the following:

In file included from /tmp/rust-20210815-3759-45jmpa/rustc-1.53.0-src/src/llvm-project/llvm/lib/Support/APFloat.cpp:14:
In file included from /tmp/rust-20210815-3759-45jmpa/rustc-1.53.0-src/src/llvm-project/llvm/include/llvm/ADT/APFloat.h:19:
In file included from /tmp/rust-20210815-3759-45jmpa/rustc-1.53.0-src/src/llvm-project/llvm/include/llvm/ADT/APInt.h:19:
In file included from /tmp/rust-20210815-3759-45jmpa/rustc-1.53.0-src/src/llvm-project/llvm/include/llvm/Support/MathExtras.h:20:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:316:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^

The full error stack is available here: 02.make.log

Version it worked on

It most recently worked on: 1.51.0

Version with regression

1.53.0 (1.52.0 failed as well, but I haven't verified for sure that it's the same issue)


Apologies there's not more detail here, I'm pretty new to Rust 🙂 I'll be happy to help investigate this further however possible!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)regression-untriagedUntriaged performance or correctness regression.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions