Error when linking external C++ Bazel project on MacOS #23488
Labels
P2
We'll consider working on this in future. (Assignee optional)
platform: apple
team-ExternalDeps
External dependency handling, remote repositiories, WORKSPACE file.
team-Rules-CPP
Issues for C++ rules
type: bug
under investigation
Description of the bug:
I'm attempting to build the
//main
target of my example project (https://github.com/MarkShark99/bazel-test), which just compiles a simplecc_binary
that depends on fruit. On Linux it compiles and runs correctly, but on MacOS (Apple Silicon) runningbazel build -s //main
results in the following error:Compiling
@fruit//third_party/fruit
works as intended.Which category does this issue belong to?
C++ Rules, External Dependency
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Perform the following on MacOS (Apple Silicon):
bazel build //main
Which operating system are you running Bazel on?
MacOS Sonoma 14.6.1
What is the output of
bazel info release
?release 7.3.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.N/A
What's the output of
git remote get-url origin; git rev-parse HEAD
?If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
N/A
Have you found anything relevant by searching the web?
Not using
rules_foreign_cc
for this project.MacOS and Xcode Command Line Tools already fully upgraded.
Any other information, logs, or outputs that you want to share?
Xcode Command Line Tools version:
15.3.0.0.1.1708646388
The text was updated successfully, but these errors were encountered: