-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
Describe the bug
I'm on a Mac mini M1 (ARM64), and when I bazel build Abseil I get an error:
$ git rev-parse HEAD
a9831f1cbf93fb18dd951453635f488037454ce9
$ bazel info release
release 4.0.0-homebrew
$ bazel build ...
INFO: Analyzed 381 targets (0 packages loaded, 0 targets configured).
INFO: Found 381 targets...
ERROR: /Users/jgm/github/devjgm/abseil-cpp/absl/synchronization/BUILD.bazel:68:11: Linking absl/synchronization/libsynchronization.so failed: (Exit 1): cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh @bazel-out/darwin-fastbuild/bin/absl/synchronization/libsynchronization.so-2.params
Use --sandbox_debug to see verbose messages from the sandbox cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh @bazel-out/darwin-fastbuild/bin/absl/synchronization/libsynchronization.so-2.params
Use --sandbox_debug to see verbose messages from the sandbox
ld: illegal thread local variable reference to regular symbol __ZN4absl13base_internal19thread_identity_ptrE for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
INFO: Elapsed time: 1.778s, Critical Path: 1.07s
INFO: 83 processes: 53 internal, 30 darwin-sandbox.
FAILED: Build did NOT complete successfully
Steps to reproduce the bug
Important You'll need a Mac with an M1 chip.
- Checkout Abseil head. For me that was a9831f1
- bazel build ...
- error
What version of Abseil are you using?
HEAD: a9831f1
What operating system and version are you using
ProductName: macOS
ProductVersion: 11.3
BuildVersion: 20E232
On a Mac Mini M1
What compiler and version are you using?
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: arm64-apple-darwin20.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
What build system are you using?
bazel 4.0.0-homebrew
Additional context
Add any other context about the problem here.