bazelbuild / bazel

a fast, scalable, multi-language and extensible build system
https://bazel.build
Apache License 2.0
22.95k stars 4.02k forks source link

macOS Arm64 is trying to use CC=g++ which is leading to errors about -fobjc-link-runtime #23012

Open the-code-samurai-97 opened 1 month ago

the-code-samurai-97 commented 1 month ago

Description of the bug:

https://bazelbuild.slack.com/archives/CGA9QFQ8H/p1720922051761409

No response

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

macOS

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

keith commented 1 month ago

does passing --features=-macos_default_link_flags work? I think the general assumption in the toolchain right now is that when you're on macOS you're building with clang. So you might hit more issues related to this.